Debugging_Bare_Metal_Code_in_NOR_Flash

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Debugging_Bare_Metal_Code_in_NOR_Flash

Debugging_Bare_Metal_Code_in_NOR_Flash

Scope

This practical guide records the complete workflow used to build a ROM-target bare-metal image, program it into NOR flash, boot independently from NOR, and attach CodeWarrior with symbols for source-level debugging.

  1. Create the bare-metal project and confirm it works with the RAM/JTAG configuration.
  2. Create a ROM build configuration and link .intvec at 0xEFF00000 and .reset at 0xEFFFFFFC.
  3. Build the ELF.
  4. Generate the raw BIN from the same build.
  5. Create the Flash Programmer task using T1013RDB_NOR_FLASH.xml.
  6. Confirm the S29GL01GP flash range is 0xE8000000 to 0xEFFFFFFF.
  7. Configure the BIN destination as 0xEFF00000.
  8. Erase the selected sectors, program the image, and enable verification.
  9. Select NOR boot and power-cycle or reset the board.
  10. Confirm the program starts without JTAG downloading the image.
  11. Attach CodeWarrior to the running target.
  12. Load the exact matching ELF as symbols only.
  13. Confirm the Program Counter, set breakpoints, and begin source-level debugging.

 

Attachments
No ratings
Version history
Last update:
Wednesday
Updated by: