CodeWarrior NOR flash error - Sector Protection Error.

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

CodeWarrior NOR flash error - Sector Protection Error.

1,036 Views
taslblr
Contributor I

We are designing a custom T2081 board which we are trying to program with Hardcoded RCW.

When going to flash programmer actions "Program and verify" are chosen it shows Erase fails: "Error: Erase failed.

Flash driver reports the following error(s): Sector Protection Error"

 

A few details related to the board:

1) NOR flash device is "MT28FW02GBBA1HPC-0AAT TR (Micron)"

 

2) Created a bare board project in CodeWarrior and chose template target to init script as "T2081_init_sram.tcl"

 

3) Added a flash device as "MT28FW02GBBA1HPC-0AAT TR (64Mx16x1)" with the base address and offsets as attached below screenshot.

 

4)Checked the blank check from 'Add Action' showing error: "Blank check failed"

 

Please find the log file (T2081_NOR_flash_log.txt) and NOR device setting with error screenshot.

 

Please advice/guide with your expertise.

 

Thanks & regards,

TASL Bangalore

0 Kudos
Reply
1 Reply

1,018 Views
yipingwang
NXP TechSupport
NXP TechSupport

In CodeWarrior initialization file, you need to modify the section "IFC Controller Setup" according to your NOR flash.

You need to calculate IFC controller timing according to the NOR flash datasheet, please refer to document https://community.nxp.com/t5/Layerscape-Knowledge-Base/IFC-Controller-Configuration-on-QorIQ-Custom-...

In addition, please add unprotection task and execute it first.

0 Kudos
Reply