Alan Led Collins Rivera

MC1322x: How to get memory dumps to analyze at failure state... and other tips & tricks

Discussion created by Alan Led Collins Rivera Employee on Feb 18, 2015
Latest reply on Feb 18, 2015 by Alan Led Collins Rivera

It is possible to understand the Software state at the moment the node stops working. For this, you need to follow the next steps:


  1. Identify which node is the one that stopped.
  2. Connect the JTAG to that node. Make sure you connect the JTAG in a way the Vdd pin is connected first, so the device won’t RESET in the process.
  3. Open IAR 5.50 and start debugging without downloading.
  4. Once you are in the debugger window, you need to extract/dump the memory state into a .s file. à Right click in the “Memory” window. Then choose “memory save” option.
  5. Choose Motorola or Motorola S19 as file format. Choose the memory address window you want to save: from 0x400000 to 0x417D00, you are including all RAM memory.


Now using the “.map” file, you may understand how the functions and variables were placed in the memory. This will be great help to understand what is going on within the sw stack.