I am trying to erase and program u-boot using a T4240 with flash device S70GL02GS12FHBV20, which is two S29GL01GS in a stacked configuration.
When using the Flash Programmer utility, we select the "Unprotect flash memory before erase" option, then Erase & Program. Code Warrior reports that the flash was successfully unprotected, but when trying to erase the sectors, it still reports Sector Protection Error.
We're using programming algorithm 128Mx16x1. This successfully erases and programs anything that is not u-boot. Our protecttype is amd. I don't know what other options exist.
We have the WP# signal on our flash set high, so its sector protection should not be active.
Any suggestions?
Update: We're still not sure why the unprotect operation doesn't do what it says it's doing, but we modified our .tcl file to clear the PPB block, which allows us to erase and program.
Please check whether NOR flash memory mapping defined in CodeWarrior initialization file is conflicted with the reserved memory sections in the memory map file in <workspace>\<project>\CFG\T4240QDS.mem.