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,229件の閲覧回数
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,171件の閲覧回数
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,210件の閲覧回数
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,178件の閲覧回数
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,172件の閲覧回数
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,203件の閲覧回数
andershedbeg
Contributor II

Hi, yes, like this:

andershedbeg_0-1718714536513.png

 

 

0 件の賞賛
返信
%3CLINGO-SUB%20id%3D%22lingo-sub-1887636%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ESecure%20Element%20SE05x%E3%81%AEnano-library%E3%81%AE%E3%83%87%E3%83%90%E3%83%83%E3%82%B0%E6%83%85%E5%A0%B1%E3%83%97%E3%83%AA%E3%83%B3%E3%83%88%E3%82%A2%E3%82%A6%E3%83%88%E3%81%AB%E3%83%90%E3%82%B0%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%81%8B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1887636%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Enano%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AA%E3%82%92%E3%83%87%E3%83%90%E3%83%83%E3%82%B0%E3%81%97%E3%81%A6%E4%BD%95%E3%81%8C%E8%B5%B7%E3%81%93%E3%81%A3%E3%81%A6%E3%81%84%E3%82%8B%E3%81%8B%E3%82%92%E7%A2%BA%E8%AA%8D%E3%81%97%E3%82%88%E3%81%86%E3%81%A8%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E9%96%93(%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99)%E3%80%81%E3%83%87%E3%83%90%E3%83%83%E3%82%B0%E3%83%97%E3%83%AA%E3%83%B3%E3%83%88%E3%82%A2%E3%82%A6%E3%83%88%E3%82%92%E6%9C%89%E5%8A%B9%E3%81%AB%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%3CBR%20%2F%3E%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FNXPPlugNTrust%2Fnano-package%2Fblob%2F075f8cc9a27a5e5eb6a04f3d86c1a421836777e8%2Flib%2Ft1oi2c%2FphNxpEse_Api.c%23L432%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%E5%86%85%20https%3A%2F%2Fgithub.com%2FNXPPlugNTrust%2Fnano-package%2Fblob%2F075f8cc9a27a5e5eb6a04f3d86c1a421836777e8%2Flib%2Ft1oi2c%2FphNxpEse_Api.c%23L432%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%E8%A1%8C%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%20-%20T_SMLOG_MAU8_D(%22RAW%20Rx%26lt%3B%22%2C%20nxpese_ctxt-%26gt%3Bp_read_buff%2C%20ret)%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%22nxpese_ctxt-%26gt%3Bp_read_buff%22%20%E3%81%8C%20null%20%E3%81%A7%E3%80%81%E3%83%87%E3%83%90%E3%83%83%E3%82%AC%E3%83%BC%E3%81%8C%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9%200%20%E3%81%B8%E3%81%AE%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%E3%81%A7%E4%B8%AD%E6%96%AD%E3%81%99%E3%82%8B%E3%82%88%E3%81%86%E3%81%AB%E8%A8%AD%E5%AE%9A%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E3%81%9F%E3%82%81%E3%80%81%E3%83%9E%E3%82%A4%E3%82%AF%E3%83%AD%E3%82%B3%E3%83%B3%E3%83%88%E3%83%AD%E3%83%BC%E3%83%A9%E3%83%BC%E3%81%A7%E3%83%8F%E3%83%BC%E3%83%89%20%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%8C%E7%99%BA%E7%94%9F%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%E4%BB%A3%E3%82%8F%E3%82%8A%E3%81%AB%E3%80%8Cpp_data%E3%80%8D%E3%81%AE%E5%86%85%E5%AE%B9%E3%82%92%E5%8D%B0%E5%88%B7%E3%81%99%E3%82%8B%E6%84%8F%E5%9B%B3%E3%81%8C%E3%81%82%E3%82%8B%E3%81%AE%E3%81%A7%E3%81%AF%E3%81%AA%E3%81%84%E3%81%8B%E3%81%A8%E6%80%9D%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3EGitlab%E3%81%A7%E5%95%8F%E9%A1%8C%E3%82%92%E5%A0%B1%E5%91%8A%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%E3%81%AF%E3%81%AA%E3%81%84%E3%82%88%E3%81%86%E3%81%A7%E3%81%99%E3%81%AE%E3%81%A7%E3%80%81%E3%81%93%E3%81%93%E3%81%A7%E8%A9%A6%E3%81%97%E3%81%A6%E3%81%BF%E3%82%8B%E3%81%A0%E3%81%91%E3%81%A7%E3%81%99...%E7%A7%81%E3%81%AF%E3%81%93%E3%82%8C%E3%81%AB%E3%81%8B%E3%81%AA%E3%82%8A%E6%85%A3%E3%82%8C%E3%81%A6%E3%81%84%E3%81%AA%E3%81%84%E3%81%AE%E3%81%A7%E3%80%81%E9%96%93%E9%81%95%E3%81%A3%E3%81%A6%E3%81%84%E3%82%8B%E3%81%8B%E3%80%81%E4%BD%95%E3%81%8B%E8%A8%AD%E5%AE%9A%E3%83%9F%E3%82%B9%E3%81%8C%E3%81%82%E3%82%8B%E3%81%8B%E3%82%82%E3%81%97%E3%82%8C%E3%81%BE%E3%81%9B%E3%82%93%E3%81%8C%E3%80%81%E5%B0%91%E3%81%97%E5%A5%87%E5%A6%99%E3%81%AB%E6%80%9D%E3%81%88%E3%81%BE%E3%81%99...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1887636%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3E%E3%82%BB%E3%82%B7%E3%83%89%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1893750%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%E3%82%BB%E3%82%AD%E3%83%A5%E3%82%A2%E3%82%A8%E3%83%AC%E3%83%A1%E3%83%B3%E3%83%88SE05x%E3%81%AEnano%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AA%E3%81%AE%E3%83%87%E3%83%90%E3%83%83%E3%82%B0%E6%83%85%E5%A0%B1%E3%83%97%E3%83%AA%E3%83%B3%E3%83%88%E3%82%A2%E3%82%A6%E3%83%88%E3%81%AE%E3%83%90%E3%82%B0%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1893750%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%81%E7%A7%81%E3%81%AF%20gnu-arm%20%E3%83%84%E3%83%BC%E3%83%AB%E3%83%81%E3%82%A7%E3%83%BC%E3%83%B3%E3%81%A8%E4%B8%80%E7%B7%92%E3%81%AB%20Cmake%20%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82(STM32%E3%82%B3%E3%83%B3%E3%83%88%E3%83%AD%E3%83%BC%E3%83%A9%E4%BD%BF%E7%94%A8%E6%99%82)%3CBR%20%2F%3E%3CBR%20%2F%3E%E3%81%A8%E3%81%93%E3%82%8D%E3%81%A7%E3%80%81%E3%81%93%E3%81%AE%E3%83%87%E3%83%90%E3%83%83%E3%82%B0%E3%83%97%E3%83%AA%E3%83%B3%E3%83%88%E3%82%92%E3%82%AA%E3%83%B3%E3%81%AB%E3%81%97%E3%82%88%E3%81%86%E3%81%A8%E3%81%97%E3%81%9F%E3%81%A8%E3%81%8D%E3%81%AB%E6%8E%A2%E3%81%97%E3%81%A6%E3%81%84%E3%81%9F%E6%9C%AC%E5%BD%93%E3%81%AE%E3%82%A8%E3%83%A9%E3%83%BC%E3%82%92%E8%A6%8B%E3%81%A4%E3%81%91%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3CBR%20%2F%3E(SCP03%E3%81%AE%E3%82%AD%E3%83%BC%E3%81%8C%E9%96%93%E9%81%95%E3%81%A3%E3%81%A6%E3%81%84%E3%81%9F%E3%80%82%E3%83%87%E3%83%90%E3%83%83%E3%82%B0%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8%E3%81%AF%E3%80%81%E3%80%8C%E3%83%87%E3%83%BC%E3%82%BF%E3%82%B0%E3%83%A9%E3%83%A0%E3%81%AE%E6%AF%94%E8%BC%83%E3%81%8C%E4%B8%80%E8%87%B4%E3%81%97%E3%81%BE%E3%81%9B%E3%82%93%E3%80%8D%E3%81%AA%E3%81%A9%E3%81%A8%E8%A8%80%E5%8F%8A%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E3%81%A0%E3%81%91%E3%81%AA%E3%81%AE%E3%81%A7%E3%80%81%E5%B0%91%E3%81%97%E8%AA%A4%E8%A7%A3%E3%82%92%E6%8B%9B%E3%81%8F%E5%8F%AF%E8%83%BD%E6%80%A7%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%E7%A7%81%E3%81%AF%E3%81%93%E3%81%AE%E3%82%B5%E3%82%A4%E3%83%88%E3%81%A7%E3%80%81%E3%81%93%E3%82%8C%E3%81%8C%E9%96%93%E9%81%95%E3%81%A3%E3%81%9F%E3%82%AD%E3%83%BC%E3%81%AB%E3%82%88%E3%81%A3%E3%81%A6%E5%BC%95%E3%81%8D%E8%B5%B7%E3%81%93%E3%81%95%E3%82%8C%E3%81%9F%E3%81%A8%E8%BF%B0%E3%81%B9%E3%81%9F%E6%AD%A3%E3%81%97%E3%81%84%E6%96%B9%E5%90%91%E3%81%AB%E7%A7%81%E3%82%92%E5%B0%8E%E3%81%8F%E5%88%A5%E3%81%AE%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8%E3%82%92%E8%A6%8B%E3%81%A4%E3%81%91%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1893234%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%E3%82%BB%E3%82%AD%E3%83%A5%E3%82%A2%E3%82%A8%E3%83%AC%E3%83%A1%E3%83%B3%E3%83%88SE05x%E3%81%AEnano%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AA%E3%81%AE%E3%83%87%E3%83%90%E3%83%83%E3%82%B0%E6%83%85%E5%A0%B1%E3%83%97%E3%83%AA%E3%83%B3%E3%83%88%E3%82%A2%E3%82%A6%E3%83%88%E3%81%AE%E3%83%90%E3%82%B0%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1893234%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F235006%22%20target%3D%22_blank%22%3E%40andershedbeg%3C%2FA%3E%20%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3Enano%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8%E3%81%A7%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E3%83%97%E3%83%A9%E3%83%83%E3%83%88%E3%83%95%E3%82%A9%E3%83%BC%E3%83%A0%E3%81%AF%E4%BD%95%E3%81%A7%E3%81%99%E3%81%8B%3F%E3%81%93%E3%81%93%E3%81%AB%E3%81%AF%E7%A7%BB%E6%A4%8D%E3%81%AE%E5%95%8F%E9%A1%8C%E3%81%8C%E3%81%82%E3%82%8B%E3%81%8B%E3%82%82%E3%81%97%E3%82%8C%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%E8%89%AF%E3%81%84%E6%97%A5%E3%82%92%E3%81%8A%E9%81%8E%E3%81%94%E3%81%97%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%3CBR%20%2F%3E%E8%8F%85%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E-------------------------------------------------------------------------------%3CBR%20%2F%3E%E6%89%8B%E8%A8%98%EF%BC%9A%3CBR%20%2F%3E-%20%E3%81%93%E3%81%AE%E8%A8%98%E4%BA%8B%E3%81%8C%E3%81%82%E3%81%AA%E3%81%9F%E3%81%AE%E7%96%91%E5%95%8F%E3%81%AB%E7%AD%94%E3%81%88%E3%81%9F%E3%82%89%E3%80%81%E3%80%8C%E6%AD%A3%E8%A7%A3%E3%82%92%E3%83%9E%E3%83%BC%E3%82%AF%E3%80%8D%E3%83%9C%E3%82%BF%E3%83%B3%E3%82%92%E3%82%AF%E3%83%AA%E3%83%83%E3%82%AF%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%81%94%E3%81%96%E3%81%84%E3%81%BE%E3%81%99%EF%BC%81%3CBR%20%2F%3E-%20%E6%9C%80%E5%BE%8C%E3%81%AE%E6%8A%95%E7%A8%BF%E3%81%8B%E3%82%897%E9%80%B1%E9%96%93%E3%82%B9%E3%83%AC%E3%83%83%E3%83%89%E3%82%92%E3%83%95%E3%82%A9%E3%83%AD%E3%83%BC%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%81%8C%E3%80%81%E3%81%9D%E3%81%AE%E5%BE%8C%E3%81%AE%E8%BF%94%E4%BF%A1%E3%81%AF%E7%84%A1%E8%A6%96%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%3CBR%20%2F%3E%E6%96%B0%E3%81%97%E3%81%84%E3%82%B9%E3%83%AC%E3%83%83%E3%83%89%E3%82%92%E9%96%8B%E3%81%8D%E3%80%81%E5%BE%8C%E3%81%A7%E9%96%A2%E9%80%A3%E3%81%99%E3%82%8B%E8%B3%AA%E5%95%8F%E3%81%8C%E3%81%82%E3%82%8B%E5%A0%B4%E5%90%88%E3%81%AF%E3%80%81%E9%96%89%E3%81%98%E3%81%9F%E3%82%B9%E3%83%AC%E3%83%83%E3%83%89%E3%82%92%E5%8F%82%E7%85%A7%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%3CBR%20%2F%3E-------------------------------------------------------------------------------%3C%2FP%3E%3C%2FLINGO-BODY%3E