Implemented auto port detection
This commit is contained in:
14
README.md
14
README.md
@@ -12,17 +12,11 @@ cargo install --git https://git.zumepro.cz/michal.prochazka/tulflash
|
||||
## Flashing Intel HEX binaries
|
||||
|
||||
```
|
||||
# Linux
|
||||
tulflash --port /dev/ttyUSBx write <path-to-hex>
|
||||
|
||||
# macOS
|
||||
tulflash --port /dev/tty.usbserial-xxx write <path-to-hex>
|
||||
|
||||
# Wokňous
|
||||
tulflash --port COMx write <path-to-hex>
|
||||
# All OSes, automatically detects all ports
|
||||
tulflash write <path-to-hex>
|
||||
```
|
||||
|
||||
If the flash fails, try to add `--slow` before the `--port` argument (should not be needed though).
|
||||
If the flash fails, try to add `--slow` before `write` (should not be needed though).
|
||||
|
||||
The tool also allows reading and erasing the chip, figure that out on your own if you need that (although `tulflash --help` might guide you if you ask it nicely).
|
||||
|
||||
@@ -32,6 +26,6 @@ You'll need to clone this repo (or just [download the file](example.c)) and inst
|
||||
|
||||
```
|
||||
sdcc example.c
|
||||
tulflash --port ... write example.ihx
|
||||
tulflash write example.ihx
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user