Building multiple SREC files

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

Building multiple SREC files

1,467 次查看
jingyinwong
Contributor I

Hi NXP Team,

I have 2 version of S32K142 linker files (S32K142_32_flash.ld).

Each linker file has different memory area specifications.

I need to build 2 SREC files under the same project in S32DS with different linker files.

Currently, I have to perform the followings to build 2 SREC files:

1. Build the 1st SREC file.

2. Modify the linker file manually.

3. Build the 2nd SREC file.

I would like to know if there is any better way to achieve that.

For example,

#ifdef XXX

   run version1.ld

#else

   run vesion2.ld

Thank you.

Best regards,

Jing Yin

标记 (2)
0 项奖励
回复
1 回复

1,365 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

best option is just add another build configuration and specify your linker file in proejct settings for particular configuration - the same way as RAM and FLASH target: 

pastedImage_1.png

pastedImage_2.png

Hope it helps.

Jiri

0 项奖励
回复