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 Nov 11, 2024
1 parent c27b9e0 commit 05be931
Show file tree
Hide file tree
Showing 2 changed files with 19 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 1 -if SWD -device ATSAMD51J20 -speed 4000 -autoconnect 1
rtt-client:
telnet localhost 19021
run:
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
11 changes: 11 additions & 0 deletions scripts/jlink.gdb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Connect to jlink gdb server
target extended-remote :2331

# load the firmware into ROM
load

# Reset the CPU
monitor reset

# start running
continue

0 comments on commit 05be931

Please sign in to comment.