SDK源码链接在本文末尾,如有需要,即可下载。
SDK代码目录:
.
├── cmsis
│ ├── core_cm3.c
│ ├── core_cm3.h
│ ├── newlib_stubs.c
│ ├── stm32f10x_conf.h
│ ├── stm32f10x.h
│ ├── stm32f10x_it.h
│ ├── system_stm32f10x.c
│ └── system_stm32f10x.h
├── drivers
│ └── STM32F10x_StdPeriph_Driver
├── hal_apollo
│ ├── led.c
│ ├── led.h
│ ├── uart_log.c
│ └── uart_log.h
├── out
├── platform
│ └── freertos
├── ref_design
│ └── main.c
├── scripts
│ ├── ld
│ ├── Makefile
│ ├── Makefile_freertos.mk
│ └── Makefile_std_lib.mk
├── startup
│ └── startup_stm32f10x_md.s
├── system
└── tools
├── Burn_tool
└── gcc-arm-none-eabi-10.3-2021.10
驱动编译:
cd scripts
make
编译结果:
输出文件:
out/
├── stm32f103c8t6.bin
├── stm32f103c8t6.elf
├── stm32f103c8t6.hex
└── stm32f103c8t6.map
0 directories, 4 files
主函数入口,代码在:stm32f103c8t6_freertos/ref_design/main.c中
SDK工程源码: