diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2023-01-18 02:23:12 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2023-01-18 02:23:12 -0700 |
commit | adb7d9e96ed55c7be5bf2da435c1e568dc11ab8f (patch) | |
tree | d6b827e43773f796f0b26661eefd764a04272ff3 | |
parent | 2ead5ea02814bcae8f4b08206aa8017051357b0f (diff) | |
download | ch573-adb7d9e96ed55c7be5bf2da435c1e568dc11ab8f.tar.gz ch573-adb7d9e96ed55c7be5bf2da435c1e568dc11ab8f.tar.bz2 ch573-adb7d9e96ed55c7be5bf2da435c1e568dc11ab8f.zip |
Added README file.
-rw-r--r-- | README.md | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..e950fd0 --- /dev/null +++ b/README.md @@ -0,0 +1,39 @@ +# CH573F + +## Background + +The CH573F is a relatively new, little micro controller powered off a 32-bit +Risc-V core. It's a Chinese board with tenuous support with existing +infrastructure, but they are dirt-cheap on Ali Express with +not-impossible-to-read documentation. This makes it prime real-estate for some +bare-metal hacking. One can find them [here](https://www.aliexpress.us/item/3256804723616466.html). + +## Setup + +To compile this project, one needs a riscv32 cross compiler. These can be built +with ct-ng. Describing this processes is outside the scope of this document, but it +can be done. + +You should then have a cross-compiler with a tuple like +`riscv32-arm-unknown-elf`, which is the tuple this project expects. + +## Compilation + +To compile, just run make. There are no build dependencies at the moment. + +## Flashing + +Flashing this project is more difficult as the offical method for flashing uses +proprietary-garbage. Luckily there's an open-source solution at +https://github.com/frank-zago/isp55e0. So one needs to build that project and +flash using it. + +The board can be fickle at times, but I got the flashing procedure down consistently. + +To flash you, + +1. Disconnect the board from the USB +2. Hold the BOOT button, and plug the board back in (while stil holding BOOT!) +3. run `make flash` (Still hold BOOT!) + +once make flash is complete, the board should immediately reset and start blinking. |