If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
When debugging an application from flash, you want to let the application boot in its normal manner. If you select "load program" in CCS then you are overwriting the application that loaded from flash and not debugging the code as it runs normally. You should instead do "load symbols" in CCS and then select your .out file. This will allow you to debug your code using variable/function names without overwriting the code that boots from the flash.
CCS 3.3: Go to File -> Load Symbols -> Load Symbols Only
CCS 4.x: Right-click on the project and select Debug Options. On the "Debugger" tab choose "Load Symbols" instead of "Load Program"
CCS 5.x: In the "Debug View" tab choose "Run"--> "Load" --> "Load Symbols"
请查看一下下面的FAQ,看一下cmd文件里不要占用ROM bootloader里使用的16KB shared RAM。
The ROM bootloader itself uses 16 KB of Shared RAM starting from 0x80000000 for multiple purposes. This
memory should not be used by any initialized section of the user application.
另外,看一下在代码编译时,请使用ROM autoinitialization model (-c) 编译选项。
When booting code through the ROM, make sure you are using the ROM autoinitialization model (-c) in your
linker options. If the RAM autoinitialization model is used (-cr), some memory locations will never get loaded
even though they did under CCS. You can find the build option here:
• CCS3.3: Build Options -> Linker -> Autoinit Model
• CCS4+: Build Options -> Runtime Environment