Issue with Writing to pflash

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

Issue with Writing to pflash

896 Views
adem_marangoz
Contributor III

Hello NXP Team,

I have an S32K311 microcontroller, and I am working on a bootloader.

  • PFlash size: 1024KB - 176KB (HSE).
  • Bootloader starting address: 0x00400000 block(0).
  • Bootloader size: Approximately less than 200KB.
  • Application address: 0x00480000, located in sector 72 block(1).

I can erase sector 72, but when writing to it, the following error appears:

STATUS_C40_IP_ERROR

What is the solution to this issue?
S32K3 

Tags (1)
0 Kudos
Reply
7 Replies

871 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @adem_marangoz,

STATUS_C40_IP_ERROR is not used in the latest RTD.

Which RTD version do you use?

 

Thank you,

BR, Daniel

0 Kudos
Reply

865 Views
adem_marangoz
Contributor III
i am using RTD 4.7
when calling this function  C40_Ip_MainInterfaceWrite return STATUS_C40_IP_ERROR
0 Kudos
Reply

860 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Please specify the RTD version - like RTD 5.0.0, not the Autosar version.

 

Thank you

0 Kudos
Reply

850 Views
adem_marangoz
Contributor III
Does solving this issue depend on updating the RTD version?
0 Kudos
Reply

842 Views
danielmartynek
NXP TechSupport
NXP TechSupport

I don't know which older version of the RTD driver you use - so, I'm not able to look into it.

0 Kudos
Reply

750 Views
danielmartynek
NXP TechSupport
NXP TechSupport

If I have the number of the specific RTD version, I can test it to verify the issue, I can also check for any previous reports with similar symptoms in that version.

 

Regards,

Daniel

0 Kudos
Reply

857 Views
adem_marangoz
Contributor III
Currently, I cannot change the version. I want to know the reason for the issue and how it can be resolved.
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2158106%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIssue%20with%20Writing%20to%20pflash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2158106%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20NXP%20Team%2C%3C%2FP%3E%3CP%3EI%20have%20an%20S32K311%20microcontroller%2C%20and%20I%20am%20working%20on%20a%20bootloader.%3C%2FP%3E%3CUL%3E%3CLI%3E%3CSTRONG%3EPFlash%20size%3A%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E1024KB%20-%20176KB%20(HSE).%3C%2FLI%3E%3CLI%3E%3CSTRONG%3EBootloader%20starting%20address%3A%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E0x00400000%20block(0).%3C%2FLI%3E%3CLI%3E%3CSTRONG%3EBootloader%20size%3A%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EApproximately%20less%20than%20200KB.%3C%2FLI%3E%3CLI%3E%3CSTRONG%3EApplication%20address%3A%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E0x00480000%2C%20located%20in%20sector%2072%20block(1).%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSPAN%3EI%20can%20erase%20sector%2072%2C%20but%20when%20writing%20to%20it%2C%20the%20following%20error%20appears%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3ESTATUS_C40_IP_ERROR%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EWhat%20is%20the%20solution%20to%20this%20issue%3F%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2FS32K3%2Fpd-p%2FS32K3%22%20class%3D%22lia-product-mention%22%20data-product%3D%221688-1%22%20target%3D%22_blank%22%3ES32K3%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2160653%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20Writing%20to%20pflash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2160653%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIf%20I%20have%20the%20number%20of%20the%20specific%20RTD%20version%2C%20I%20can%20test%20it%20to%20verify%20the%20issue%2C%20I%20can%20also%20check%20for%20any%20previous%20reports%20with%20similar%20symptoms%20in%20that%20version.%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-2158339%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20Writing%20to%20pflash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2158339%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20don't%20know%20which%20older%20version%20of%20the%20RTD%20driver%20you%20use%20-%20so%2C%20I'm%20not%20able%20to%20look%20into%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2158274%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20Writing%20to%20pflash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2158274%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EDoes%20solving%20this%20issue%20depend%20on%20updating%20the%20RTD%20version%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2158238%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20Writing%20to%20pflash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2158238%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ECurrently%2C%20I%20cannot%20change%20the%20version.%20I%20want%20to%20know%20the%20reason%20for%20the%20issue%20and%20how%20it%20can%20be%20resolved.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2158230%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20Writing%20to%20pflash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2158230%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EPlease%20specify%20the%20RTD%20version%20-%20like%20RTD%205.0.0%2C%20not%20the%20Autosar%20version.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThank%20you%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2158177%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20Writing%20to%20pflash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2158177%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ei%20am%20using%20RTD%26nbsp%3B4.7%3CBR%20%2F%3Ewhen%20calling%20this%20function%26nbsp%3B%26nbsp%3BC40_Ip_MainInterfaceWrite%20return%26nbsp%3BSTATUS_C40_IP_ERROR%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2158151%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20Writing%20to%20pflash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2158151%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%2F249464%22%20target%3D%22_blank%22%3E%40adem_marangoz%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3ESTATUS_C40_IP_ERROR%20is%20not%20used%20in%20the%20latest%20RTD.%3C%2FP%3E%0A%3CP%3EWhich%20RTD%20version%20do%20you%20use%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThank%20you%2C%3C%2FP%3E%0A%3CP%3EBR%2C%20Daniel%3C%2FP%3E%3C%2FLINGO-BODY%3E