EIDE报错:#error directive: “Please select first the target STM32F3xx device used in your application

文章讲述了在使用STM32F3xx开发时遇到的编译错误,提示需要先选择目标设备(如STM32F303x8),并建议检查并替换源码中的相应配置。错误解决方法是直接在源代码中进行修改,然后按照指示操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

报错为:Please select first the target STM32F3xx device used in your application (in stm32f3xx.h file

解决办法如下:

我这里改为STM32F303x8这个就不报错了,如果你还报错请直接去你的源码里面复制:如下图所示:复制完成按上面重新操作即可解决错误

正在文件夹 02_led_flow_register 中执行任务: "unify_builder -p "d:\project\stm32\02_led_flow_register\build\Target 1\builder.params" --rebuild" [ INFO ] start building at 2025-06-23 08:30:56 [ TOOL ] Product: ARM Compiler 5.06 [ INFO ] file statistics (rebuild mode) +---------+-----------+-----------+---------------+--------+ | C Files | Cpp Files | Asm Files | Lib/Obj Files | Totals | +---------+-----------+-----------+---------------+--------+ | 3 | 0 | 1 | 0 | 4 | +---------+-----------+-----------+---------------+--------+ [ INFO ] start compiling ... >> [ 25%] CC 'start/core_cm3.c' >> [ 50%] AS 'start/startup_stm32f10x_md.s' >> [ 75%] CC 'start/system_stm32f10x.c' ".\start\stm32f10x.h", line 95: Error: #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)" #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)" ^ .\start\system_stm32f10x.c: 0 warnings, 1 error ERROR compilation failed at : "d:\project\stm32\02_led_flow_register\start\system_stm32f10x.c", exit code: 1 command: "C:\Users\yang'mao'jin\.eide\tools\armcc_v5_cracked\bin\armcc.exe" -c --apcs=interwork -Istart -Iuser -I.cmsis/include -I"RTE/_Target 1" --cpu Cortex-M3 --li --c99 -O0 --split_sections --gnu --diag_suppress=1 --diag_suppress=1295 -g -o ".\build\Target 1\.obj\start\system_stm32f10x.o" --no_depend_system_headers --depend ".\build\Target 1\.obj\start\system_stm32f10x.d" .\start\system_stm32f10x.c ERROR build failed !, elapsed time 0:0:2 怎么解决
最新发布
06-24
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Liang_Xia_Strive

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值