Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pic24fj256ga106 cannot succeed make it work
#1
Dear all,
Hello, and I hope you are well in such difficult times that we are going through!!!please be safe and stay home!
Now ...my name is George and I am here to ask for your help.
Well, I am trying to implement a bootloader for the pic24fj256ga106 but after days of trying I thing I cannot....i used successfully the 18f firmware to program a 18f67j50 it went like a breeze perfect....well it is not the same case for the pic 24..... I will upload the project I have made with the relative changes ( boot_mplab_project ) so if someone has any suggestions it would be great.
I changed the configuration bits, I remapped the inputs/outputs, I changed the fcy.....nothing.
Thanks a lot and once again stay safe
Reply
#2
Hello,
Which pins do you use for rx and tx?
What is the oscillator setup and the intended target frequency? Crystal? Internal oscillator?
Reply
#3
(2020-03-31, 09:56:08)Mikael Gustavsson Wrote: Hello,
Which pins do you use for rx and tx?
What is the oscillator setup and the intended target frequency? Crystal? Internal oscillator?
Hello Mr Gustavsson,
My intention is to use pins RP0 RX (PIN16,PORT B0)  AND RP2 TX (PIN42,PORT RD8)
OSC setup is intended to be XT (EXTERNAL) CRYSTAL osc 18432000Thank you for you quick response
Reply
#4
I think that my problem is here....
.ifdef HAS_PPS
;.error "PPS is not configured. More information in the firmware manual." ;xxx remove this line when PPS is configured

.ifdef USE_UART1

; ** IMPORTANT **
;
; THIS CODE IS JUST A TEMPLATE AND WILL MOST LIKELY NOT WORK FOR YOU,
; READ THE DATASHEET AND ALTER LINES MARKED WITH XXX
;
; ** IMPORTANT **

; Receive, map pin (14 = 1110) to uart
bclr RPINR18, #U1RXR0 ;xxx
bset RPINR18, #U1RXR1 ;xxx
bset RPINR18, #U1RXR2 ;xxx
bset RPINR18, #U1RXR3 ;xxx
bclr RPINR18, #U1RXR4 ;xxx
bclr RPINR18, #U1RXR5 ;xxx

; Transmit, map uart to pin
bset RPOR1, #RP2R0 ;xxx
bset RPOR1, #RP2R1 ;xxx
bclr RPOR1, #RP2R2 ;xxx
bclr RPOR1, #RP2R3 ;xxx
bclr RPOR1, #RP2R4 ;xxx
bclr RPOR1, #RP2R5 ;xxx
.endif


although i am not sure....i read the datasheet but and adjust accordingly but still no comm....
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)