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.

Analyze core file

Other Parts Discussed in Thread: MSP430F5419A

We are using MSP430F5419A with CCS 4.2.4. When the watch dog timer expires or we call our panic method, we mark a RAM variable with a special pattern and restart. On restart if we detect this pattern we are writing the contents of RAM to flash so it can subsequently be transferred to PC for analysis. Given this image of RAM and the map file created by CCS, we would like to be able to inspect the contents of RAM not just as a hex-dump but using variable names. We can find the vector containing pointers to our TCBs and from these the stack for each task. So for each task its call history is available. We are also saving the last seconds worth of task switch history in RAM. So a lot is available for inspection in this file we are saving.

I know GDB has the ability to load a RAM image but am wondering if there are any tools to do this if we continue to use CCS as our development platform?

Thanks,

Dick

  • Hi Dick,

    that I am aware of there is not really a way to load a RAM "image" in CCS.  The reason being that these are things that are typically dynamically allocated.  Of course the other reason being RAM is not generally maintained upon a reset etc.

    Have you consider whether doing some RAM read/write/management using the BSL (boot strap loader) would meet your needs?  This could even be done via scripting.  The F5419A actually even has a version of the MSP430 BSL that is customizable.

    The other thing you could do is try the MSP Forum for suggestions.   But I do not believe within CCS itself you can play with RAM images.  As you seem aware you can manage various RAM settings/options etc in CCS however.  In fact CCS does not function as a flash programmer for the MSP - for that a third party free tool is recommended.  www.elprotronic.com

    I hope this answer helps.

    Best Regards,
    Lisa

     

  • Dick,

    There's a wiki page on using CCS/DSS for analyzing a crash dump here: http://processors.wiki.ti.com/index.php/Crash_Dump_Analysis.  In addition, since the data would be saved in flash, you can use the memory save/load buttons in the memory view to save the data to a file and then load it back to RAM.

    There's a lot of info there, so if you run into problems please re-post to this thread and I'll help you out.

    Darian