Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIC24F16KA102 [solved]
#1
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:
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
Reply
#2
Thank you dwight for the report! I'll see if I can incorporate this in the next release.
Reply
#3
Hi,

I'm trying to run ds30 loader on PIC24F16KA102

the firmware on pic seems to work correctly.
but I have get Error Message in GUI.
How can I fix it?

Code:
Initiating download...
      Searching for bl .
      Found PIC24F16KA102 fw ver. 0.9.4
      Unknown firmware version
      Tx 1 byte / Rx 3 bytes / 0,1s

but when I change in firmware:
Code:
;---
; Constants, donĀ“t change
;---
        .equ    VERMAJ,        0                                        /*firmware version major*/
        .equ    VERMIN,        9                                        /*fimrware version minor*/
        .equ    VERREV,        3                                        /*firmware version revision*/

I get errors in GUI:
Code:
Initiating download...
      Searching for bl . . . . . . (discarded null byte) .
      Found PIC24F16KA102 fw ver. 0.9.3
      Waiting for bootloader to be ready...ok
      Writing flash...verification error,1 try
      Writing flash...verification error,2 try
      Writing flash...download failed
      Download finished
      Tx 319 bytes / Rx 9 bytes / 3,5s
Reply
#4
Please start a separate thread and we will help you.
Reply
#5
Dwight, is the bootloader working ok for you?
Could you please tell me what revision of the device you are using.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)