新建工程-寄存器版本
选择cpu型号
- project->new project
在线添加库文件
- 选择STM32F429IGT
添加文件
- startup_STM32F429xx.s
- stm32F429xx.h
- main.c
配置魔术棒选项卡
- 使用Use MicroLib
- Use Double Precision
- output,使能hex生成,选择output文件夹
- Listing, 选择listing文件夹
- Debug,选择DAP
- Utilities,选择use debug Driver
- Debug, Settings,reset选择autodetect
- Debug,Settings,flash download选择earse sectors,勾选reset and run
增加m4内核支持的路径支持
- c/c++添加m4库路径,参考路径如下:
- STM32Cube_FW_F4_V1.19.0\Drivers\CMSIS\Include
编译
- 可以成功。