https://github.com/islandcontroller/mculib-controller-ch32v103
MCU system library for WCH CH32V103 series MCU
https://github.com/islandcontroller/mculib-controller-ch32v103
ch32v103 mculib openwch
Last synced: 4 months ago
JSON representation
MCU system library for WCH CH32V103 series MCU
- Host: GitHub
- URL: https://github.com/islandcontroller/mculib-controller-ch32v103
- Owner: islandcontroller
- Created: 2022-03-02T19:40:51.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-02-20T21:02:49.000Z (4 months ago)
- Last Synced: 2025-02-20T22:19:47.582Z (4 months ago)
- Topics: ch32v103, mculib, openwch
- Language: Assembly
- Homepage:
- Size: 40 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mculib-controller-ch32v103
## Setup Notes
* Clone into `\Controller\CH32V103\` with `--recursive` tag
* Template files
* Exclude `Template` folder from builds
* Copy template files into parent `Controller` folder and modify to suit system needs
* GNU RISC-V Cross Assembler
* Add include directory
```
"${workspace_loc:/${ProjName}/Controller/CH32V103}"
```
* GNU RISC-V Cross C Compiler
* Add include directories
```
"${workspace_loc:/${ProjName}/Controller}"
"${workspace_loc:/${ProjName}/Controller/CH32V103}"
"${workspace_loc:/${ProjName}/Controller/CH32V103/Core}"
"${workspace_loc:/${ProjName}/Controller/CH32V103/Peripheral/inc}"
```
* GNU RISC-V Cross C Linker
* Set linkerscript location:
```
"${workspace_loc:/${ProjName}/Controller/CH32V103/linker_script_ch32v103x8.ld}"
```
(or `...x6.ld` for devices with small memory)
* Select options:
```
-nostartfiles
-Xlinker --gc-sections
--specs=nano.specs
--specs=nosys.specs
```