MM32 C language startup library, supports IAR, KEIL (ARMCC, ARMCLANG) and GCC.
MM32 C 语言启动库,支持 IAR、KEIL(ARMCC、ARMCLANG)和 GCC。
This repository contains / 本仓库包含:
- startup files / 启动文件
- header files / 头文件
- clock initialization files / 时钟初始化文件
Core Version | Chip |
---|---|
__MM0N1 | MM32L0xx, MM32F031 |
__MM3N1 | MM32F103 |
__MM3O1 | MM32F103 |
__MM0P1 | MM32SPIN2x |
__MM0Q1 | MM32F003, MM32F031, MM32SPIN0x |
__MM0S1 | MM32F032, MM32F013x |
__MM0T1 | MM32F0010 |
__MM3U1 | MM32F3270 |
__MM0V1 | MM32F0270 |
__MM0W1 | MM32SPIN0280 |
__MM0Y1 | MM32F0140 |
__MM0Z1 | MM32F0020 |
__MM33CA1 | MM32F5270 |
__MM0PB1 | MM32L0130 |
__MM0OTPM1 | MM32P021 |
Add to the project via Git submodule.
通过 Git 子模块方式添加到项目中。
git submodule add https://github.com/iclite/mm32_startup.git
If you want to add to the specified path, please append the path at the end of the above command.
如果想要添加到指定路径,请在上面的命令最后追加路径,例如:
git submodule add https://github.com/iclite/mm32_startup.git lib/startup
下载源代码,复制到您的项目中。
Add GNU Arm Embedded Toolchain Path to Environment variable. e.g.:
C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\bin\
For VS Code .vscode/settings.json
:
{
"C_Cpp.default.compilerPath": "arm-none-eabi-gcc.exe",
"C_Cpp.default.compilerPath": [
"${workspaceFolder}/inc/",
"${GITWORK_PATH}/github.com/ARM-software/CMSIS_5/CMSIS/Core/Include/**"
],
"C_Cpp.default.defines": ["__MM0Q1", "CLOCK=8000000"]
}