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 am trying to run and debug a user app (App1_MSPBoot) from the source associated with MSPBoot – Main Memory Bootloader for MSP430™ Microcontrollers. I have been able to run the demo using two G2553's with UART as outlined in the app note. Now I just want to use CCS and using only the target G2553, load MSPBoot, and then load and debug App1_MSPBoot.
Is what I am trying attempt possible?
Am I tweaking the right thing in Run/Debug Settings (shown below) or am I completely off course?
Is there a way to link the object file and memory map from MSPBoot to the App1_MSPBoot project?
I have loaded MSPBoot successfully but I run into trouble when I switch projects to App1_MSPBoot, load it and attempt to run the debugger. I had thought that changing the project settings Run/Debug Settings->Launch configuration->Target->MSP430 Properties->Erase Options would make it work. Here is what I tried:
Thanks,
Douglas
Akash,
That worked. For anyone following the thread I will summarize on how to debug an app that is intended to work with MSPBoot.
tBOOL TI_MSPBoot_AppMgr_ValidateApp(void)
{
// if ((TI_MSPBoot_AppMgr_BootisForced() == FALSE_t) &&
// (TI_MSPBoot_AppMgr_AppisValid() == TRUE_t))
{
return TRUE_t; // Boot is not forced and App is valid
}
/*
else
{
return FALSE_t; // Boot is forced or App is valid
}
*/
}
When you get to the production stage and want to run code with a CRC, just remove the comments that were added above from the project MSPBoot, file TI_MSPBoot_AppMgr.c, function TI_MSPBoot_AppMgr_ValidateApp(). Rebuild MSPBoot and load the code. I automated the CRC generation as part of the build step for the App1_MSPBoot by opening Properties -> Build selecting the Variables tab and adding the following variable:
Name: CRCGEN430
Type: File
Value: <Path to the CRCGen430.exe file>
I then added the following line to the post-build steps:
"${CRCGEN430}" CRC16 "${BuildArtifactFileBaseName}.txt" "${BuildArtifactFileBaseName}_CRC.txt" C003 FBFF C000
Douglas
**Attention** This is a public forum