Hi All,
I have a PCB board with S32K144 on it, i want to write 256 bytes data into flash and again i want to READ that data.
I have edited piece of code with flash demo code which is given by the S32 design studio
/* Write some data to the erased PFlash sector */
address = flashSSDConfig.PFlashBase + PFLASH_IFR;
size = BUFFER_SIZE;
ret = FlashProgram(&flashSSDConfig, address, size, sourceBuffer, pCmdSequence);
if (ret != FTFx_OK)
{
return ret;
}
/* Read on P-Flash */
address = flashSSDConfig.PFlashBase + PFLASH_IFR; /* Start address of Program Field */
ret = FlashReadResource(&flashSSDConfig, address, DataArray, 0x0, pCmdSequence);
if (ret != FTFx_OK)
{
return ret;
}
p_data = (uint32_t *)&DataArray;
I am trying to program a S32K144 via the Multilink in IAR work bench. The board has been working fine before., but then it shows the "Device is secure.Erase to unsecure". I keep pressing Yes.
AFter doing this twice the "Multilink" not connected is shown.
How to solve it? Kindly give me some suggestions
Thanks in advance.
Regards,
Kalidass
Hi,
If you are using IAR, you can erase Flash with following step.
1. Project >> Download >> Erase memory.
2. select erase all.
3. PEMICRO connection manager comes up. then connect debugger.
4. Flash is erased.
Regards,
Lukas
Hi Mr.Lukas,
Sorry for the delay,I have tried that,the problem remain same when i trying to connect through connection manager, its shows the "Device is secure.Erase to unsecure" pop up window.
Regards,
Kalidass B
Hi,
I do not have IAR installed, so I'm not sure how they implemented this function. Debugger is allowed to execute Erase All Blocks Unsecure command when the device is secured:
Try to ask IAR if it is supported by their implementation.
Regards,
Lukas