S32K344 : Fee issue

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

S32K344 : Fee issue

1,147 Views
ckouts
Contributor II

Hello all,

We are currently integrating the FEE (Flash EEPROM Emulation) module into our project and have encountered a recurring issue.

After performing several Fee_Write() operations, the write job consistently fails after approximately three power cycles. Following the third failure, the next power cycle results in a HardFault during FEE initialization or operation.

We would appreciate any insights into potential causes or debugging approaches for this issue.

Additional details:

  • The configuration was generated using EB Tresos, identical to the configuration used in the official NXP example project.

  • The application code involving the Fee module is minimal and nearly identical to the example (Fee_Init, Fee_Write, Fee_Read).

  • It is unusual that the first three write/read cycles succeed, but subsequent ones consistently report MEMIF_JOB_FAILED, and after the next reset a HardFault occurs.

  • We are using S32K3X4EVB-T172

Has anyone experienced similar behaviour, or could you suggest what might cause a Fee job to fail after several successful operations?
Any hints or debugging recommendations would be greatly appreciated.

Thank you in advance for your support,
Chris

ckouts_0-1759937514703.png

ckouts_1-1759937564691.pngckouts_2-1759937618775.png

 

ckouts_3-1759937715293.png

 

0 Kudos
Reply
5 Replies

1,098 Views
ckouts
Contributor II

Thanks a lot for your prompt response. I have tried both of your config suggestion but with no luck. 
Eventually, the issue was resolved by slightly modifying the initialization order. Previously, I had 

Gpt_Init(&Gpt_Config);
(Fee_Init ( with all the appropriate function calls)
Gpt_StartTimer()
Gpt_EnableNotification() ( To trigger a periodic interrupt). After moving Fee_Init() after the Gpt_EnableNotification driver works smoothly. Somehow this initialization order interfered with the Fee driver I guess and after 3 power cycles could not write to Fee.
Is there any deeper/better explanation on that?
 
Thanks in advance,
Chris
0 Kudos
Reply

1,056 Views
danielmartynek
NXP TechSupport
NXP TechSupport

HI @ckouts,

I don't see the connection between Fee and Gpt.

Do you use Gpt notification to call FEE/MemAcc APIs?

 

Regards,

Daniel

0 Kudos
Reply

968 Views
ckouts
Contributor II

Hello again and thanks for your answer.
Not really. I just used the example were all the Fee Read/Write operations were executed in blocking mode(exactly as the example but I embedded it in my existing project) before the Gpt initialization as described above. After modifying the init order the Fee example worked ok.

0 Kudos
Reply

878 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @ckouts,

Given the inconsistent behavior of the FEE, please verify that the system clock configuration matches one of the officially supported options listed in the Reference Manual - such as Table 157, Option A: High Performance Mode (CORE_CLK @ 160 MHz). 
Additionally, confirm that all compiler and linker settings strictly follow the guidelines provided in the RTD release notes. The RTD has been validated with the specific configuration.

Thank you,

BR, Daniel

 

 

0 Kudos
Reply

1,115 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @ckouts,

Could you please test with the following configuration settings?

  • FeeBlockAlwaysAvailable = 1
    This ensures immediate access to the Fee blocks after a reset.

  • FeeImmediateData = 1
    This setting may help reduce the risk of data loss during resets.

For further details, please refer to the FEE User Manual, which is available in the installation directory of the RTD.

If these changes do not resolve the issue, share the following:

  • The configuration .xdm files
  • The relevant source code containing all FEE API calls

 

Regards,

Daniel

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2181966%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K344%20%3A%20Fee%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2181966%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20all%2C%3C%2FP%3E%3CP%3EWe%20are%20currently%20integrating%20the%20%3CSTRONG%3EFEE%20(Flash%20EEPROM%20Emulation)%3C%2FSTRONG%3E%20module%20into%20our%20project%20and%20have%20encountered%20a%20recurring%20issue.%3C%2FP%3E%3CP%3EAfter%20performing%20several%20%3CSTRONG%3EFee_Write()%3C%2FSTRONG%3E%20operations%2C%20the%20write%20job%20consistently%20%3CSTRONG%3Efails%20after%20approximately%20three%20power%20cycles%3C%2FSTRONG%3E.%20Following%20the%20third%20failure%2C%20the%20next%20power%20cycle%20results%20in%20a%20%3CSTRONG%3EHardFault%3C%2FSTRONG%3E%20during%20FEE%20initialization%20or%20operation.%3C%2FP%3E%3CP%3EWe%20would%20appreciate%20any%20insights%20into%20potential%20causes%20or%20debugging%20approaches%20for%20this%20issue.%3C%2FP%3E%3CP%3E%3CSTRONG%3EAdditional%20details%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%3EThe%20configuration%20was%20generated%20using%20%3CSTRONG%3EEB%20Tresos%3C%2FSTRONG%3E%2C%20identical%20to%20the%20configuration%20used%20in%20the%20official%20%3CSTRONG%3ENXP%20example%20project%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EThe%20application%20code%20involving%20the%20Fee%20module%20is%20minimal%20and%20nearly%20identical%20to%20the%20example%20(Fee_Init%2C%20Fee_Write%2C%20Fee_Read).%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EIt%20is%20unusual%20that%20the%20%3CSTRONG%3Efirst%20three%20write%2Fread%20cycles%20succeed%3C%2FSTRONG%3E%2C%20but%20subsequent%20ones%20consistently%20report%20%3CSTRONG%3EMEMIF_JOB_FAILED%3C%2FSTRONG%3E%2C%20and%20after%20the%20next%20reset%20a%20%3CSTRONG%3EHardFault%3C%2FSTRONG%3E%20occurs.%3C%2FP%3E%3C%2FLI%3E%3CLI%3EWe%20are%20using%26nbsp%3BS32K3X4EVB-T172%3C%2FLI%3E%3C%2FUL%3E%3CP%3EHas%20anyone%20experienced%20similar%20behaviour%2C%20or%20could%20you%20suggest%20what%20might%20cause%20a%20Fee%20job%20to%20fail%20after%20several%20successful%20operations%3F%3CBR%20%2F%3EAny%20hints%20or%20debugging%20recommendations%20would%20be%20greatly%20appreciated.%3C%2FP%3E%3CP%3EThank%20you%20in%20advance%20for%20your%20support%2C%3CBR%20%2F%3EChris%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ckouts_0-1759937514703.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ckouts_0-1759937514703.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359924iD4A874920BBA66D8%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ckouts_0-1759937514703.png%22%20alt%3D%22ckouts_0-1759937514703.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ckouts_1-1759937564691.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ckouts_1-1759937564691.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359928i34FFEA9CB62F9B7F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ckouts_1-1759937564691.png%22%20alt%3D%22ckouts_1-1759937564691.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ckouts_2-1759937618775.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ckouts_2-1759937618775.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359929iB88C85C984285E64%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ckouts_2-1759937618775.png%22%20alt%3D%22ckouts_2-1759937618775.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ckouts_3-1759937715293.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ckouts_3-1759937715293.png%22%20style%3D%22width%3A%20399px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359930iC26A5B60D000EEC8%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ckouts_3-1759937715293.png%22%20alt%3D%22ckouts_3-1759937715293.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2189155%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K344%20%3A%20Fee%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2189155%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F251945%22%20target%3D%22_blank%22%3E%40ckouts%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EGiven%20the%20inconsistent%20behavior%20of%20the%20FEE%2C%20please%20verify%20that%20the%20system%20clock%20configuration%20matches%20one%20of%20the%20officially%20supported%20options%20listed%20in%20the%20Reference%20Manual%20-%20such%20as%20Table%20157%2C%20Option%20A%3A%20High%20Performance%20Mode%20(CORE_CLK%20%40%20160%20MHz).%26nbsp%3B%3CBR%20%2F%3EAdditionally%2C%20confirm%20that%20all%20compiler%20and%20linker%20settings%20strictly%20follow%20the%20guidelines%20provided%20in%20the%20RTD%20release%20notes.%20The%20RTD%20has%20been%20validated%20with%20the%20specific%20configuration.%3C%2FP%3E%0A%3CP%3EThank%20you%2C%3C%2FP%3E%0A%3CP%3EBR%2C%26nbsp%3BDaniel%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2187454%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K344%20%3A%20Fee%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2187454%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20again%20and%20thanks%20for%20your%20answer.%3CBR%20%2F%3ENot%20really.%20I%20just%20used%20the%20example%20were%20all%20the%20Fee%20Read%2FWrite%20operations%20were%20executed%20in%20blocking%20mode(exactly%20as%20the%20example%20but%20I%20embedded%20it%20in%20my%20existing%20project)%20before%20the%20Gpt%20initialization%20as%20described%20above.%20After%20modifying%20the%20init%20order%20the%20Fee%20example%20worked%20ok.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2184648%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K344%20%3A%20Fee%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2184648%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHI%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F251945%22%20target%3D%22_blank%22%3E%40ckouts%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EI%20don't%20see%20the%20connection%20between%20Fee%20and%20Gpt.%3C%2FP%3E%0A%3CP%3EDo%20you%20use%20Gpt%20notification%20to%20call%20FEE%2FMemAcc%20APIs%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2183836%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K344%20%3A%20Fee%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2183836%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThanks%20a%20lot%20for%20your%20prompt%20response.%20I%20have%20tried%20both%20of%20your%20config%20suggestion%20but%20with%20no%20luck.%26nbsp%3B%3CBR%20%2F%3EEventually%2C%20the%20issue%20was%20resolved%20by%20slightly%20modifying%20the%20initialization%20order.%20Previously%2C%20I%20had%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3EGpt_Init%3C%2FSPAN%3E%3CSPAN%3E(%3C%2FSPAN%3E%3CSPAN%3E%26amp%3B%3C%2FSPAN%3E%3CSPAN%3EGpt_Config%3C%2FSPAN%3E%3CSPAN%3E)%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E(Fee_Init%20(%20with%20all%20the%20appropriate%20function%20calls)%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3EGpt_StartTimer()%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EGpt_EnableNotification()%20(%20To%20trigger%20a%20periodic%20interrupt).%20After%20moving%20Fee_Init()%20after%20the%20Gpt_EnableNotification%20driver%20works%20smoothly.%20Somehow%20this%20initialization%20order%20interfered%20with%20the%20Fee%20driver%20I%20guess%20and%20after%203%20power%20cycles%20could%20not%20write%20to%20Fee.%3CBR%20%2F%3EIs%20there%20any%20deeper%2Fbetter%20explanation%20on%20that%3F%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3CBR%20%2F%3EThanks%20in%20advance%2C%3CBR%20%2F%3EChris%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2182992%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K344%20%3A%20Fee%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2182992%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F251945%22%20target%3D%22_blank%22%3E%40ckouts%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3ECould%20you%20please%20test%20with%20the%20following%20configuration%20settings%3F%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%0A%3CP%3EFeeBlockAlwaysAvailable%20%3D%201%3CBR%20%2F%3EThis%20ensures%20immediate%20access%20to%20the%20Fee%20blocks%20after%20a%20reset.%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3EFeeImmediateData%20%3D%201%3CBR%20%2F%3EThis%20setting%20may%20help%20reduce%20the%20risk%20of%20data%20loss%20during%20resets.%3C%2FP%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EFor%20further%20details%2C%20please%20refer%20to%20the%20FEE%20User%20Manual%2C%20which%20is%20available%20in%20the%20installation%20directory%20of%20the%20RTD.%3C%2FP%3E%0A%3CP%3EIf%20these%20changes%20do%20not%20resolve%20the%20issue%2C%20share%20the%20following%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EThe%20configuration%20.xdm%20files%3C%2FLI%3E%0A%3CLI%3EThe%20relevant%20source%20code%20containing%20all%20FEE%20API%20calls%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%3C%2FLINGO-BODY%3E