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
Hi Liuming,
I'd suggest you to see this document:
HOWTO: Program data flash (DFLASH) in S32 Design Studio for Power
It contains the instructions how to create a custom section in Dflash and also how to program it in S32 Design Studio.
Hope it helps.
Stan
Thank you ,Stan.
I do following the document's step,the result in map file is correct,but I can't get the result at Memory Window.
Path: C:\Freescale\S32_Power_v1.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.5.6.201703011834\win32\gdi\P&E\freescale_mpc5746r_1x32x64k_dflash.pcp
This is the latest version of PEMicro Eclipse Plugin.
Thanks and regards,
Liuming Yang
Hi,
I suspect the core is running while you are trying to dump the dflash memory.
I'd recommend you to adjust your _DFLASH debug configuration and turn off "Run on reset" and "Set breakpoint at" options since they are not needed for dflash programming.
Make sure the execution is suspended when checking the memory view:
Hope it helps.
Stan
Thank you ,Stan.
The problem is solved.