CMake构建(STM32,GD32)的编译管理环境 一

本文介绍了如何使用CMake构建一个基于STM32 Cortex-M3的嵌入式项目,包括工程目录结构解析、CMakeLists配置以及标准库的组织方式。通过这个教程,读者可以学习到如何有效地管理和编译STM32的C代码工程。
摘要由CSDN通过智能技术生成
  • 工程目录结构
    ├── CMakeLists.txt
    ├── Cortex-M3.cmake
    ├── inc
    ├── ldscripts
    │ └── STM32F103ZCTX_FLASH.ld
    ├── src
    │ ├── CMakeLists.txt
    │ └── ver.h
    ├── std_lib
    │ ├── CMakeLists.txt
    │ ├── CMSIS
    │ │ ├── core_cm3.c
    │ │ ├── core_cm3.h
    │ │ ├── gcc_startup
    │ │ │ └── startup_stm32f103zctx.s
    │ │ ├── stm32f10x_conf.h
    │ │ ├── stm32f10x.h
    │ │ ├── stm32f10x_it.c
    │ │ ├── stm32f10x_it.h
    │ │ ├── system_stm32f10x.c
    │ │ └── system_stm32f10x.h
    │ └── STM32F10x_StdPeriph_Driver
    │ ├── inc
    │ │ ├── misc.h
    │ │ ├── stm32f10x_adc.h
    │ │ ├── stm32f10x_bkp.h
    │ │ ├── stm32f10x_can.h
    │ │ ├── stm32f10x_cec.h
    │ │ ├── stm32f10x_crc.h
    │ │ ├── stm32f10x_dac.h
    │ │ ├── stm32f10x_dbgmcu.h
    │ │ ├── stm32f10x_dma.h
    │ │ ├── stm32f10x_exti.h
    │ │ ├── stm32f10x_flash.h
    │ │ ├── stm32f10x_fsmc.h
    │ │ ├── stm32f10x_gpio.h
    │ │ ├── stm32f10x_i2c.h
    │ │ ├── stm32f10x_iwdg.h
    │ │ ├── stm32f10x_pwr.h
    │ │ ├── stm32f10x_rcc.h
    │ │ ├── stm32f10x_rtc.h
    │ │ ├── stm32f10x_sdio.h
    │ │ ├── stm32f10x_spi.h
    │ │ ├── stm32f10x_tim.h
    │ │ ├── stm32f10x_usart.h
    │ │ └── stm32f10x_wwdg.h
    │ └── src
    │ ├── misc.c
    │ ├── stm32f10x_adc.c
    │ ├── stm32f10x_bkp.c
    │ ├── stm32f10x_can.c
    │ ├── stm32f10x_c

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值