Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/islandcontroller/mculib-controller-ch32v003

MCU system library for WCH CH32V003 series MCU
https://github.com/islandcontroller/mculib-controller-ch32v003

ch32v003 mculib openwch

Last synced: about 1 month ago
JSON representation

MCU system library for WCH CH32V003 series MCU

Awesome Lists containing this project

README

        

# mculib-controller-ch32v003

## Setup Notes

* Clone into `\Controller\CH32V003\` with `--recursive` tag
* Template files
* Exclude `Template` folder from builds
* Copy template files into parent `Controller` folder and modify to suit system needs
* Target Processor settings
* Architecture: "`RV32E (-march=rv32e)`"
* Compressed Extension (RVC) enabled
* Integer ABI: "`ILP32E (-mabi=ilp32e)`"
* others to disabled state (unchecked, "`None`" or "`Toolchain default`")
* GNU RISC-V Cross Assembler
* Add include directory
```
"${workspace_loc:/${ProjName}/Controller/CH32V003}"
```
* Add include **files**
```
"${workspace_loc:/${ProjName}/Controller/CH32V003/Core/custom_csr.s}"
```
* GNU RISC-V Cross C Compiler
* Add include directories
```
"${workspace_loc:/${ProjName}/Controller}"
"${workspace_loc:/${ProjName}/Controller/CH32V003}"
"${workspace_loc:/${ProjName}/Controller/CH32V003/Core}"
"${workspace_loc:/${ProjName}/Controller/CH32V003/Peripheral/inc}"
```
* GNU RISC-V Cross C Linker
* Set linkerscript location:
```
"${workspace_loc:/${ProjName}/Controller/CH32V003/linker_script_ch32v003x4.ld}"
```
* Select options:
```
-nostartfiles
-Xlinker --gc-sections
--specs=nano.specs
--specs=nosys.specs
```