added picotool for dumping firmware

pull/3/head
Christodoulos Sotiriou 2022-10-02 19:24:56 +01:00
parent 9c8228454a
commit 78b1f25158
1 changed files with 16 additions and 0 deletions

View File

@ -14,6 +14,8 @@
### Send a new firmware into the microcontroller using serial port
- avrdude
```powershell
# send raw data firmware
$ avrdude -p m328p -c usbasp -P /dev/ttyUSB0 -b 9600 -U flash:w:flash_raw.bin
@ -25,6 +27,13 @@ $ avrdude -c usbasp -p m328p -F -U flash:r:dump.hex:i
$ avrdude -c usbasp -p m328p -C /etc/avrdude.conf -U flash:w:hardcodedPassword.ino.arduino_standard.hex
```
- picotool
```bash
# extention indicates the type (bin, uf2)
picotool load firmware.bin
```
### Dump firmware using debug port
* avrdude
@ -51,6 +60,13 @@ exit
sudo openocd -f /home/maki/tools/hardware/openocd/tcl/interface/stlink-v2-1.cfg -f /home/maki/tools/hardware/openocd/tcl/target/nrf51.cfg -f dump_fw.cfg
```
- picotool
```bash
# extention indicates the type (bin, uf2)
picotool save firmware.bin
```
### Convert ihex to elf
> The Intel HEX is a transitional file format for microcontrollers, (E)PROMs, and other devices. The documentation states that HEXs can be converted to binary files and programmed into a configuration device.