EPEVER SCCs: Difference between revisions
Symbioquine (talk | contribs) No edit summary |
Symbioquine (talk | contribs) No edit summary |
||
| Line 125: | Line 125: | ||
===Unlocking SWD=== | ===Unlocking SWD=== | ||
< | <syntaxhighlight lang="bash"> | ||
openocd -s $(pwd) -f interface/stlink-dap.cfg -f target/stm32f0x.cfg | openocd -s $(pwd) -f interface/stlink-dap.cfg -f target/stm32f0x.cfg | ||
telnet localhost 4444 | telnet localhost 4444 | ||
reset init | reset init | ||
stm32f0x unlock 0 | stm32f0x unlock 0 | ||
flash erase_address unlock 0x08000000 0x10000 | flash erase_address unlock 0x08000000 0x10000 | ||
</ | </syntaxhighlight> | ||
::Power cycle & reconnect st-link | ::Power cycle & reconnect st-link | ||
< | <syntaxhighlight lang="bash"> | ||
flash write_image /path/to/dumped_firmware.bin 0x08000000 | flash write_image /path/to/dumped_firmware.bin 0x08000000 | ||
reset | reset | ||
</ | </syntaxhighlight> | ||
===Dumping Running RAM=== | ===Dumping Running RAM=== | ||
< | <syntaxhighlight lang="bash"> | ||
halt | halt | ||
dump_image /path/to/save/tracer6420an_running_ram.bin 0x20000000 0x2000 | dump_image /path/to/save/tracer6420an_running_ram.bin 0x20000000 0x2000 | ||
resume | resume | ||
</ | </syntaxhighlight> | ||
=== Protocol Documentation === | === Protocol Documentation === | ||