This thread has been locked.
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.
I'm recently returned to the C2000 world after much time away and am struggling to go from a working build that runs in RAM to a build that will start out in flash, copy to RAM and run from there. I've been looking through the C2000 examples for my control card, which have been very useful for getting peripherals working in short order. However, I'm not finding examples like what are provided in SPRA958L – January 2013. Is there an update to SPRA958L for CCS7.2 and later vintage C2000 devices? Thanks!
Susan,
Attached is a SPRA958 style code example for CPU1 for F28377D. This is a CCSv7 example. My suggestion though would be to download and use the latest CCS, which is CCSv8. There are two project configurations in this project: FLASH, and RAM. The FLASH configuration will come up by default when you load the project into CCS since F preceeds R in the alphabet. You will probably also get a warning on project load about the compiler version the project was created with not being installed. Just change the project to use an installed/latest compiler, and the warning will go away.
F28377D_example_CPU1_nonBIOS_2017Mar16.zip
Regards,
David
Thanks David. (And how cool to get a response from the spra958L author!!) I'm having the same kind of behavior when I try to run this on my control card as when I try to make a flash version of my own code. I do a CPU reset to PC=0x3ff16A, single step into the code, put a breakpoint in Main_nonBIOS.c at the first function call of main(), InitSysCtrl(); but I never get there. Instead, the processor is in an infinite loop at 0x003fee00 and I can only see the disassembly.
If I say "go main" then the PC starts from 0x082e5d and I appear to execute the code in main() and get to the infinite loop, but the address of 0x082e5d is in the flash, which makes me think I didn't successfully copy to RAM and make the jump to execute from RAM.
Susan,
Check the bootmode switches on the control card. They should both be "ON" for GetMode (which jumps to flash by default).
- David