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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
2,171 Views
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...

Labels (1)
0 Kudos
Reply
1 Solution
2,113 Views
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.)

View solution in original post

4 Replies
2,152 Views
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 Kudos
Reply
2,120 Views
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 Kudos
Reply
2,114 Views
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,145 Views
andershedbeg
Contributor II

Hi, yes, like this:

andershedbeg_0-1718714536513.png

 

 

0 Kudos
Reply