Hi Everyone
How to setup S32DS?
Let S32K144 D-flsah 0x10000000~0x1000FFFF when compiler finish will store in .s19 file.
Thanks.
Solved! Go to Solution.
Hi @Felix_ar
you can follow this HOWTO document:
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
Hi @Felix_ar
you can follow this HOWTO document:
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
Hi Luksa
Thanks for your help.