33 lines
838 B
Markdown
33 lines
838 B
Markdown
# Welcome to Hell.
|
|
|
|
## Installation instructions
|
|
|
|
No need to clone this repo manually. You'll just need to install the Rust toolchain.
|
|
|
|
```bash
|
|
# All OSes
|
|
cargo install --git https://git.zumepro.cz/michal.prochazka/tulflash
|
|
```
|
|
|
|
## Flashing Intel HEX binaries
|
|
|
|
```bash
|
|
# All OSes, automatically detects the correct serial port
|
|
tulflash write <path-to-hex>
|
|
```
|
|
|
|
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).
|
|
|
|
## Example program
|
|
|
|
You'll need to clone this repo (or just [download the file](example.c)) and install SDCC:
|
|
|
|
```bash
|
|
tulflash run example.c
|
|
|
|
# Same thing as `tulflash write --cmd "sdcc example.c" --monitor example.ihx`
|
|
```
|
|
|