完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
|
大家好,
我正在研究电机控制套件,包括: - 评估委员会 - 电机控制演示板 我正在将IAR Embedded Workbench IDE的MC Projects(MC Application - RELEASE和UserProject - STM32100B-EVAL)移植到KEIL IDE。 我快要完了,至少我有一个问题: 根据readme.txt - STM32100B-EVAL:为STM32中密度值配置项目 线路设备 @note此配置所需的定义符号已在声明中声明 预处理器部分:USE_STDPERIPH_DRIVER,STM32F10X_MD_VL,USE_STM32100B_EVAL 我的编译器/预处理器定义是: , , 在main.c(第49行)中,我得到Error''无效配置:控制阶段parameters.h中的MCU定义与选定的板不兼容 ''因为是定义的。 背景:main.c包含参数conversion.h,包括Control阶段参数.h。在这里,im Line 27 STM32PERFORMANCEMD是在任何条件下定义的。 / * STM32PERFORMANCEMD或STM32VALUELD或STM32VALUEMD或STM32PERFORMANCEHD * / #define STM32PERFORMANCEMD 这导致第788行的参数conversion.h导致: #if(已定义STM32PERFORMANCEMD)|| (已定义STM32PERFORMANCELD) #define STM32PERFORMANCE #万一 到STM32PERFORMANCE的定义! 所以,返回main.c, #if(已定义(STM32PERFORMANCE)&&!定义(STM32F10X_MD)) #error''配置无效:控制阶段parameters.h中的MCU定义与选定的板不兼容'' #万一 ...并且给出了错误消息。 怎么办? - 更改预处理器 - 定义? - 更改文件控制阶段参数。 谁有想法,什么是正确的? 谢谢你的回答马丁 以上来自于谷歌翻译 以下为原文 Hello everyone, I am working on the Motor Control Kit consisting of: - Evaluation Board with - Motor Control Demonstration Board I am porting the MC Projects (MC Application - RELEASE and UserProject - STM32100B-EVAL) from IAR Embedded Workbench IDE to KEIL IDE. I am nearly finished, at least I have one problem: According to the readme.txt - STM32100B-EVAL: to configure the project for STM32 Medium-density Value line devices @note The needed define symbols for this config are already declared in the preprocessor section: USE_STDPERIPH_DRIVER, STM32F10X_MD_VL, USE_STM32100B_EVAL my Compiler / Preprocessor Defines are: , , In main.c (Line 49) I get Error ''Invalid configuration: MCU definition in Control stage parameters.h not compatible with selected board '' because is defined. Background: main.c includes Parameters conversion.h, that includes Control stage parameters.h. Here, im Line 27 STM32PERFORMANCEMD is defined witout any condition. /* STM32PERFORMANCEMD or STM32VALUELD or STM32VALUEMD or STM32PERFORMANCEHD */ #define STM32PERFORMANCEMD This leads in Parameters conversion.h in Line 788 to: #if (defined STM32PERFORMANCEMD) || (defined STM32PERFORMANCELD) #define STM32PERFORMANCE #endif to the definition of STM32PERFORMANCE! So, returned to main.c, #if (defined(STM32PERFORMANCE) && !defined(STM32F10X_MD)) #error ''Invalid configuration: MCU definition in Control stage parameters.h not compatible with selected board'' #endif ... and the Error-Message is given out. What is to do? - Change the Preprocessor-Defines? - Change File Control stage parameters.h ? Who has an idea, what is correct? Thanks for answersMartin |
|
相关推荐
1个回答
|
|
|
Ciao Martin
我想 #define STM32VALUEMD 应为控制阶段h中设定的相关值。 你有一块STM32100B-EVAL板安装STM32F100,也称为“价值线”。你已经设定了 在你的预处理器中定义,VL意味着''价值线''。 所以我认为它可以工作。 再见 梁咏琪 以上来自于谷歌翻译 以下为原文 Ciao Martin I suppose that #define STM32VALUEMD shall be the corret value to be set in control stage.h. You have a STM32100B-EVAL board that mounts a STM32F100 that is also called ''Value line''. You have already set the in your preprocessor define and the VL mean ''Value Line''. So I think it can work. Ciao Gigi |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1453 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1502 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3649 浏览 1 评论
3842 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2461 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
727浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
661浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
941浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
745浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 06:32 , Processed in 0.543790 second(s), Total 72, Slave 55 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
3468