s32k344: how to write to internal flash? what is the algorithm/steps/code example/explanation?

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

s32k344: how to write to internal flash? what is the algorithm/steps/code example/explanation?

Jump to solution
2,032 Views
paulffffff
Contributor III

s32k344: how to write to internal flash?

what is the algorithm/steps/code example/explanation?

can you provide code example without autosar?

0 Kudos
Reply
1 Solution
1,992 Views
paulffffff
Contributor III

before compilation - I open *.mex file and "Update code". Fix absent PIN SDK files.

I found "Siul2_Port_Ip_Defines.h" - is missed.

After copy this file from another project - It can run.

View solution in original post

0 Kudos
Reply
3 Replies
1,993 Views
paulffffff
Contributor III

when I import this project (exactly from same repository version you point on your picture) to S32 Design Studio - it cannot be compiled.

paulffffff_0-1715093282532.png

 

0 Kudos
Reply
1,993 Views
paulffffff
Contributor III

before compilation - I open *.mex file and "Update code". Fix absent PIN SDK files.

I found "Siul2_Port_Ip_Defines.h" - is missed.

After copy this file from another project - It can run.

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

Hi@paulffff

you can find C40_Ip_Example_S32K344 in your S32 DS if you already installed the RTD package.

Senlent_0-1715049782823.png

 

for you better understand the s32k3 memory, you can take a look at the application AN13388 also.

https://www.nxp.com/webapp/Download?colCode=AN13388&location=null

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1859937%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Es32k344%3A%20how%20to%20write%20to%20internal%20flash%3F%20what%20is%20the%20algorithm%2Fsteps%2Fcode%20example%2Fexplanation%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1859937%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Es32k344%3A%20how%20to%20write%20to%20internal%20flash%3F%3C%2FP%3E%3CP%3Ewhat%20is%20the%20algorithm%2Fsteps%2Fcode%20example%2Fexplanation%3F%3C%2FP%3E%3CP%3Ecan%20you%20provide%20code%20example%20without%20autosar%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1860636%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20s32k344%3A%20how%20to%20write%20to%20internal%20flash%3F%20what%20is%20the%20algorithm%2Fsteps%2Fcode%20example%2Fexplanation%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1860636%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ebefore%20compilation%20-%20I%20open%20*.mex%20file%20and%20%22Update%20code%22.%20Fix%20absent%20PIN%20SDK%20files.%3C%2FP%3E%3CP%3EI%20found%20%22Siul2_Port_Ip_Defines.h%22%20-%20is%20missed.%3C%2FP%3E%3CP%3EAfter%20copy%20this%20file%20from%20another%20project%20-%20It%20can%20run.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1860623%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20s32k344%3A%20how%20to%20write%20to%20internal%20flash%3F%20what%20is%20the%20algorithm%2Fsteps%2Fcode%20example%2Fexplanation%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1860623%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ewhen%20I%20import%20this%20project%20(exactly%20from%20same%20repository%20version%20you%20point%20on%20your%20picture)%20to%20S32%20Design%20Studio%20-%20it%20cannot%20be%20compiled.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22paulffffff_0-1715093282532.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22paulffffff_0-1715093282532.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F277501i2003D6DDE7F0C811%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22paulffffff_0-1715093282532.png%22%20alt%3D%22paulffffff_0-1715093282532.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-1860085%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20s32k344%3A%20how%20to%20write%20to%20internal%20flash%3F%20what%20is%20the%20algorithm%2Fsteps%2Fcode%20example%2Fexplanation%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1860085%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22mailto%3AHi%40paulffff%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EHi%40paulffff%3C%2FA%3E%3C%2FP%3E%0A%3CP%3Eyou%20can%20find%20C40_Ip_Example_S32K344%20in%20your%20S32%20DS%20if%20you%20already%20installed%20the%20RTD%20package.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Senlent_0-1715049782823.png%22%20style%3D%22width%3A%20583px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_0-1715049782823.png%22%20style%3D%22width%3A%20583px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F277333i8F6D74DF53420CE3%2Fimage-dimensions%2F583x396%3Fv%3Dv2%22%20width%3D%22583%22%20height%3D%22396%22%20role%3D%22button%22%20title%3D%22Senlent_0-1715049782823.png%22%20alt%3D%22Senlent_0-1715049782823.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3Efor%20you%20better%20understand%20the%20s32k3%20memory%2C%20you%20can%20take%20a%20look%20at%20the%20application%20AN13388%20also.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fwebapp%2FDownload%3FcolCode%3DAN13388%26amp%3Blocation%3Dnull%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fwebapp%2FDownload%3FcolCode%3DAN13388%26amp%3Blocation%3Dnull%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E