update build system to be a little more flexible
This commit is contained in:
parent
09ba2415d0
commit
cb73b71ffe
4 changed files with 18 additions and 3 deletions
14
notes.md
14
notes.md
|
|
@ -3,12 +3,24 @@ there is a docker image that contains the entire toolchain + flashing utility. f
|
|||
```shell
|
||||
$ ./init.sh
|
||||
```
|
||||
once built, you won't need to build this again. for the remainder of your development, you can use the following script:
|
||||
once built, you won't need to build this again. for the remainder of your development, you can use the following script to launch the environment shell:
|
||||
```shell
|
||||
$ ./launch.sh
|
||||
```
|
||||
|
||||
this will launch the docker image and give you a shell which has all of the toolchains and flashing utilities installed. to build the firmware image and flash it to the ch32 (assuming you have a wch-linke attached) run the following from inside the env shell:
|
||||
|
||||
```shell
|
||||
$ ./build-run.sh
|
||||
```
|
||||
this will build the firmware image, and attempt to upload it to the board using `wlink`. once uploaded, it will attach a serial debugger.
|
||||
|
||||
to exit the serial debugger simply use `ctrl-c`. to exit the environment shell use:
|
||||
|
||||
```shell
|
||||
$ exit
|
||||
```
|
||||
|
||||
# FLASHING
|
||||
flashing is done using the [`wlink`](https://github.com/ch32-rs/wlink?tab=readme-ov-file#install) utility. `probe-rs` also works, but can be flaky, and does not support SDI prints very well.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue