LPSPI Debugging S32K344

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

LPSPI Debugging S32K344

ソリューションへジャンプ
1,926件の閲覧回数
JoDo
Contributor III

Hello,

I wrote a small master salve code and tried to verify the function by debugging it.

When I step through the code, it seems that the flags and data registers are reset by themselves (see image below). But when I run the complete code (without stepping) everything is fine. The master is transmitting and the slave is receiving correctly.

I am using the onboard debuger P&E USB MULTILINK and I have also enabled debug in the CR.

Does anyone have an idea what the problem is?

Thanks!

JoDo_0-1633002920285.png

 

0 件の賞賛
返信
1 解決策
1,918件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Johannes,

The RDF flag indicates the state of the RX FIFO.

And the data can be read by any master from the FIFO, not only the CPU and DMA but the debugger too.

You would need to close the register view and the memory view so that the Receive Data Register (RDR) is not read by the debugger.

 

Regards,

Daniel

元の投稿で解決策を見る

3 返答(返信)
1,919件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Johannes,

The RDF flag indicates the state of the RX FIFO.

And the data can be read by any master from the FIFO, not only the CPU and DMA but the debugger too.

You would need to close the register view and the memory view so that the Receive Data Register (RDR) is not read by the debugger.

 

Regards,

Daniel

1,913件の閲覧回数
JoDo
Contributor III

Hello Daniel,

 

Thank you very much for the quick reply. That was really very helpful.

I guess there is no other way to watch the registers without interfere with them?

 

Regards,

Johannes

0 件の賞賛
返信
1,885件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Johannes,

Unfortunately, if the debugger reads the RDR register it is as if the CPU read it.

 

Regards,

Daniel

 

 

0 件の賞賛
返信