mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-07-28 01:58:11 -07:00
Add SWD Probe into main FW
Moved from extra pack to main FW https://github.com/g3gg0/flipper-swd_probe
This commit is contained in:
@@ -0,0 +1 @@
|
||||
swd_clock_delay 100
|
||||
@@ -0,0 +1,6 @@
|
||||
|
||||
message 0 "gonna call call_test_2" dialog
|
||||
|
||||
call call_test_2
|
||||
|
||||
message 0 "back now" dialog
|
||||
@@ -0,0 +1,7 @@
|
||||
|
||||
# first do a beeeeeep
|
||||
beep 1
|
||||
|
||||
message 0 "Seems to work" dialog
|
||||
|
||||
beep 0
|
||||
@@ -0,0 +1,6 @@
|
||||
ap_select 0
|
||||
max_tries 50
|
||||
block_size 4
|
||||
mem_dump /ext/swd_scripts/flash.bin 0x00000000 0x100000 2
|
||||
beep 1
|
||||
message 5 "Reading sucessful"
|
||||
@@ -0,0 +1,6 @@
|
||||
ap_select 0
|
||||
max_tries 50
|
||||
block_size 4
|
||||
mem_dump /ext/swd_scripts/flash.bin 0x00000000 0x100000 2
|
||||
beep 1
|
||||
message 5 "Reading sucessful"
|
||||
@@ -0,0 +1,6 @@
|
||||
ap_select 0
|
||||
max_tries 50
|
||||
block_size 1024
|
||||
mem_dump /ext/swd_scripts/flash.bin 0x08000000 0x100000 2
|
||||
beep 1
|
||||
message 0 "Reading finished" dialog
|
||||
@@ -0,0 +1,7 @@
|
||||
beep 1
|
||||
goto l2
|
||||
.label l1
|
||||
beep 0
|
||||
.label l2
|
||||
beep 1
|
||||
goto l1
|
||||
@@ -0,0 +1,11 @@
|
||||
|
||||
# make sure errors do not cause a script abort
|
||||
errors ignore
|
||||
|
||||
message 0 "HAMMER TIME! Trying to halt CPU"
|
||||
ap_select 0
|
||||
|
||||
# loop writing the halt bits
|
||||
.label l1
|
||||
mem_write 0xE000EDF0 0xA05F0003
|
||||
goto l1
|
||||
@@ -0,0 +1,8 @@
|
||||
errors ignore
|
||||
status 0
|
||||
message 0 "HAMMER TIME! Try to halt the CPU"
|
||||
.label l1
|
||||
ap_select 0
|
||||
mem_write 0xE000EDF0 0xA05F0001
|
||||
mem_write 0xE000ED0C 0x05FA0004
|
||||
goto l1
|
||||
@@ -0,0 +1,3 @@
|
||||
mem_write 0x20002000 0xdeadbeef
|
||||
mem_write 0xE000EDF0 0xA05F0001
|
||||
mem_write 0xE000EDF0 0xA05F0007
|
||||
Reference in New Issue
Block a user