2394186_en-US

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

2394186_en-US

2394186_en-US

Data Flash Corruption and ECC Errors After Power Abort During Fls_Erase() Operation

We are observing Data Flash corruption when a Fls_Erase() operation is interrupted due to a power abort/reset condition. After the system restarts, the affected Data Flash region appears corrupted.

AshokSubramani_1-1783921509927.png


During a subsequent attempt to recover the sector using Fls_Erase(), ECC errors are generated when the Flash driver tries to access the affected address range before performing the erase operation. As a result, the erase operation cannot proceed successfully.

We would like to understand the expected behavior of the Flash controller in this scenario and request guidance on the following points:

  1. Is Data Flash corruption expected if power is lost during an ongoing Fls_Erase() operation?
  2. Are ECC errors expected when accessing a partially erased/corrupted Flash sector after such an interruption?
  3. Is there any mechanism or register available to temporarily disable Flash ECC checking so that the corrupted Flash sector can be erased and recovered?
  4. What is the recommended recovery procedure for handling Data Flash sectors that contain uncorrectable ECC errors following a power interruption?

Target Device: [MPC5746C]
Software Stack: [AUTOSAR / Bare Metal]

Re: Data Flash Corruption and ECC Errors After Power Abort During Fls_Erase() Operation

Hello,


  • Is Data Flash corruption expected if power is lost during an ongoing Fls_Erase() operation?

Yes, that is correct behavior. As data in flash will not match ECC syndromes in flash due to power loss during programming / erase process.

  • Are ECC errors expected when accessing a partially erased/corrupted Flash sector after such an interruption?

Yes.

  • Is there any mechanism or register available to temporarily disable Flash ECC checking so that the corrupted Flash sector can be erased and recovered?

No. It is permanent HW feature.

  • What is the recommended recovery procedure for handling Data Flash sectors that contain uncorrectable ECC errors following a power interruption?

You need to initialize (erase) the corrupted flash block in such case. Once done ECC syndrome will match the data in flash and access wont trigger ECC faults.

For flash erase procedure please refer to reference manual:

petervlna_0-1783927605596.png

Best regards,

Peter



タグ(1)
評価なし
バージョン履歴
最終更新日:
12 時間前
更新者: