AnsweredAssumed Answered

MPC5746R,define a variables which stores at a specified address in Flash?

Question asked by 529610366@qq.com on Apr 18, 2017
Latest reply on Apr 19, 2017 by 529610366@qq.com

Hi ,
I am using the S32 Design Studio to develop a calibration project.
I have a question :

How can I define a variables which stores at a specified address in Flash?


For example,in the main_Z4_0.c :

#define FLASH_CAL_PAR __attribute__ ((section("CALFLASH")))
FLASH_CAL_PAR vuint32 test9=0;

 

I want to define a section named "CALFLASH" at 0x00800000 to 0x00803FFF ,but I don't know how to set it.

Thanks and regards,
Liuming Yang

Outcomes