Hi Team,
I have one query regarding adding new flash device for t2081 device. The steps till now followed by me are as follows.
I have modified the init_sram.tcl file according to the documents, i have created an xml file for the device and updated in the manifest.xml file also. But i couldn't perform program action in NOR flash. it just keeps showing "Erasing ....." in console but doesn't finish the job.
For reference i am sharing the logs, nor_device.xml file and datasheet of the nor device.
This below data i have modified in the init_sram.tcl according to IFC memory map and flash timing calculation
# NOR Flash, addr 0xE8000000, 128MB size, 16-bit NOR
# CSPR_EXT
mem [CCSR_ADDR [expr 0x12400C + $NOR_CS * 0x0C]] = 0x00000000
# CSPR
mem [CCSR_ADDR [expr 0x124010 + $NOR_CS * 0x0C]] = 0xE8000101
# AMASK
mem [CCSR_ADDR [expr 0x1240A0 + $NOR_CS * 0x0C]] = 0xF0000000
# CSOR
mem [CCSR_ADDR [expr 0x124130 + $NOR_CS * 0x0C]] = 0x00000000
# IFC_FTIM0
mem [CCSR_ADDR [expr 0x1241C0 + $NOR_CS * 0x30]] = 0x10010020
# IFC_FTIM1
mem [CCSR_ADDR [expr 0x1241C4 + $NOR_CS * 0x30]] = 0x38001302
# IFC_FTIM2
mem [CCSR_ADDR [expr 0x1241C8 + $NOR_CS * 0x30]] = 0x011C381C
# IFC_FTIM3
mem [CCSR_ADDR [expr 0x1241CC + $NOR_CS * 0x30]] = 0x00000000
Can you please suggest me what could be wrong that it is not performing the operation?
Thanks in advance.
Thanks & regards
Irfan
In the provided "flash_nor_logs_t2081.txt":
cmdwin::fl::device -d "MT28FW02GBBA1HPC" -o "256Mx16x1" -a 0xe8000000 0x167ffffff
"256Mx16x1" is incorrect - the flash size is 256MB
0xe8000000 is incorrect for the 256MB because in the Power Architecture base address of any window must be aligned to the window size. Example correct value is: 0xE0000000.
0x167ffffff - this value is abnormally big.
xml.PNG
sector size of the Flash should be 128kB (0x20000) - not 0x100000
organization <name> should be 128x16x1
NOTE:
T2081 has IFC controller, so selected <algorithm> and <utility> should contain "IFC" in the names.
Hi Eufedor,
Thanks for your quick response.
One last query. Can you please elaborate me what all changes to be made wrt to TCL file, XML files for proper functioning of NOR device.
As you had suggested I tried but now it is giving me flash id error.
Thanks and regards
Irfan
Please refer to the Application Note "Adding Device(s) to the CodeWarrior™ Flash Programmer for Power Architecture™ Processors":
c:\Freescale\CW_PA_v10.5.1\PA\PA_Tools\FlashToolKit\Documentation\AppNote-FlashProgrammer-PowerArchitecture.pdf