I have a simple cc1312R bootloader based on the project BIM, compiled with CSS TI-RTOS. This bootloader is written to the flash from 0x0 to 0x3000. The CCFG is written at the end of the flash. It's working well as it can blink a led. The bootloader main function only does:
static void jumpToPrgEntry(uint32_t prgEntry) { static uint32_t temp; temp = prgEntry; temp +=4; asm(" LDR SP, [R0, #0x0] "); ((void (*)(void))(*((uint32_t*)temp)))(); }
using the address 0x3000.
I have a standard TI-RTOS application that is working well. This application is written to the flash starting at 0x3000. In this application, I have modified in the cfg file:
m3Hwi.resetVectorAddress = 0x3000;
I have not modified the cmd file. This is not working. The application is not starting from the bootloader (or something is crashing). What am I missing?