Bug in debug info printout in nano-library for Secure Element SE05x?

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

Bug in debug info printout in nano-library for Secure Element SE05x?

跳至解决方案
2,174 次查看
andershedbeg
Contributor II

While trying to debug the nano library and verify what is happening (I have an error) I enabled debug printouts
in file https://github.com/NXPPlugNTrust/nano-package/blob/075f8cc9a27a5e5eb6a04f3d86c1a421836777e8/lib/t1oi...

There is a line - T_SMLOG_MAU8_D("RAW Rx<", nxpese_ctxt->p_read_buff, ret);

I get a hardfault on my microcontroller, since "nxpese_ctxt->p_read_buff" is null and the debugger is setup to break on accesses to address 0. I suspect that the intention is to print "pp_data" contents instead?

There seems to be no way to report issues in Gitlab, so I simply try here... I'm rather new to this so I might be mistaken or have misconfiguration something, but it seems a bit strange...

标签 (1)
0 项奖励
回复
1 解答
2,116 次查看
andershedbeg
Contributor II

Hi, I use Cmake with the gnu-arm toolchain. (with an STM32 controller)

Btw I managed to find the real error I was looking for when trying to turn on this debug print.
(It was using the wrong keys for SCP03. The debug message is a bit misleading as it simply mentions something like "Comparsion of datagram does not match". I found another message on this site that got me on the right track that mentioned that this was caused by the wrong keys.)

在原帖中查看解决方案

4 回复数
2,155 次查看
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @andershedbeg ,

 

Did you define this macro to 1?

Kan_Li_0-1718689351477.png

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

 

0 项奖励
回复
2,123 次查看
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @andershedbeg ,

 

What is the platform you use with the nano package? I guess there might be some porting issue here.

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复
2,117 次查看
andershedbeg
Contributor II

Hi, I use Cmake with the gnu-arm toolchain. (with an STM32 controller)

Btw I managed to find the real error I was looking for when trying to turn on this debug print.
(It was using the wrong keys for SCP03. The debug message is a bit misleading as it simply mentions something like "Comparsion of datagram does not match". I found another message on this site that got me on the right track that mentioned that this was caused by the wrong keys.)

2,148 次查看
andershedbeg
Contributor II

Hi, yes, like this:

andershedbeg_0-1718714536513.png

 

 

0 项奖励
回复