Hi everybody,
As I posted in another thread (cc2540 place file in specific memory location), I am making a bootloader based on the SBL. I currently have a complete program with works perfectly when using the 'ti_51ew_cc2540b.xcl' file. Then I try moving _CODE_START to another location to give some space to the bootloader; say I move it to 0x0800 as in the provided example.
I recompiled and start debugging but, for any reason, the code gets corrupted in some point and the IDATA and XDATA stacks get filled completely.
I suspect something related with the low power modes, because I can debug the code until the 'halSetSleepMode' function. Maybe it is related with the fact that this piece of code must be located in the SLEEP_CODE address and 4-byte aligned, but I am not sure.
I am completely stucked with this and I see no ray of light regarding this issue.
If anyone could give me a piece of advise I will be very grateful.
Regards,
Javier Ruiz