Added command for generating the kopyto

This commit is contained in:
2025-09-20 23:04:18 +02:00
parent 37f15bf187
commit ab9078ab3f
3 changed files with 55 additions and 19 deletions

View File

@@ -2,31 +2,33 @@
## Installation instructions
No need to clone this repo manually. You'll just need to install the Rust toolchain.
No need to clone this repo manually. You'll just need to install the Rust toolchain and SDCC.
```bash
# All OSes
cargo install --git https://git.zumepro.cz/michal.prochazka/tulflash
```
## Flashing Intel HEX binaries
## Running the example program
```bash
# Generate the example program (only needed to run once):
tulflash example
# Compile, flash and monitor the example program:
tulflash run example.c:
# note: `tulflash run example.c` is the thing as `tulflash write --cmd "sdcc example.c" --monitor example.ihx`
```
If the flash fails, try to add `--slow` before `run` (should not be needed though).
## Manually 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`
```