HSE S32K358 Status register returning 0

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

HSE S32K358 Status register returning 0

跳至解决方案
7,269 次查看
fp-theophile
Contributor II

fptheophile_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 解答
7,103 次查看
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,157 次查看
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.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.png

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

lukaszadrapa_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.png

Regards,

Lukas

 

 

0 项奖励
回复
7,125 次查看
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.png

here SEC_MU0_INSTANCE is 0.

Still thank you for the valuables informations you brought.

Best Regards

 

0 项奖励
回复
7,104 次查看
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

7,084 次查看
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,238 次查看
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,199 次查看
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%E7%8A%B6%E6%80%81%E5%AF%84%E5%AD%98%E5%99%A8%E8%BF%94%E5%9B%9E0%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%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%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993506%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AHSE%20S32K358%E7%8A%B6%E6%80%81%E5%AF%84%E5%AD%98%E5%99%A8%E8%BF%94%E5%9B%9E0%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1993506%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%BF%AB%E9%80%9F%E6%9B%B4%E6%96%B0%EF%BC%8C%E5%AE%9E%E9%99%85%E4%B8%8A%E4%BD%A0%E6%98%AF%E5%AF%B9%E7%9A%84%EF%BC%8C%E5%AE%83%E8%A7%A3%E5%86%B3%E4%BA%86%E6%88%91%E7%9A%84%E9%97%AE%E9%A2%98%E3%80%82%3CBR%20%2F%3E%E6%88%91%E5%9C%A8%E9%A2%91%E9%81%93%200%20%E4%B8%AD%E7%A1%AE%E5%AE%9E%E6%9C%89%E4%B8%80%E4%BA%9B%E7%8A%B6%E6%80%81%EF%BC%8C%E8%B0%A2%E8%B0%A2%EF%BC%81%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1989936%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AHSE%20S32K358%E7%8A%B6%E6%80%81%E5%AF%84%E5%AD%98%E5%99%A8%E8%BF%94%E5%9B%9E0%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1989936%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%BE%88%E6%8A%B1%E6%AD%89%E8%80%BD%E6%90%81%E4%BA%86%EF%BC%8C%E6%9C%AC%E5%91%A8%E6%88%91%E6%97%A0%E6%B3%95%E6%A3%80%E6%9F%A5%E3%80%82%E6%88%91%E5%BA%94%E8%AF%A5%E5%9C%A8%E4%B8%8B%E5%91%A8%E4%B8%80%E6%8B%BF%E5%88%B0%E8%91%A3%E4%BA%8B%E4%BC%9A%E7%9A%84%E8%AF%81%E4%BB%B6%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E