qq_45691992 2022-09-11 00:17 采纳率: 66.7%
浏览 106
已结题

用rt thread env生成的gd32工程怎么修改芯片型号

问题遇到的现象和发生背景

用rt thread env生成的是gd32f303ZE工程,我在mdk改成gd32f303RC就警告,报错,rt thread程序不能正常运行。

  1. 先是在 device 中将gd32f303ZE改成gd32f303RC
    然后mdk5编译信息:
         #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
    Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_rcu.c: 1 warning, 0 errors
    compiling gd32f30x_timer.c...
    Libraries\CMSIS\core_cm4.h(118): warning:  #1215-D: #warning directive: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
         #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
    Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_timer.c: 1 warning, 0 errors
    linking...
    Program Size: Code=93248 RO-data=12436 RW-data=900 ZI-data=4492  
    After Build - User command #1: fromelf --bin .\build\rtthread-gd32f30x.axf --output rtthread.bin
    ".\build\rtthread-gd32f30x.axf" - 0 Error(s), 32 Warning(s).
    
    这时程序下载后,不能正常运行。

2.然后在 target 中关掉 single precision 后
mdk5编译信息:报错

.\build\rtthread-gd32f30x.axf: Error: L6366E: main.o attributes are not compatible with the provided attributes .
Object main.o contains Build Attributes that are incompatible with the provided attributes.
    Tag_FP_arch = VFPv4 instructions were permitted, but only citing registers D0-D15 (=6)
    Tag_ABI_HardFP_use = This code should execute on the single-precision variant derived from Tag_FP_arch (=1)
    Tag_FP_HP_extension = Use of the optional half-precision extension to VFPv3/Advanced SIMDv1 was permitted (=1)

  • 写回答

1条回答 默认 最新

  • Flyshine~ 2022-09-11 12:18
    关注

    截个报错图看看

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 9月22日
  • 已采纳回答 9月14日
  • 修改了问题 9月11日
  • 修改了问题 9月11日
  • 展开全部

悬赏问题

  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私
  • ¥15 ROS系统搭建请教(跨境电商用途)
  • ¥15 AIC3204的示例代码有吗,想用AIC3204测量血氧,找不到相关的代码。