Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/islandcontroller/mculib-controller-ch32v003
- Owner: islandcontroller
- Created: 2023-03-21T05:56:42.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-02T21:28:00.000Z (about 1 year ago)
- Last Synced: 2023-10-03T05:49:37.457Z (about 1 year ago)
- Topics: ch32v003, mculib, openwch
- Language: C
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```