目录
安装keil 要求版本在5.27以上
我是在都都软件站里面找到的安装包,可以司机去百度一下
安装STM32F10x以及GD32E10x的pack
1. keil的pack install安装
2.GD官网下载GD32E10x_DFP
3.STM32官网下载pack
配置keil工程
- 设置魔法棒里面的Device,修改为GDE103CB
- 配置flash
- 接下来编译烧录即可
报错
#error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
解决方法:
1. 在魔法棒的c/c++的define增加:__FPU_PRESENT
//2. core_cm3.h
//大概在78行左右
#if defined ( __CC_ARM )
#if defined __TARGET_FPU_VFP
#if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)
#undef __FPU_USED
#define __FPU_USED 1U
#else
#error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
#endif
#endif
/* 原本是这样的*/
#if defined ( __CC_ARM )
#if defined __TARGET_FPU_VFP
#error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
#endif
/*这部分是借鉴了网络上的一个文章,地址找不到了,原作者看到了可以和我联系我来加上*/
到此 移植就结束了
有什么问题欢迎大家留言