完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
|
嗨,大家好,
我正在尝试在SPC560B-DIS上使用SPI但是lld_spi.c库看起来已损坏我有这个错误日志: 分配给自己'spip-> dspi-> SR.R = spip-> dspi-> SR.R'spi_lld.c有人知道如何解决它吗? 提前致谢 丹尼尔。 #library #spi #assignment#spi_lld.c 以上来自于谷歌翻译 以下为原文 Hi everyone, I'm trying to use SPI on SPC560B-DIS but the library lld_spi.c looks to be corrupted I have this error log: Assignment to itself 'spip->dspi->SR.R = spip->dspi->SR.R' spi_lld.c does someone know how to fix it?? Thanks in advance Daniele. #library #spi #assignment #spi_lld.c |
|
相关推荐
4个回答
|
|
|
丹尼尔你好,
这不是一个bug。 参见RM0037中的第28.5.5节 它是DSPI状态寄存器 'DSPIx_SR包含状态和标志位。这些位由硬件设置并反映出来 DSPI的状态并指示可以生成中断或DMA的事件的发生 要求。 。 将“0”写入标志位无效。最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello Daniele , it is not a bug. cf Chapter 28.5.5 in the RM0037 it is the DSPI Status Register 'The DSPIx_SR contains status and flag bits. The bits are set by the hardware and reflect the status of the DSPI and indicate the occurrence of events that can generate interrupt or DMA requests. . Writing a ‘0’ to a flag bit has no effect.' Best regards Erwan |
|
|
|
|
|
我不明白你的意思是什么或解决方案是什么,或者一般我该怎么做。
该指令位于lld_spi.c中,不是我编写的,而是来自SPC5Studio的开发人员,我很快就启用了 向导中的spi编译器包含库,它发现错误。 有办法解决它吗? 如果我启用FlexCAN外设而不是我启用例如FlexCAN0,如果我生成并且编译它不可能编译,则会出现同样的问题 分配给它自己'canp-> flexcan-> IFRH.R = canp-> flexcan-> IFRH.R'can_lld.c / prova CAN / components / spc560bxx_low_level_drivers_component_rla / lib / src第95行代码分析问题 以上来自于谷歌翻译 以下为原文 I don't understand what you mean with that or what is the solution or in general what should I do. That instruction is in the lld_spi.c not written by me but from the developers of SPC5Studio and as soon i enable the spi in the wizard the compiler includes the library and it founds the error. there is a way to fix it?? Same problem occurres with CAN if i enable the the FlexCAN peripheral than i enable for instance FlexCAN0 if i generate and than compile it's impossible to compile Assignment to itself 'canp->flexcan->IFRH.R = canp->flexcan->IFRH.R' can_lld.c /prova CAN/components/spc560bxx_low_level_drivers_component_rla/lib/src line 95 Code Analysis Problem |
|
|
|
|
|
丹尼尔你好,
我认为这是CDT配置问题 您可以在CDT配置中禁用它 http://stackoverflow.com/questions/23768307/why-does-eclipse-cdt-say-self-assignment-is-an-error 它不会在Free Gcc,Hightec gcc和GHS上产生编译问题 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello Daniele , I think that it is a CDT Configuration issue You can disable it in CDT configuration http://stackoverflow.com/questions/23768307/why-does-eclipse-cdt-say-self-assignment-is-an-error it does not generate compilation issue on Free Gcc, Hightec gcc and GHS Best regards Erwan |
|
|
|
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
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-1 22:09 , Processed in 0.832806 second(s), Total 78, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
551