How to use S32K144 D-Flash on S32DS?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to use S32K144 D-Flash on S32DS?

ソリューションへジャンプ
987件の閲覧回数
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 解決策
974件の閲覧回数
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 返答(返信)
975件の閲覧回数
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

959件の閲覧回数
Felix_ar
Contributor III

Hi Luksa

Thanks for your help.

0 件の賞賛
返信