Getting error "Trouble Writing Target DSP Memory" when loading code into C3x Code Composer Simulator (Free Eval Tools).
If the C3x Code Composer Simulator (Free Eval Tools) is setup for a C30/31/32, when loading code users may see the following error ( maybe with a different Error address):
Trouble Writing Target DSP memory
Error number -2140
Error address 40
This is due to the fact that the linker command file packaged with the evaluation software describes the memory map of a C33 chip, and hence does not work right with the c30 architecture.
To resolve this issue, remove the file "c33.cmd" from the project, and add the following linker command file ("volume3.cmd") to the project.
* NOTE: the C3x simulators have a minimal amount of memory by default.
* If you want to enable more memory, e.g. external RAM, please read
* the Code Composer release notes.
PAGE 0 : PROG: origin = 0x00809800, length = 0x00000800
PAGE 1 : DATA: origin = 0x0080A000, length = 0x00010000
.text : load = PROG page 0
.cinit : load = PROG page 0
.data : load = DATA page 1
.bss : load = DATA page 1
.stack : load = DATA page 1
Then, under the "Options->Memory Map" menu, click the "Reset" button and then add the following memory map entry:
Code Composer will then have to be shut down and restarted for this new memory map to take effect. Now, when the project is rebuilt with this new linker command file, the code should get loaded into the simulator without any problems.