Hello,
I represent a group of undergraduate engineers attempting to program a C2000 Piccolo Launchpad for standalone functionality. Our group is not very familiar with the C2000 Launchpad family and we have consulted available datasheets and other forums posts on TI, but have been unable to solve our issue.
We are currently able to run our program while in debug mode, however, the program ceases to work in standalone, GetMode operation (i.e. accessing flash). We have noticed that our program continues to work after we pull trigger 3 (TRST) low immediately after disconnecting the device from the debugger, which we believe is consistent with standalone boot, but our program ceases to function when we either power cycle or reset the C2000 Launchpad. It seems, honestly, as though the program is being erased when the device powers down. Based on feedback to other members on this forum and the TI Application Report, we believe that our code is being written to flash, but we would appreciate any methods to check for sure. Here are our current linker files and the memcpy and InitFlash calls:
#ifdef _FLASH
memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (size_t)&RamfuncsLoadSize);
InitFlash();
#endif
We welcome any comments or suggestions to help fix this issue. I will provide any additional information as necessary.
Regards,
Andrew