S32K144 Flash Code Test - "Device is secure. Erase to unsecure?"

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

S32K144 Flash Code Test - "Device is secure. Erase to unsecure?"

4,329 Views
kalidassb
Contributor II

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

Labels (1)
0 Kudos
Reply
3 Replies

2,441 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

If you are using IAR, you can erase Flash with following step.

1. Project >> Download >> Erase memory.

144280_144280.pngpastedImage_0.png

2. select erase all.

3. PEMICRO connection manager comes up. then connect debugger.

4. Flash is erased.

Regards,

Lukas

0 Kudos
Reply

2,441 Views
kalidassb
Contributor II

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

        

0 Kudos
Reply

2,441 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

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:

pastedImage_1.png

Try to ask IAR if it is supported by their implementation.

Regards,

Lukas

0 Kudos
Reply