EPEVER SCCs: Difference between revisions

No edit summary
No edit summary
Line 125: Line 125:
===Unlocking SWD===
===Unlocking SWD===


<code>
<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
</code>
<code>
telnet localhost 4444
telnet localhost 4444
</code>
<code>
reset init
reset init
</code>
<code>
stm32f0x unlock 0
stm32f0x unlock 0
</code>
<code>
flash erase_address unlock 0x08000000 0x10000
flash erase_address unlock 0x08000000 0x10000
</code>
</syntaxhighlight>


::Power cycle & reconnect st-link
::Power cycle & reconnect st-link


<code>
<syntaxhighlight lang="bash">
flash write_image /path/to/dumped_firmware.bin 0x08000000
flash write_image /path/to/dumped_firmware.bin 0x08000000
</code>
<code>
reset
reset
</code>
</syntaxhighlight>


===Dumping Running RAM===
===Dumping Running RAM===


<code>
<syntaxhighlight lang="bash">
halt
halt
</code>
<code>
dump_image /path/to/save/tracer6420an_running_ram.bin 0x20000000 0x2000
dump_image /path/to/save/tracer6420an_running_ram.bin 0x20000000 0x2000
</code>
<code>
resume
resume
</code>
</syntaxhighlight>


=== Protocol Documentation ===
=== Protocol Documentation ===