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