Part Number: CC2640
Tool/software: TI-RTOS
Hi,
I'm trying to make a custom boot loader what swaps between two programs on on CC2640 and have run into a few issues and was hoping someone can help.
First off I'm using SysCtrlSystemReset() to rest the device. It does not reset when running in debug mode but the program freezes is this expected behaviour?
To jump to another location I'm using this code but it fails to start the other program:
__asm("LDR R0, [location]");
__asm("ORR R0, #1");
__asm("BX R0");
I'm aware of the issues with have TI-RTOS in the ROM, making the code relocatable and changing the reset vector to page 1.
I've looked at a (large) number of other posts and the advice around boot loaders seems a little inconclusive. For instance does trimDevice() need to be called or not and if so how?
Thanks,
Justin