Hi there,
using the SmartRF06 board for programming our custom board is causing weird behavior when I try to switch optimization off for debug purposes.
This happens with an light modified SimplelinkBLEPeripheral project which compiles and runs error free when optimization is set to full.
It compiles error free with optimization off as well
If optimization is off the debugger starts loading the image onto the board, but hangs then and even if the download is ended with the following message "Cortex_M3_0: Error occurred during flash operation: Timed out waiting for target to halt" the red LED on the debugger board keeps on.
If that happened once, the cc2640 can not be programmed any more using debug process in CCS.
I have to use flash programmer and program an entire working image onto the CC2640. After I can use CCS again to program any image on the chip using the XDS100 debugger.
I was thinking that this might have to do with the stack, as it is compiled with full optimization ON. However, if I try to compile the stack with optimization off I get the message that the image doesn't fit into the memory and some references are missing.
Hence I would like to know the hints about using optimization off and using a correct debug environment.