Problem with nRF24l01+ on KL25Z with STATUS Register

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Problem with nRF24l01+ on KL25Z with STATUS Register

ソリューションへジャンプ
1,126件の閲覧回数
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 解決策
858件の閲覧回数
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 返答(返信)
859件の閲覧回数
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 件の賞賛
返信
858件の閲覧回数
peteros
Contributor I

Hi, Kerry 

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

Thank you so much

0 件の賞賛
返信
858件の閲覧回数
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 件の賞賛
返信