2014-08-16, 11:02:41
Good news, I've got it working. Just needed to add the two lines below in the file: user_code.inc
; Receive, map pin (10 = 1010) to uart
bclr RPINR18, #U1RXR0 ;xxx
bset RPINR18, #U1RXR1 ;xxx
bclr RPINR18, #U1RXR2 ;xxx
bset RPINR18, #U1RXR3 ;xxx
bclr RPINR18, #U1RXR4 ;xxx
bclr RPINR18, #U1RXR5 ;xxx <<<<< added this line
; Transmit, map uart to pin
bset RPOR8, #RP17R0 ;xxx
bset RPOR8, #RP17R1 ;xxx
bclr RPOR8, #RP17R2 ;xxx
bclr RPOR8, #RP17R3 ;xxx
bclr RPOR8, #RP17R4 ;xxx
bclr RPOR8, #RP17R5 ;xxx <<<<< added this line
Great bootloader :-)
Many Thanks,
Neil.
; Receive, map pin (10 = 1010) to uart
bclr RPINR18, #U1RXR0 ;xxx
bset RPINR18, #U1RXR1 ;xxx
bclr RPINR18, #U1RXR2 ;xxx
bset RPINR18, #U1RXR3 ;xxx
bclr RPINR18, #U1RXR4 ;xxx
bclr RPINR18, #U1RXR5 ;xxx <<<<< added this line
; Transmit, map uart to pin
bset RPOR8, #RP17R0 ;xxx
bset RPOR8, #RP17R1 ;xxx
bclr RPOR8, #RP17R2 ;xxx
bclr RPOR8, #RP17R3 ;xxx
bclr RPOR8, #RP17R4 ;xxx
bclr RPOR8, #RP17R5 ;xxx <<<<< added this line
Great bootloader :-)
Many Thanks,
Neil.