Hi , I am trying to port the bootloader to a PIC24FJ256GB210 chip. The uart RX is Pin RP10 and TX is Pin RP17. I have modified the code as follows.
.equ __24FJ256GB210, 1 .include "p24FJ256GB210.inc" .equ IdTypePIC, 0xA7 ; Please refer to the table below, must exists in "piccodes.ini" .equ max_flash, 0x2AC00 ; dsPIC max address, not bytes!!! (= 'max flash memory' from "piccodes.ini" divided by 2), Please refer to the table below
.equ Fcy, 8000000/2 ; you may also want to change: _HS_OSC _XT_OSC .equ baud, 19200 ; standard TinyBld baud rates: 115200 or 19200 .equ cfg_l, 2 ; Configure length(instr.) .equ UART_CH, 2 ; select UART(1/2) .equ RX, 10 ; RX Pin = PRn Pin .equ TX, 17 ; TX Pin = PRn Pin I keep getting the error Error: No Device Detected!!! in the GUI.
Great if we could identify what possibly have I missed out.
Hi, arvind
And make the following changes, please let me know the results.
Best regards Dan.
Log in to post a comment.
Hi ,
I am trying to port the bootloader to a PIC24FJ256GB210 chip. The uart RX is Pin RP10 and TX is Pin RP17. I have modified the code as follows.
.equ __24FJ256GB210, 1
.include "p24FJ256GB210.inc"
.equ IdTypePIC, 0xA7 ; Please refer to the table below, must exists in "piccodes.ini"
.equ max_flash, 0x2AC00 ; dsPIC max address, not bytes!!! (= 'max flash memory' from "piccodes.ini" divided by 2), Please refer to the table below
.equ Fcy, 8000000/2 ; you may also want to change: _HS_OSC _XT_OSC
.equ baud, 19200 ; standard TinyBld baud rates: 115200 or 19200
.equ cfg_l, 2 ; Configure length(instr.)
.equ UART_CH, 2 ; select UART(1/2)
.equ RX, 10 ; RX Pin = PRn Pin
.equ TX, 17 ; TX Pin = PRn Pin
I keep getting the error Error: No Device Detected!!! in the GUI.
Great if we could identify what possibly have I missed out.
Hi, arvind
And make the following changes, please let me know the results.
Best regards
Dan.
Last edit: Dan 2015-07-28