ST意法半导体
直播中

王雪

7年用户 208经验值
私信 关注
[问答]

在SPC560B-DIS上使用SPI但lld_spi.c库看起来已损坏

嗨,大家好,

我正在尝试在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)

刘鑫

2018-10-11 17:05:16
丹尼尔你好,
这不是一个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
举报

王雪

2018-10-11 17:20:50
我不明白你的意思是什么或解决方案是什么,或者一般我该怎么做。
 
 该指令位于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
举报

刘鑫

2018-10-11 17:28:32
丹尼尔你好,
我认为这是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
举报

王雪

2018-10-11 17:45:58
好的,谢谢你,Erwan

以上来自于谷歌翻译


以下为原文




ok thank you Erwan
举报

更多回帖

发帖
×
20
完善资料,
赚取积分