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

用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 求指导ADS低噪放设计
  • ¥15 CARSIM前车变道设置
  • ¥50 三种调度算法报错 有实例
  • ¥15 关于#python#的问题,请各位专家解答!
  • ¥200 询问:python实现大地主题正反算的程序设计,有偿
  • ¥15 smptlib使用465端口发送邮件失败
  • ¥200 总是报错,能帮助用python实现程序实现高斯正反算吗?有偿
  • ¥15 对于squad数据集的基于bert模型的微调
  • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
  • ¥20 steam下载游戏占用内存