Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pic24FJ256GB206 Bootloader problem [solved]
#3
(2011-11-19, 22:42:24)Mikael Gustafsson Wrote: Hi,
That looks ok as far as I can see.
-Have you configured PPS properly?
-Is the UART working in your application?
-Have you tried resetting the device first and then click write within 2 seconds?

Mikael

Thanks for your reply.

Yes I have configured PPS properly according to my schematics.
Given below is the code for the same

mov #OSCCON, w1
mov #0x46, w2
MOV #0x57, w3
MOV.b w2, [w1]
MOV.b w3, [w1]
BCLR OSCCON,#6

mov RPINR18, WPPSTEMP1
mov RPOR7, WPPSTEMP2 ;

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

; Transmit, map uart to pin (10010)
bclr RPOR7, #RP14R0
bset RPOR7, #RP14R1
bclr RPOR7, #RP14R2
bclr RPOR7, #RP14R3
bset RPOR7, #RP14R4
bclr RPOR7, #RP14R5

mov #OSCCON, w1
mov #0x46, w2
MOV #0x57, w3
MOV.b w2, [w1]
MOV.b w3, [w1]
BSET OSCCON,#6

Yes my UART is working in my application.
Also, I reset the device and then click write. I also incresed the timeout to
10secs.

Thanks,
Gopal
Reply


Messages In This Thread
RE: pic24FJ256GB206 Bootloader problem - by gopal.jatiya - 2011-11-20, 08:05:46

Forum Jump:


Users browsing this thread: 2 Guest(s)