Skip to content

Commit

Permalink
README: tweak flashing instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
horacekj committed Sep 9, 2023
1 parent a1df054 commit 32e21e3
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,18 @@ MTB-USB module is a master module of MTBbus.
```

* Flashing:
- `st-flash` (via STlink)
There are two independent options for firmware flashing to MTB-USB.

1. `st-flash` (via STlink)
MTB-USB module contains programming connector. Use STlink to program the MCU.
```bash
$ make flash_with_bootloader
```
- Or use DFU bootloader in MTB-USB (if bootloader already flashed).
```bash
make flash_dfu
```
```bash
$ make flash_with_bootloader
```
2. Via DFU bootloader in MTB-USB (if bootloader already present in MTB-USB).
```bash
$ ./reboot_to_dfu.sh
$ make flash_dfu
```

## References

Expand Down

0 comments on commit 32e21e3

Please sign in to comment.