HSE FW install for S32K310

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

HSE FW install for S32K310

Jump to solution
3,302 Views
LeoYang-
NXP Employee
NXP Employee

i want to install HSE FW to S32K310, based on HSE install demo downloaded from the website, can i just modify the flash configuration in the link command file according to the S32K310?

LeoYang_0-1730355933691.png

LeoYang_1-1730355993090.png

and also want to confirm, is S32K310 using the same HSE FW as S32K311?

please provide some detailed guidance about how to modify the reference demo

0 Kudos
Reply
1 Solution
3,162 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Leo,

one more thing - it may be caused by DTCM. If data objects used for communication with HSE are located in DTCM, make sure that this switch is turned on:

lukaszadrapa_0-1731401542644.png

It ensures that DTCM address is translated to DTCM Backdoor address by Crypto driver. That's because HSE cannot see normal DTCM address.

Regards,

Lukas

View solution in original post

0 Kudos
Reply
5 Replies
3,247 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @LeoYang- 

I usually recommend to create new project directly for used derivative and then port the code. However, I believe that this project will work just with the changes you did. Used features are the same on both derivatives.

Yes, the firmware support both S32K310 and S32K311:

lukaszadrapa_0-1730788110453.png

lukaszadrapa_1-1730788119081.png

Regards,

Lukas

 

 

 

0 Kudos
Reply
3,189 Views
LeoYang-
NXP Employee
NXP Employee

Hi Lukas

     thank you very much for your reply!

    indeed i can read the HSE FW version after i download the project

    and the HSE_STATUS_INIT_OK flag is set every time when initialize the HW

    however when try to use the Crypto driver

LeoYang_0-1731303891438.png

   and HSE is not responding to the request, what could be the potential cause of it?

LeoYang_1-1731304001523.png

 

0 Kudos
Reply
3,163 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Leo,

one more thing - it may be caused by DTCM. If data objects used for communication with HSE are located in DTCM, make sure that this switch is turned on:

lukaszadrapa_0-1731401542644.png

It ensures that DTCM address is translated to DTCM Backdoor address by Crypto driver. That's because HSE cannot see normal DTCM address.

Regards,

Lukas

0 Kudos
Reply
3,129 Views
LeoYang-
NXP Employee
NXP Employee

Hi Lukas

    you are right , some variables is defined in DTCM

   we managed to move them to Sram no cacheable and it works now

   Thanks! 

0 Kudos
Reply
3,174 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Leo,

1. What is the frequency of HSE_CLK? If it is configured to 120MHz, try to decrease it to 60MHz.

https://community.nxp.com/t5/S32K/HSE-provides-RSP-NOT-SUPPORTED-response/m-p/1712323/highlight/true...

2. Try to disable data cache memory. All the data objects used for communication with HSE must be forced to non-cacheable memory.

3. The S32K3 reference manual says:

"Before configuring HSE_CLK, you must wait for the SBAF to enter WFI by reading core status register of HSE CPU (PRTN0_CORE2_STAT)."

So, it’s necessary to wait for WFI bit before running clock initialization.

I found out that current RTD drivers do not check WFI bit. This was a few months time ago and I can see that this should be included in the drivers in RTD version 5.0.0 and higher.

4. What is the content of HSE GPR register at 0x4039_C028? What is the content of FSR and GSR registers in MU_0?

Regards,

Lukas

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1985304%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHSE%20FW%20install%20for%20S32K310%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1985304%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ei%20want%20to%20install%20HSE%20FW%20to%20S32K310%2C%20based%20on%20HSE%20install%20demo%20downloaded%20from%20the%20website%2C%20can%20i%20just%20modify%20the%20flash%20configuration%20in%20the%20link%20command%20file%20according%20to%20the%20S32K310%3F%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeoYang_0-1730355933691.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LeoYang_0-1730355933691.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F307854i2A54E307C72E2B15%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeoYang_0-1730355933691.png%22%20alt%3D%22LeoYang_0-1730355933691.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeoYang_1-1730355993090.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LeoYang_1-1730355993090.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F307855i8A939D5B1B924B3D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeoYang_1-1730355993090.png%22%20alt%3D%22LeoYang_1-1730355993090.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Eand%20also%20want%20to%20confirm%2C%20is%20S32K310%20using%20the%20same%20HSE%20FW%20as%20S32K311%3F%3C%2FP%3E%0A%3CP%3Eplease%20provide%20some%20detailed%20guidance%20about%20how%20to%20modify%20the%20reference%20demo%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1994521%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20HSE%20FW%20install%20for%20S32K310%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1994521%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Lukas%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20you%20are%20right%20%2C%20some%20variables%20is%20defined%20in%20DTCM%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3Bwe%20managed%20to%20move%20them%20to%20Sram%20no%20cacheable%20and%20it%20works%20now%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3BThanks!%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1992688%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20HSE%20FW%20install%20for%20S32K310%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1992688%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Leo%2C%3C%2FP%3E%0A%3CP%3Eone%20more%20thing%20-%20it%20may%20be%20caused%20by%20DTCM.%20If%20data%20objects%20used%20for%20communication%20with%20HSE%20are%20located%20in%20DTCM%2C%20make%20sure%20that%20this%20switch%20is%20turned%20on%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-1731401542644.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22lukaszadrapa_0-1731401542644.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F310011i0FA973F9F294DD1D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22lukaszadrapa_0-1731401542644.png%22%20alt%3D%22lukaszadrapa_0-1731401542644.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIt%20ensures%20that%20DTCM%20address%20is%20translated%20to%20DTCM%20Backdoor%20address%20by%20Crypto%20driver.%20That's%20because%20HSE%20cannot%20see%20normal%20DTCM%20address.%3C%2FP%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3ELukas%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1992510%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20HSE%20FW%20install%20for%20S32K310%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1992510%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Leo%2C%3C%2FP%3E%0A%3CP%3E1.%20What%20is%20the%20frequency%20of%20HSE_CLK%3F%20If%20it%20is%20configured%20to%20120MHz%2C%20try%20to%20decrease%20it%20to%2060MHz.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FHSE-provides-RSP-NOT-SUPPORTED-response%2Fm-p%2F1712323%2Fhighlight%2Ftrue%23M26508%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FHSE-provides-RSP-NOT-SUPPORTED-response%2Fm-p%2F1712323%2Fhighlight%2Ftrue%23M26508%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E2.%20Try%20to%20disable%20data%20cache%20memory.%20All%20the%20data%20objects%20used%20for%20communication%20with%20HSE%20must%20be%20forced%20to%20non-cacheable%20memory.%3C%2FP%3E%0A%3CP%3E3.%20The%20S32K3%20reference%20manual%20says%3A%3C%2FP%3E%0A%3CP%3E%22Before%20configuring%20HSE_CLK%2C%20you%20must%20wait%20for%20the%20SBAF%20to%20enter%20WFI%20by%20reading%20core%20status%20register%20of%20HSE%20CPU%20(PRTN0_CORE2_STAT).%22%3C%2FP%3E%0A%3CP%3ESo%2C%20it%E2%80%99s%20necessary%20to%20wait%20for%20WFI%20bit%20before%20running%20clock%20initialization.%3C%2FP%3E%0A%3CP%3EI%20found%20out%20that%20current%20RTD%20drivers%20do%20not%20check%20WFI%20bit.%20This%20was%20a%20few%20months%20time%20ago%20and%20I%20can%20see%20that%20this%20should%20be%20included%20in%20the%20drivers%20in%20RTD%20version%205.0.0%20and%20higher.%3C%2FP%3E%0A%3CP%3E4.%20What%20is%20the%20content%20of%20HSE%20GPR%20register%20at%200x4039_C028%3F%20What%20is%20the%20content%20of%20FSR%20and%20GSR%20registers%20in%20MU_0%3F%3C%2FP%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3ELukas%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1991668%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20HSE%20FW%20install%20for%20S32K310%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1991668%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Lukas%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bthank%20you%20very%20much%20for%20your%20reply!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20indeed%20i%20can%20read%20the%20HSE%20FW%20version%20after%20i%20download%20the%20project%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20and%20the%26nbsp%3BHSE_STATUS_INIT_OK%20flag%20is%20set%20every%20time%20when%20initialize%20the%20HW%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20however%20when%20try%20to%20use%20the%20Crypto%20driver%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeoYang_0-1731303891438.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LeoYang_0-1731303891438.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F309677i7C417263D322F21A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeoYang_0-1731303891438.png%22%20alt%3D%22LeoYang_0-1731303891438.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3Band%20HSE%20is%20not%20responding%20to%20the%20request%2C%20what%20could%20be%20the%20potential%20cause%20of%20it%3F%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeoYang_1-1731304001523.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LeoYang_1-1731304001523.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F309679i9204B6A268A23FC3%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeoYang_1-1731304001523.png%22%20alt%3D%22LeoYang_1-1731304001523.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1987694%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20HSE%20FW%20install%20for%20S32K310%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1987694%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%2F225112%22%20target%3D%22_blank%22%3E%40LeoYang-%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20usually%20recommend%20to%20create%20new%20project%20directly%20for%20used%20derivative%20and%20then%20port%20the%20code.%20However%2C%20I%20believe%20that%20this%20project%20will%20work%20just%20with%20the%20changes%20you%20did.%20Used%20features%20are%20the%20same%20on%20both%20derivatives.%3C%2FP%3E%0A%3CP%3EYes%2C%20the%20firmware%20support%20both%20S32K310%20and%20S32K311%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-1730788110453.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22lukaszadrapa_0-1730788110453.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F308637i326DDEC87A037C9B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22lukaszadrapa_0-1730788110453.png%22%20alt%3D%22lukaszadrapa_0-1730788110453.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lukaszadrapa_1-1730788119081.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22lukaszadrapa_1-1730788119081.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F308638i321F082858F609AC%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22lukaszadrapa_1-1730788119081.png%22%20alt%3D%22lukaszadrapa_1-1730788119081.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%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E