完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我安装了SPC5 Studio v3.0和MinGW编译器,我正在尝试运行SPC560Pxx OS-Less CAN测试应用程序。 main.c文件引用了两个包含(''components.h''和''can_lld_cfg.h'')。我已经包含了这些标头的-IC路径及其后续包含的标头。问题是我遇到两个性能错误,每个错误都是由一个标题与另一个标题相矛盾引起的。
错误& sharp1:''选项CH_DBG_ENABLE_STACK_CHECK此端口不支持'' 引起: ---''chconf.h''(由ch.h包含)第389行:391 --- & sharpif!defined(CH_DBG_ENABLE_STACK_CHECK)||定义(__ DOXYGEN__) & sharpdefine CH_DBG_ENABLE_STACK_CHECK TRUE &安培; sharpendif ---''chcore.h''(由ch.h包含)第39:41行--- & sharpif CH_DBG_ENABLE_STACK_CHECK 此端口不支持& sharperror''选项CH_DBG_ENABLE_STACK_CHECK'' &安培; sharpendif 错误& sharp2:''STM32_MAC_PHY_tiMEOUT需要实时计数器服务'' 引起: ---''hal_lld.h''(由''hal.h''包括)第43行--- & sharpdefine HAL_IMPLEMENTS_COUNTERS FALSE ---''mac_lld.h''(包含在''''''''''''''''''''''''''''' & sharpif!defined(STM32_MAC_PHY_TIMEOUT)||定义(__ DOXYGEN__) & sharpdefine STM32_MAC_PHY_TIMEOUT 100 &安培; sharpendif 和第192:194行 & sharpif(STM32_MAC_PHY_TIMEOUT> 0)&& !HAL_IMPLEMENTS_COUNTERS & sharperror''STM32_MAC_PHY_TIMEOUT需要实时计数器服务'' &安培; sharpendif 我不知道如何在不编辑SPC5 Studio提供的头文件的情况下解决这些矛盾。此外,我注意到我必须从在线下载以下文件,因为它们似乎没有附带产品,尽管标头依赖链的一部分: '' board.h '' '' chconf.h '' '' halconf.h '' '' mac_lld.h '' '' mcuconf.h '' #headers#spc560p #studio#spc5 以上来自于谷歌翻译 以下为原文 I installed SPC5 Studio v3.0 and MinGW compiler, and I am trying to run the SPC560Pxx OS-Less CAN Test Application. The main.c file refers to two includes (''components.h'' and ''can_lld_cfg.h''). I have included -IC paths to those headers and their subsequent included headers. The problem is I am getting two performance errors, each error is caused by one header contradicting another. Error &sharp1: ''option CH_DBG_ENABLE_STACK_CHECK not supported by this port'' Caused by: --- ''chconf.h'' (included by ch.h) lines 389:391 --- &sharpif !defined(CH_DBG_ENABLE_STACK_CHECK) || defined(__DOXYGEN__) &sharpdefine CH_DBG_ENABLE_STACK_CHECK TRUE &sharpendif --- ''chcore.h'' (included by ch.h) lines 39:41 --- &sharpif CH_DBG_ENABLE_STACK_CHECK &sharperror ''option CH_DBG_ENABLE_STACK_CHECK not supported by this port'' &sharpendif Error &sharp2: ''STM32_MAC_PHY_TIMEOUT requires the realtime counter service'' Caused by: --- ''hal_lld.h'' (included by ''hal.h'') line 43 --- &sharpdefine HAL_IMPLEMENTS_COUNTERS FALSE --- ''mac_lld.h'' (included by ''mac.h'' (included by ''hal.h'')) lines 152:154 --- &sharpif !defined(STM32_MAC_PHY_TIMEOUT) || defined(__DOXYGEN__) &sharpdefine STM32_MAC_PHY_TIMEOUT 100 &sharpendif and lines 192:194 &sharpif (STM32_MAC_PHY_TIMEOUT > 0) && !HAL_IMPLEMENTS_COUNTERS &sharperror ''STM32_MAC_PHY_TIMEOUT requires the realtime counter service'' &sharpendif I don't know how to solve these contradictions without editing the SPC5 Studio supplied header files. Also, I noticed I had to download the following files from online, since they did not appear to come with the product, although part of the header dependency chain:
#headers #spc560p #studio #spc5 |
|
相关推荐
3个回答
|
|
大卫你好,
SPC5Studio不符合Mingw。 Mingw适用于Win32应用程序。 SPC560Pxx OS-Less CAN测试应用程序是由hightec编译器编译的Vle模式的POWERPC嵌入式应用程序。 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello David , SPC5Studio is not compliant with Mingw. Mingw is for Win32 application. SPC560Pxx OS-Less CAN Test Application is an embedded application for POWERPC in Vle Mode compiled by hightec compiler. Best Regards Erwan |
|
|
|
二湾,
这很有用,并解释了我的其他一些错误。但是,我明确提到的错误是同一依赖链上的头文件之间的冲突,无论使用何种编译器。我该如何解决这些问题? 大卫 以上来自于谷歌翻译 以下为原文 Erwan, That is good to know, and explains some of my other errors. However, the errors I explicitly mentioned are conflicts between header files on the same dependency chain, regardless of the compiler used. How do I solve those? David |
|
|
|
大卫你好,
错误1: ******** SPC560Pxx无OS测试应用程序是无OS操作系统。 它应该包含chconf.h 对于Chibios应用, chconf.h从您的GUI重新生成。 CH_DBG_ENABLE_STACK_CHECK是ChibiOS / RT可移植内核组件中的错误设置 请取消选中启用堆栈检查,重新生成并重新编译。 错误2: ******** STM32_MAC_PHY_TIMEOUT仅适用于STM32而不适用于SPC56 它应该包含在SPC56应用程序中 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello David , Error 1 : ******** SPC560Pxx OS-Less CAN Test Application is a OS-Less Application. it should contain chconf.h For Chibios Application, chconf.h is regenerated from your GUI. CH_DBG_ENABLE_STACK_CHECK is a bad settings in your ChibiOS/RT Portable Kernel Component Please uncheck Enable Stack Check, regenerate and recompile. Error 2 : ******** STM32_MAC_PHY_TIMEOUT is for STM32 only not SPC56 it should be included in SPC56 applications Best Regards Erwan |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2666 浏览 1 评论
3221 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1793 浏览 1 评论
3622 浏览 6 评论
6003 浏览 21 评论
952浏览 4评论
1324浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
598浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
1317浏览 3评论
1376浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-2 16:51 , Processed in 1.537199 second(s), Total 82, Slave 66 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号