I am trying to get the TI bootloader (by QJ Wang) to work on the RM48 USB with a rm48l950. It runs, and accepts my .bin file but hangs on executing the binary file. The example code seems to have changes made at different times. And the wiki is a bit short.
I have downloaded spna190 & spna196. I am using spna196, actually bundled as the CAN Bootloader, because it was updated by QJ in Feb 2016.
I have edited the bl_config.h to match the other examples and to keep everything consistent with 0x20000 as the bootloader space.
#define APP_START_ADDRESS 0x00020000
#define APP_STATUS_ADDRESS 0x0001FF00
//#define ENABLE_UPDATE_CHECK
all the other bootloader files have remained the same
In my blinky example I have used the following as the sys_link.cmd parameters:
MEMORY
{
VECTORS (X) : origin=0x00020000 length=0x00000020
FLASH0 (RX) : origin=0x00020020 length=0x0015FFE0
FLASH1 (RX) : origin=0x00180000 length=0x00180000
STACKS (RW) : origin=0x08000000 length=0x00001500
RAM (RW) : origin=0x08001500 length=0x0003EB00
SECTIONS
{
.intvecs : {} > VECTORS
.text : {} > FLASH0 | FLASH1
.const : {} > FLASH0 | FLASH1
.cinit : {} > FLASH0 | FLASH1
.pinit : {} > FLASH0 | FLASH1
.bss : {} > RAM
.data : {} > RAM
.sysmem : {} > RAM
After fixing the overwrites that were initially happening, the bootloader will now download the code, say successfully downloaded, and hang at execute.
Any ideas where I am going wrong?