Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add requirements.txt #16

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions README → README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,18 @@ Python script which will talk to the STM32 bootloader to upload and download fir

Original Version by: Ivan A-R <[email protected]>

## Installation

Usage: ./stm32loader.py [-hqVewvr] [-l length] [-p port] [-b baud] [-a addr] [file.bin]
```bash
git clone [email protected]:jsnyder/stm32loader.git
cd stm32loader
pip install -r requirements.txt
```

## Usage

```bash
./stm32loader.py [-hqVewvr] [-l length] [-p port] [-b baud] [-a addr] [file.bin]
-h This help
-q Quiet
-V Verbose
Expand All @@ -18,12 +28,12 @@ Usage: ./stm32loader.py [-hqVewvr] [-l length] [-p port] [-b baud] [-a addr] [fi
-p port Serial port (default: /dev/tty.usbserial-ftCYPMYJ)
-b baud Baud speed (default: 115200)
-a addr Target address
```

./stm32loader.py -e -w -v example/main.bin
## Example


Example:
```bash
stm32loader.py -e -w -v somefile.bin

```
This will pre-erase flash, write somefile.bin to the flash on the device, and then perform a verification after writing is finished.

1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyserial>=3.1.1