Yup tried that as well .. Doesn't work.
fl::target -lc "T1023_Fresh_debug-core00_RAM_T1023_Connect"
fl::target -b 0x0 0x10000
fl::target -v on -l off
cmdwin::fl::device -d "S29GL01GP" -o "64Mx16x1" -a 0xe0000000 0xe7ffffff
cmdwin::fl::protect all off
Beginning Operation ...
-------------------------
Performing target initialization ...
Downloading Flash Diagnostics Driver ...
Reading flash ID ...
Unprotecting all sectors...
Unprotecting ...
Unprotecting ....
Unprotecting .....
Unprotecting ......
Unprotect Command Succeeded
fl::target -lc "T1023_Fresh_debug-core00_RAM_T1023_Connect"
fl::target -b 0x0 0x10000
fl::target -v on -l off
cmdwin::fl::device -d "S29GL01GP" -o "64Mx16x1" -a 0xe0000000 0xe7ffffff
cmdwin::fl::image -f "C:\\Users\\labuser\\qcvs\\NTK55952\\Generated_Code\\PBL.bin" -t "Auto Detect" -re off -oe on -o 0xe3a20000
cmdwin::fl::erase image
Beginning Operation ...
-------------------------
Auto-detection is successful.
File is of type Binary/Raw Format.
Performing target initialization ...
Downloading Flash Device Driver ...
Reading flash ID ...
Erasing Sector 0xE3A20000 to 0xE3A3FFFF
Erasing ...
Error: Erase failed. Flash driver reports the following error(s): Sector Protection Error
Error: Erase failed. Flash driver reports the following error(s): Sector Protection Error
Real assistance would be to verify the two codewarrior scripts we modified to suit our design with minor changes, please check them once, they are attached in this request:
< T1023RDB_init_sram.tcl>
=> Expanded LAW window as (0xE000_0000 – 0x EFFF_FFFF) to accommodate 256 MB flash device.
=> IFC Controller setup for new space.
< T1023RDB.mem>
=> TLB Entries and reserved range update for flash.
Meanwhile we are also checking the addresses put on the address bus of the flash device, since there is one more device in between T1023 and Flash device.