Memory become empty while flashing

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

Memory become empty while flashing

637 Views
Tarek72
Contributor I

I am creating a bootloader SWE that erases an app from block 16 and flashes an app there while flashing suddenly the memory becomes zeros and we cant do any operations on memory and even flashing the app itself through the debugger doesn't work until erasing it through the flash driver. What could be the cause of it?

0 Kudos
Reply
3 Replies

623 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

flashes an app there while flashing suddenly the memory becomes zeros and we cant do any operations on memory and even flashing the app itself through the debugger doesn't work until erasing it through the flash driver. What could be the cause of it?

Becoming all zeroes, does that mean you read zeroes or you debugger interprets ECC fault as 0x0000 ?

Because for memory to become all zeroes it require to be programmed. Erased state = all 0xFFFF

I expect you have some simple error during programming. Like enabled interrupts, or power drop which will cause your memory to be filled with ECC faults and you read them as 0 in some debugger interface.

Since the erase then remove the issue. Erase will clear all ECC errors.

So simplified you have something which is interrupting your programming and crating the ECC faults.

Best regards,

Peter

0 Kudos
Reply

614 Views
Tarek72
Contributor I
The MPC5748G board enters ivor1 fault, the memory browser in S32 Design Studio is the one that shows the memory data as zeros and I have no interrupts enabled.

It happens when trying to program any memory address which is not aligned over 8 bytes otherwise it works well and if i program the memory address that is not aligned over 8 bytes to flash 4 bytes only it works.

Could you please provide and explanation why does the alignment cause an issue if I try to flash destination address not aligned over 8 bytes.
0 Kudos
Reply

599 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

The reason is ECC mechanism.

Please refer to reference manual:

petervlna_0-1744285103358.png

 

Best regards,

Peter

0 Kudos
Reply