How To Change/Assign S32K344 Simulink App Code Flash Location

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How To Change/Assign S32K344 Simulink App Code Flash Location

1,129 Views
kodyw
Contributor II

Hello,

We would like to add a bootloader to the S32k344 (MR-CANHUBK344) and need to change/assign S32k344 simulink app code flash location.

How can we set this up in simulink? Are there some configuration UI similar to screenshot below: (This is from old MPC574X MBDT.  S32k344 MBDT does not have this configuration screen.)

1.png

We tried to use a custom linker file from a S32DS S32k344 example project onto the simulink project. But it failed to compile.  

here is the screenshot of how to set up the custom linker file:

2.png

 

attached are the custom linker file and Simulink error output log file.

0 Kudos
Reply
1 Reply

1,087 Views
georgevictor
NXP Employee
NXP Employee

Hi, @kodyw,

 

The approach that you have used to build an application with a custom linker file is correct.

1. I have downloaded the attached linker file and tried to use it with a basic application on my end.

I am encountering multiple issues with some undefined symbols in the startup_cm7.s and startup.c files throughout the build process:

georgevictor_0-1724850502146.pngThese symbols are defined in the linker file that we use by default in our toolbox and it is provided by RTD: (S32K3_RTD\SW32K3_RTD_*\eclipse\plugins\Platform_TS_T40D34M40I0R0\build_files\gcc\linker_flash_s32k344.ld).

Considering this, you need to make sure that you either define these symbols in your custom linker file or use a custom startup code.

 

2. Looking into your error: IOC_selfModel_Config/RTD/src/Mem_43_INFLS_Ipw.c:583: undefined reference to `Mem_43_INFLS_ACEraseRomStart', I can see that the RTD drivers that our toolbox is based on require the Mem_43_INFLS_ACEraseRomStart symbol that is generally declared in the linker file provided by RTD. My first thought is to replicate these symbols somewhere in your code or your custom linker file to solve this issue.

 

Hope this helps,

Victor

 

0 Kudos
Reply