Problem with nRF24l01+ on KL25Z with STATUS Register

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

Problem with nRF24l01+ on KL25Z with STATUS Register

跳至解决方案
1,639 次查看
peteros
Contributor I

Hello,

 

I got problem with nRF24l01 modul. The SPI communications works, but when I  send payload (I only use transmmiter)I check the STATUS register and the value should be 0x10 for max retransmit payload, but it always set on 0x0E. What can be the problem ? Iam using KL25Z

Thanks

Code is below

标记 (2)
0 项奖励
回复
1 解答
1,371 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi customer,

    When you send payload, whether the SPI bus wave received data is the same as the KL25 code?

   If yes, it means the slave feedback is wrong, please check the SPI bus wave.

  If the SPI bus wave data is correct, then it should be the KL25 code's problem, your master need to select same SPI mode, CHPA and CPOL as your slave.


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,372 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi customer,

    When you send payload, whether the SPI bus wave received data is the same as the KL25 code?

   If yes, it means the slave feedback is wrong, please check the SPI bus wave.

  If the SPI bus wave data is correct, then it should be the KL25 code's problem, your master need to select same SPI mode, CHPA and CPOL as your slave.


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,371 次查看
peteros
Contributor I

Hi, Kerry 

Yes i change CPHA and CPOL and it works :smileyhappy:

Thank you so much

0 项奖励
回复
1,371 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi h h,

  That's very good!

   If your problem is solved, please help me mark the correct answer, just to close this case, thank you!


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复