HSE S32K358 Status register returning 0

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

HSE S32K358 Status register returning 0

ソリューションへジャンプ
7,163件の閲覧回数
fp-theophile
Contributor II

fptheophile_0-1730124559124.pngfptheophile_0-1730124559124.png

I installed HSE_FW_ABSWAP_2.40, and so far I managed to use to services such as random number generation, signature verify; but for some reasons, when I try to read the status register I get only 0s in FSR which is not normal since if it was actually the case I should not even be able to use HSE services. 

I don't know what is causing this.

Thank you,

Regards

0 件の賞賛
返信
1 解決策
6,997件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Ok, I saw MU_1 in your screenshot, so it looked like this is the problem...

In this case, there's obviously something wrong. If you can still use HSE services regardless of the FSR, I would try to erase the firmware by HSE_SRV_ID_ERASE_FW  service and then install the firmware again. Because it works as expected on my side, I do not have other ideas right now.

Regards,

Lukas

元の投稿で解決策を見る

6 返答(返信)
7,051件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @fp-theophile 

Finally I got the board.

The thing is that the status flags (bits 16-31) are visible only in MU0, not in MU1.

Till now, I expected that the status bits are mirrored to all MU instances used for communication with HSE because there's a note in HSE FW RM:

lukaszadrapa_0-1731329614946.pnglukaszadrapa_0-1731329614946.png

But it's obviously not correct. I will report it. Thanks for pointing this out.

According to this table, MU0 and MU1 are always used for HSE:

lukaszadrapa_2-1731329822524.pnglukaszadrapa_2-1731329822524.png

So, if you check FSR in MU0, you should see:

lukaszadrapa_1-1731329722805.pnglukaszadrapa_1-1731329722805.png

For others - I checked this also on S32K344 and S32K312 and it's obviously the same on all S32K3 devices.

So, when checking status of HSE at the beginning of your application, use MU0:

lukaszadrapa_3-1731330020861.pnglukaszadrapa_3-1731330020861.png

Regards,

Lukas

 

 

0 件の賞賛
返信
7,019件の閲覧回数
fp-theophile
Contributor II

Hello, 

Thank you for you response, 

To be honest it does not solve my problem because what is strange is that I am actually using MU0 and not MU1 and I still don't read properly , so it seems like I have some kind of bug.

fptheophile_0-1731418231131.pngfptheophile_0-1731418231131.png

here SEC_MU0_INSTANCE is 0.

Still thank you for the valuables informations you brought.

Best Regards

 

0 件の賞賛
返信
6,998件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Ok, I saw MU_1 in your screenshot, so it looked like this is the problem...

In this case, there's obviously something wrong. If you can still use HSE services regardless of the FSR, I would try to erase the firmware by HSE_SRV_ID_ERASE_FW  service and then install the firmware again. Because it works as expected on my side, I do not have other ideas right now.

Regards,

Lukas

6,978件の閲覧回数
fp-theophile
Contributor II
Quick update, actually you were right it solved my problem.
I do have some status in channel 0 thank you!
0 件の賞賛
返信
7,132件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @fp-theophile 

yes, I agree, FSR should not be zero if HSE firmware is installed.

I do not have working S32K358 board here right now but if you can wait, I should get one on Monday. I always saw expected content in FSR on other S32K3 devices, so let me check if I can see the same.

Regards,

Lukas

0 件の賞賛
返信
7,093件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

I'm sorry for delay, I'm not able to check it this week. I should get the board next Monday.

%3CLINGO-SUB%20id%3D%22lingo-sub-1983024%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHSE%20S32K358%20%E3%82%B9%E3%83%86%E3%83%BC%E3%82%BF%E3%82%B9%E3%83%BB%E3%83%AC%E3%82%B8%E3%82%B9%E3%82%BF%E3%81%8C%200%20%E3%82%92%E8%BF%94%E3%81%99%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1983024%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22fptheophile_0-1730124559124.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22fptheophile_0-1730124559124.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F307278iBC8F5339B7A215F6%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22fptheophile_0-1730124559124.png%22%20alt%3D%22fptheophile_0-1730124559124.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Efptheophile_0-1730124559124.png%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EHSE_FW_ABSWAP_2.40%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8C%E3%80%81%E3%81%9D%E3%81%97%E3%81%A6%E3%81%93%E3%82%8C%E3%81%BE%E3%81%A7%E3%81%AE%E3%81%A8%E3%81%93%E3%82%8D%E3%80%81%E4%B9%B1%E6%95%B0%E7%94%9F%E6%88%90%E3%80%81%E7%BD%B2%E5%90%8D%E6%A4%9C%E8%A8%BC%E3%81%AA%E3%81%A9%E3%81%AE%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%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%E3%81%97%E3%81%8B%E3%81%97%E3%80%81%E4%BD%95%E3%82%89%E3%81%8B%E3%81%AE%E7%90%86%E7%94%B1%E3%81%A7%E3%80%81%E3%82%B9%E3%83%86%E3%83%BC%E3%82%BF%E3%82%B9%E3%83%AC%E3%82%B8%E3%82%B9%E3%82%BF%E3%82%92%E8%AA%AD%E3%81%BF%E5%8F%96%E3%82%8D%E3%81%86%E3%81%A8%E3%81%99%E3%82%8B%E3%81%A8%E3%80%81FSR%E3%81%A7%E3%81%AF0%E3%81%97%E3%81%8B%E8%A1%A8%E7%A4%BA%E3%81%95%E3%82%8C%E3%81%BE%E3%81%9B%E3%82%93%E3%81%8C%E3%80%81%E5%AE%9F%E9%9A%9B%E3%81%AB%E3%81%9D%E3%81%86%E3%81%A7%E3%81%82%E3%82%8C%E3%81%B0HSE%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%95%E3%81%88%E3%81%A7%E3%81%8D%E3%81%AA%E3%81%84%E3%81%AF%E3%81%9A%E3%81%AA%E3%81%AE%E3%81%A7%E3%80%81%E6%AD%A3%E5%B8%B8%E3%81%A7%E3%81%AF%E3%81%82%E3%82%8A%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%3C%2FP%3E%3CP%3E%E4%BD%95%E3%81%8C%E5%8E%9F%E5%9B%A0%E3%81%AA%E3%81%AE%E3%81%8B%E3%82%8F%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%3C%2FP%3E%3CP%3E%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%97%E3%81%9F%E3%80%82%3C%2FP%3E%3CP%3E%E3%82%88%E3%82%8D%E3%81%97%E3%81%8F%E3%81%8A%E9%A1%98%E3%81%84%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1993506%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20HSE%20S32K358%20Status%20%E3%83%AC%E3%82%B8%E3%82%B9%E3%82%BF%E3%81%8C%200%20%E3%82%92%E8%BF%94%E3%81%99%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1993506%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E3%82%AF%E3%82%A4%E3%83%83%E3%82%AF%E3%82%A2%E3%83%83%E3%83%97%E3%83%87%E3%83%BC%E3%83%88%E3%80%81%E5%AE%9F%E9%9A%9B%E3%81%AB%E3%81%AF%E3%81%82%E3%81%AA%E3%81%9F%E3%81%8C%E6%AD%A3%E3%81%97%E3%81%8B%E3%81%A3%E3%81%9F%E3%81%9D%E3%82%8C%E3%81%AF%E7%A7%81%E3%81%AE%E5%95%8F%E9%A1%8C%E3%82%92%E8%A7%A3%E6%B1%BA%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3CBR%20%2F%3E%E7%A7%81%E3%81%AF%E3%83%81%E3%83%A3%E3%83%B3%E3%83%8D%E3%83%AB0%E3%81%A7%E3%81%84%E3%81%8F%E3%81%A4%E3%81%8B%E3%81%AE%E3%82%B9%E3%83%86%E3%83%BC%E3%82%BF%E3%82%B9%E3%82%92%E6%8C%81%E3%81%A3%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%81%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1989936%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20HSE%20S32K358%20Status%20%E3%83%AC%E3%82%B8%E3%82%B9%E3%82%BF%E3%81%8C%200%20%E3%82%92%E8%BF%94%E3%81%99%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1989936%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E9%81%85%E3%81%8F%E3%81%AA%E3%81%A3%E3%81%A6%E3%81%99%E3%81%BF%E3%81%BE%E3%81%9B%E3%82%93%E3%80%81%E4%BB%8A%E9%80%B1%E3%81%AF%E7%A2%BA%E8%AA%8D%E3%81%A7%E3%81%8D%E3%81%AA%E3%81%8F%E3%81%A6%E3%80%82%E6%9D%A5%E9%80%B1%E3%81%AE%E6%9C%88%E6%9B%9C%E6%97%A5%E3%81%AB%E3%83%9C%E3%83%BC%E3%83%89%E3%82%92%E5%8F%97%E3%81%91%E5%8F%96%E3%82%8B%E5%BF%85%E8%A6%81%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E