Compare commits

...

2 Commits

Author SHA1 Message Date
eda224c64d
Fix the sense of the --no-reset flag
The argument was set to 'SetFalse', so when present was setting the bool
to false, but the test was also negated, so reset was opposite of
desired.
2023-11-06 19:31:28 -08:00
c53a940ca5
Add README 2023-11-06 19:31:10 -08:00
2 changed files with 30 additions and 1 deletions

29
README.md Normal file
View File

@ -0,0 +1,29 @@
# lpc55prog
`lpc55prog` was built as a tool for flashing NXP LPC5526/28 microcontrollers
using their built-in bootloader ROM's USB ISP mode. Work was started on this
tool as I couldn't find an official or community tool for doing so.
Later I discovered the very poorly named/discoverable `bltool` that implements
this protocol (which I have [mirrored](https://git.gotroot.ca/ktims/blhost) in
my forge).
## Features
`lpc55prog` can read, write and erase the flash of LPC5526, LPC5528, LPC55S26 &
LPC55S28 microcontrollers using the USB ISP. Object files can be read or written
in raw binary or Intel hex, and can also be written to simple ELF.
It has only been tested on Linux, but will likely also work on other *nix
systems like macOS. Windows might work, please let me know if it does 🙂.
## Installation
```shell
git clone https://git.gotroot.ca/ktims/lpc55prog
cargo install --path lpc55prog
```
## Usage
See `lpc55prog help`.

View File

@ -178,7 +178,7 @@ struct WriteArgs {
size: Option<u32>, size: Option<u32>,
/// Don't reset the microcontroller after writing /// Don't reset the microcontroller after writing
#[arg(short, long, action=ArgAction::SetFalse)] #[arg(short, long)]
no_reset: bool, no_reset: bool,
/// Erase method to use before writing /// Erase method to use before writing