stm32报错
阅读原文时间:2023年07月11日阅读:1

关于编译错误的小伙伴:error: #268: declaration may not appear after executable statement in block
解决方法:魔棒->c/c++->C99 Mode选择对号(因为keil 默认编译标准是C89)

Rebuild started: Project: project
*** Using Compiler 'V6.19', folder: 'D:\programs\Keil\Keil_v5\ARM\ARMCLANG\Bin'
Rebuild target 'Target 1'
Start/core_cm3.c(445): error: non-ASM statement in naked function is not supported
uint32_t result=0;

解决:魔棒--> target-->将编译器改为版本5。

3、cannot configure a CMake target with CLion (Nothing to run on)?

ERROR:打开之前的stm32项目 Clion 无法识别 CMakeLists.txt,编译按钮变成灰色,点击run按钮会产生 cannot build xxx.elf 或者 Nothing to run on,在run配置target和executable不到elf文件。

解决方法:delete .idea/workspace.xml and restart. It would fixed itself.

删除并重建Openocd配置文件。(可能是因为CMake application重建了?)

手机扫一扫

移动阅读更方便

阿里云服务器
腾讯云服务器
七牛云服务器

你可能感兴趣的文章