User Tools

Site Tools


dev:nab:v2:nabgcc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
dev:nab:v2:nabgcc [2015/11/13 13:12] – [Compile] redoxdev:nab:v2:nabgcc [2023/11/24 21:55] – external edit 127.0.0.1
Line 63: Line 63:
  
 ## Flash ## Flash
 +
 +Assuming you have OpenOCD running and connected to the target, flash a new firmware with
 +
 +    make program
 +
  
 ## Debug ## Debug
 +
 +You can load the firmware in GDB, and then debug your code:
 +
 +    arm-none-eabi-gdb ./bin/NabGCC.elf
 +
 +Next commands are to be typed in GDB:
 +
 +    tar ext :3333
 +    mon reset init
 +    
 +    load
 +    # And type 'r' to start using this code
 +    # Stop with Ctrl + C
 +    # and it's like normal debugging !
 +
 +You can only set two breakpoints, which is quite limited... to delete all the breakpoints, just type 'd' and 'y'.
 +
 +Happy hacking !
 +
  
 ## Links ## Links
/home/share/www/redox.ws/wiki/data/pages/dev/nab/v2/nabgcc.txt · Last modified: 2023/11/24 22:23 by redox