Skip to content

Commit

Permalink
Add some shortcuts to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
NickeZ committed Dec 3, 2024
1 parent 1f147f2 commit d9d119c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ jlink-flash-firmware-btc: | build
JLinkExe -if SWD -device ATSAMD51J20 -speed 4000 -autoconnect 1 -CommanderScript ./build/scripts/firmware-btc.jlink
jlink-flash-factory-setup: | build
JLinkExe -if SWD -device ATSAMD51J20 -speed 4000 -autoconnect 1 -CommanderScript ./build/scripts/factory-setup.jlink
jlink-flash-firmware-debug: | build
JLinkExe -if SWD -device ATSAMD51J20 -speed 4000 -autoconnect 1 -CommanderScript ./build-debug/scripts/firmware.jlink
jlink-gdb-server:
JLinkGDBServer -nogui -if SWD -device ATSAMD51J20 -speed 4000
rtt-client:
telnet localhost 19021
run-debug:
arm-none-eabi-gdb -x scripts/jlink.gdb build-debug/bin/firmware.elf
dockerinit:
./scripts/container.sh build --pull --force-rm --no-cache -t shiftcrypto/firmware_v2:$(shell cat .containerversion) .
dockerpull:
Expand Down
16 changes: 16 additions & 0 deletions scripts/jlink.gdb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Connect to jlink gdb server
target extended-remote :2331

# load the firmware into ROM
load

# Reset the CPU
monitor reset

#break Reset_Handler
#break HardFault_Handler
#break NMI_Handler
#break MemManage_Handler

# start running
stepi

0 comments on commit d9d119c

Please sign in to comment.