File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,16 @@ monitor reset
1111# load the firmware into ROM
1212load
1313
14- # Set VTOR (Vector Table Offset Register) to where the firmware is located
15- set *(uint32_t*)0xE000ED08 =0x10000
16- # Set stack pointer to initial stack pointer according to exception table.
17- set $sp = *(uint32_t*)0x10000
18- # Set the program counter to the reset handler (second item in exception table)
19- set $pc = *(uint32_t*)0x10004
14+ define bootload
15+ monitor reset
16+ # Set VTOR (Vector Table Offset Register) to where the firmware is located
17+ set *(uint32_t*)0xE000ED08 =0x10000
18+ # Set stack pointer to initial stack pointer according to exception table.
19+ set $sp = *(uint32_t*)0x10000
20+ # Set the program counter to the reset handler (second item in exception table)
21+ set $pc = *(uint32_t*)0x10004
22+ end
23+ bootload
2024
2125# break Reset_Handler
2226# break HardFault_Handler
You can’t perform that action at this time.
0 commit comments