HSE S32K358 Status register returning 0

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

HSE S32K358 Status register returning 0

Jump to solution
7,126 Views
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 Kudos
Reply
1 Solution
6,960 Views
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

View solution in original post

6 Replies
7,014 Views
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 Kudos
Reply
6,982 Views
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 Kudos
Reply
6,961 Views
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,941 Views
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 Kudos
Reply
7,095 Views
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 Kudos
Reply
7,056 Views
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%20Status%20register%20returning%200%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%3CP%3EI%20installed%20HSE_FW_ABSWAP_2.40%2C%20and%20so%20far%20I%20managed%20to%20use%20to%20services%20such%20as%20random%20number%20generation%2C%20signature%20verify%3B%20but%20for%20some%20reasons%2C%20when%20I%20try%20to%20read%20the%20status%20register%20I%20get%20only%200s%20in%20FSR%20which%20is%20not%20normal%20since%20if%20it%20was%20actually%20the%20case%20I%20should%20not%20even%20be%20able%20to%20use%20HSE%20services.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20don't%20know%20what%20is%20causing%20this.%3C%2FP%3E%3CP%3EThank%20you%2C%3C%2FP%3E%3CP%3ERegards%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%20register%20returning%200%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1993506%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EQuick%20update%2C%20actually%20you%20were%20right%20it%20solved%20my%20problem.%3CBR%20%2F%3EI%20do%20have%20some%20status%20in%20channel%200%20thank%20you!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1993444%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20HSE%20S32K358%20Status%20register%20returning%200%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1993444%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EOk%2C%20I%20saw%20MU_1%20in%20your%20screenshot%2C%20so%20it%20looked%20like%20this%20is%20the%20problem...%3C%2FP%3E%0A%3CP%3EIn%20this%20case%2C%20there's%20obviously%20something%20wrong.%20If%20you%20can%20still%20use%20HSE%20services%20regardless%20of%20the%20FSR%2C%20I%20would%20try%20to%20erase%20the%20firmware%20by%20%3CSPAN%3EHSE_SRV_ID_ERASE_FW%26nbsp%3B%20service%20and%20then%20install%20the%20firmware%20again.%20Because%20it%20works%20as%20expected%20on%20my%20side%2C%20I%20do%20not%20have%20other%20ideas%20right%20now.%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ERegards%2C%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ELukas%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1992863%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20HSE%20S32K358%20Status%20register%20returning%200%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1992863%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20you%20response%2C%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20be%20honest%20it%20does%20not%20solve%20my%20problem%20because%20what%20is%20strange%20is%20that%20I%20am%20actually%20using%20MU0%20and%20not%20MU1%20and%20I%20still%20don't%20read%20properly%20%2C%20so%20it%20seems%20like%20I%20have%20some%20kind%20of%20bug.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22fptheophile_0-1731418231131.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22fptheophile_0-1731418231131.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F310055iC600ED3B119668CB%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22fptheophile_0-1731418231131.png%22%20alt%3D%22fptheophile_0-1731418231131.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Ehere%20SEC_MU0_INSTANCE%20is%200.%3C%2FP%3E%3CP%3EStill%20thank%20you%20for%20the%20valuables%20informations%20you%20brought.%3C%2FP%3E%3CP%3EBest%20Regards%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1991984%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20HSE%20S32K358%20Status%20register%20returning%200%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1991984%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F235856%22%20target%3D%22_blank%22%3E%40fp-theophile%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFinally%20I%20got%20the%20board.%3C%2FP%3E%0A%3CP%3EThe%20thing%20is%20that%20the%20status%20flags%20(bits%2016-31)%20are%20visible%20only%20in%20MU0%2C%20not%20in%20MU1.%3C%2FP%3E%0A%3CP%3ETill%20now%2C%20I%20expected%20that%20the%20status%20bits%20are%20mirrored%20to%20all%20MU%20instances%20used%20for%20communication%20with%20HSE%20because%20there's%20a%20note%20in%20HSE%20FW%20RM%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lukaszadrapa_0-1731329614946.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22lukaszadrapa_0-1731329614946.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F309770i6CFC75B26D6F1B8F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22lukaszadrapa_0-1731329614946.png%22%20alt%3D%22lukaszadrapa_0-1731329614946.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBut%20it's%20obviously%20not%20correct.%20I%20will%20report%20it.%20Thanks%20for%20pointing%20this%20out.%3C%2FP%3E%0A%3CP%3EAccording%20to%20this%20table%2C%20MU0%20and%20MU1%20are%20always%20used%20for%20HSE%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lukaszadrapa_2-1731329822524.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22lukaszadrapa_2-1731329822524.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F309773iBE9C2BA947D8617A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22lukaszadrapa_2-1731329822524.png%22%20alt%3D%22lukaszadrapa_2-1731329822524.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ESo%2C%20if%20you%20check%20FSR%20in%20MU0%2C%20you%20should%20see%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lukaszadrapa_1-1731329722805.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22lukaszadrapa_1-1731329722805.png%22%20style%3D%22width%3A%20145px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F309771iAE7E85D9EA803934%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22lukaszadrapa_1-1731329722805.png%22%20alt%3D%22lukaszadrapa_1-1731329722805.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EFor%20others%20-%20I%20checked%20this%20also%20on%20S32K344%20and%20S32K312%20and%20it's%20obviously%20the%20same%20on%20all%20S32K3%20devices.%3C%2FP%3E%0A%3CP%3ESo%2C%20when%20checking%20status%20of%20HSE%20at%20the%20beginning%20of%20your%20application%2C%20use%20MU0%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lukaszadrapa_3-1731330020861.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22lukaszadrapa_3-1731330020861.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F309774i15CD2BEC59B38296%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22lukaszadrapa_3-1731330020861.png%22%20alt%3D%22lukaszadrapa_3-1731330020861.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3ELukas%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%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%20register%20returning%200%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1989936%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI'm%20sorry%20for%20delay%2C%20I'm%20not%20able%20to%20check%20it%20this%20week.%20I%20should%20get%20the%20board%20next%20Monday.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1984904%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20HSE%20S32K358%20Status%20register%20returning%200%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1984904%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F235856%22%20target%3D%22_blank%22%3E%40fp-theophile%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eyes%2C%20I%20agree%2C%20FSR%20should%20not%20be%20zero%20if%20HSE%20firmware%20is%20installed.%3C%2FP%3E%0A%3CP%3EI%20do%20not%20have%20working%20S32K358%20board%20here%20right%20now%20but%20if%20you%20can%20wait%2C%20I%20should%20get%20one%20on%20Monday.%20I%20always%20saw%20expected%20content%20in%20FSR%20on%20other%20S32K3%20devices%2C%20so%20let%20me%20check%20if%20I%20can%20see%20the%20same.%3C%2FP%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3ELukas%3C%2FP%3E%3C%2FLINGO-BODY%3E