硬汉嵌入式论坛

 找回密码
 立即注册
查看: 3673|回复: 1
收起左侧

在网上下载一个例程,为什么出现红叉呢?

[复制链接]

32

主题

97

回帖

193

积分

初级会员

积分
193
发表于 2016-1-2 18:16:32 | 显示全部楼层 |阅读模式
我是用keil5大家帮忙看看,这是怎么回事,编译提示:
..\drivers\stm32f4xx.h(80): error:  #35: #error directive: &quotlease select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error &quotlease select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"

例程

例程

m1.zip

25.36 MB, 下载次数: 84

回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
107396
QQ
发表于 2016-1-3 09:38:28 | 显示全部楼层
看错误说明是因为你没有在option的C/C++的预编译里面添加STM32F4类型。这个要添加的。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-5-29 19:12 , Processed in 0.153080 second(s), 29 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表