Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions scripts/jlink-bootloader.gdb
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Connect to jlink gdb server
target extended-remote :2331

# load the firmware into ROM
load
# It seems more reliable to reset the chip before loading the new firmware. It
# is also how they do it in the example in the wiki:
# https://kb.segger.com/J-Link_GDB_Server#Console

# Reset the CPU
monitor reset

# load the firmware into ROM
load

#break Reset_Handler
#break HardFault_Handler
#break NMI_Handler
Expand Down
8 changes: 6 additions & 2 deletions scripts/jlink.gdb
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Connect to jlink gdb server
target extended-remote :2331

# load the firmware into ROM
load
# It seems more reliable to reset the chip before loading the new firmware. It
# is also how they do it in the example in the wiki:
# https://kb.segger.com/J-Link_GDB_Server#Console

# Reset the CPU
monitor reset

# load the firmware into ROM
load

# Set VTOR (Vector Table Offset Register) to where the firmware is located
set *(uint32_t*)0xE000ED08=0x10000
# Set stack pointer to initial stack pointer according to exception table.
Expand Down