2010-08-13, 15:38:21
(This post was last modified: 2012-12-22, 13:40:19 by Mikael Gustavsson.)
Hello
I found bug in bootloader. In PIC24F16KA102 uC U1RX and U2Rx pins are default use as analog input so UART don't work correctly.
Fix:
in ds30loader.s file:
i added lines:
now bootloader works
Regards and thanks for great work
I found bug in bootloader. In PIC24F16KA102 uC U1RX and U2Rx pins are default use as analog input so UART don't work correctly.
Fix:
in ds30loader.s file:
Code:
;------------------------------------------------------------------------------
; Init
;------------------------------------------------------------------------------
; Uart
.ifdef USE_BRGH
bset UMODE, #BRGH
.endif
mov #0xffff,W0
mov W0,AD1PCFG
mov #UARTBR, W0 ;set
mov W0, UBRG ; baudrate
i added lines:
Code:
mov #0xffff,W0
mov W0,AD1PCFG
now bootloader works
Regards and thanks for great work