[S32K3XX] C40_Ip using for accessing Code flash memory patition

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

[S32K3XX] C40_Ip using for accessing Code flash memory patition

Jump to solution
2,448 Views
Changhawn
Contributor IV

Hi.

I am developing flash access using C40_Ip api in bootloader.

Data memory partition(0x10000000) can be accessed by that API.

But code memory partition(0x500000 ~ 0x007FE000) can not be accessed.

Hard fault assert is happened. 

C40_Ip API is located in SRAM like below.

Changhawn_0-1721353208571.png

Could you give me some guide or hint for this debugging?

Thank you in advance.

 

Tags (1)
0 Kudos
Reply
1 Solution
2,428 Views
Changhawn
Contributor IV

Basic working is confirmed.

My access region is not wrong.

View solution in original post

0 Kudos
Reply
4 Replies
2,429 Views
Changhawn
Contributor IV

Basic working is confirmed.

My access region is not wrong.

0 Kudos
Reply
2,422 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Changhawn

Is your problem solved?

I see that you have already set your answer as a solution.

0 Kudos
Reply
2,419 Views
Changhawn
Contributor IV
Yes.
It's work normally
0 Kudos
Reply
1,048 Views
NXP开发者
Contributor II

I encountered the same problem as you. When writing to the PFLASH, a hardware fault occurred. Could you please tell me how you solved it?

Tags (1)
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1911727%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%5BS32K3XX%5D%20C40_Ip%20using%20for%20accessing%20Code%20flash%20memory%20patition%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1911727%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi.%3C%2FP%3E%3CP%3EI%20am%20developing%20flash%20access%20using%20C40_Ip%20api%20in%20bootloader.%3C%2FP%3E%3CP%3EData%20memory%20partition(0x10000000)%20can%20be%20accessed%20by%20that%20API.%3C%2FP%3E%3CP%3EBut%20code%20memory%20partition(0x500000%20~%26nbsp%3B%3CSPAN%3E0x007FE000)%20can%20not%20be%20accessed.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EHard%20fault%20assert%20is%20happened.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EC40_Ip%20API%20is%20located%20in%20SRAM%20like%20below.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Changhawn_0-1721353208571.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Changhawn_0-1721353208571.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Changhawn_0-1721353208571.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Changhawn_0-1721353208571.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F289269iE414C5374D476B74%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Changhawn_0-1721353208571.png%22%20alt%3D%22Changhawn_0-1721353208571.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ECould%20you%20give%20me%20some%20guide%20or%20hint%20for%20this%20debugging%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThank%20you%20in%20advance.%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1911787%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%5BS32K3XX%5D%20C40_Ip%20using%20for%20accessing%20Code%20flash%20memory%20patition%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1911787%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EYes.%3CBR%20%2F%3EIt's%20work%20normally%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1911783%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%5BS32K3XX%5D%20C40_Ip%20using%20for%20accessing%20Code%20flash%20memory%20patition%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1911783%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%40%3CSPAN%3EChanghawn%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIs%20your%20problem%20solved%3F%3C%2FP%3E%0A%3CP%3EI%20see%20that%20you%20have%20already%20set%20your%20answer%20as%20a%20solution.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1911741%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%5BS32K3XX%5D%20C40_Ip%20using%20for%20accessing%20Code%20flash%20memory%20patition%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1911741%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EBasic%20working%20is%20confirmed.%3C%2FP%3E%3CP%3EMy%20access%20region%20is%20not%20wrong.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2164793%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20%5BS32K3XX%5D%20C40_Ip%20using%20for%20accessing%20Code%20flash%20memory%20patition%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2164793%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EI%20encountered%20the%20same%20problem%20as%20you.%20When%20writing%20to%20the%20PFLASH%2C%20a%20hardware%20fault%20occurred.%20Could%20you%20please%20tell%20me%20how%20you%20solved%20it%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E