How to use S32K144 D-Flash on S32DS?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to use S32K144 D-Flash on S32DS?

跳至解决方案
836 次查看
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 项奖励
回复
1 解答
823 次查看
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

在原帖中查看解决方案

2 回复数
824 次查看
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

808 次查看
Felix_ar
Contributor III

Hi Luksa

Thanks for your help.

0 项奖励
回复