How to use S32K144 D-Flash on S32DS?

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

How to use S32K144 D-Flash on S32DS?

Jump to solution
959 Views
Felix_ar
Contributor III

Hi Everyone

How to setup S32DS?

Let S32K144 D-flsah 0x10000000~0x1000FFFF when compiler finish will store in .s19 file.

Thanks.

0 Kudos
Reply
1 Solution
946 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Felix_ar 

you can follow this HOWTO document:

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Place-custom-data-into-flash-mem...

The only difference is that you will create the segment for data flash like this:

int_data_flash : ORIGIN = 0x10000000, LENGTH = 0x0000FFFF

And then:

.data_flash :
{
KEEP(*(.data_flash))
} > int_data_flash

And then in *.c file:

const int my_array[10] __attribute__((section (".data_flash"))) = {0,1,2,3,4,5,6,7,8,9};

Regards,

Lukas

View solution in original post

2 Replies
947 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Felix_ar 

you can follow this HOWTO document:

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Place-custom-data-into-flash-mem...

The only difference is that you will create the segment for data flash like this:

int_data_flash : ORIGIN = 0x10000000, LENGTH = 0x0000FFFF

And then:

.data_flash :
{
KEEP(*(.data_flash))
} > int_data_flash

And then in *.c file:

const int my_array[10] __attribute__((section (".data_flash"))) = {0,1,2,3,4,5,6,7,8,9};

Regards,

Lukas

931 Views
Felix_ar
Contributor III

Hi Luksa

Thanks for your help.

0 Kudos
Reply