Building multiple SREC files

cancel
Showing results for 
Search instead for 
Did you mean: 

Building multiple SREC files

129 Views
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

Tags (2)
0 Kudos
1 Reply

27 Views
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 Kudos