GD3162 SPIERR

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

GD3162 SPIERR

跳至解决方案
2,261 次查看
Akshat_VE02376
Contributor III

Hi NXP, 
When I'm writing different values in different gate drivers, I'm facing SPIERR. The gate drivers are connected in a daisy chain configuration as is shown in the attached image. I have also attached the code snippet for the function which writes different values in the lower side 3 gate drivers. (Ideally the code design is to support single value to be written in all 6 GD's but due to some HW constraints, I had to implement separate functions for different configurations in lower side GD's. Even though SPIERR is there, I'm able to write the expected values to the registers

0 项奖励
回复
1 解答
1,903 次查看
RafaR
NXP Employee
NXP Employee

Hi all

For anyone who wants to see how this case was resolved, please go to: GD3162 Daisy Chain

Have a great day and best of luck.

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,904 次查看
RafaR
NXP Employee
NXP Employee

Hi all

For anyone who wants to see how this case was resolved, please go to: GD3162 Daisy Chain

Have a great day and best of luck.

0 项奖励
回复
2,256 次查看
Akshat_VE02376
Contributor III
Putting it short, what I'm doing is....First sending txData to all 6 gate drivers and then for the particular gate drivers for which the configuration requirement is different, for those gate drivers, I'm over writing to the already configured value
0 项奖励
回复
2,241 次查看
RafaR
NXP Employee
NXP Employee

I am starting to work on your case, I will contact you soon.

0 项奖励
回复
2,208 次查看
Akshat_VE02376
Contributor III
Yes please do
0 项奖励
回复
2,053 次查看
RafaR
NXP Employee
NXP Employee

Hi Akshat

Sorry for the delay, I needed to do a little more research.

What would be most helpful is to provide a scope or logic analyzer capture of the SPI frame, also including INTB signal, showing when the SPIERR is actually happening. Normally the GD should reject any invalid frame and not allow you to write any data in that case. SPIERR may occur if the number of SCLK pulses within an instance of CSB low is not a multiple of 24 (in your case 3x24 bits). SPIERR may also occur if the CRC data is incorrect.

Please check which exact SPI frame is generating the SPIERR. Also please list down what register you are intending to write, and with which data, as well as the 3 bytes of data (R/W+addr+data+crc) sent to the SPI peripheral.

Have a great day and best of luck.

0 项奖励
回复