NOR flash programming issue

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

NOR flash programming issue

Jump to solution
567 Views
Detrois
Contributor III

Hi,

   In my custom board using processor T1014 .When I try to program Uboot.bin into NOR flash, it cannot end when programming to the last sector.

I have done unprotect and erase before program.

The following is the log output by codewarrior :

fl::target -lc "t10104_connect_sram_flash-core00_RAM_T1014_Download"
fl::target -b 0x0 0x20000
fl::target -v off -l off
cmdwin::fl::device -d "lisco-S29GL01GP" -o "64Mx16x1" -a 0xe8000000 0xefffffff
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
cmdwin::fl::image -f "C:\\Users\\MPC1\\Desktop\\MPC\\nor_flash_dump\\nor_uboot_current_uboot.bin" -t "Auto Detect" -re off -oe on -o 0xeff40000
cmdwin::fl::erase image
-------------------------
Auto-detection is successful.
File is of type Binary/Raw Format.

Downloading Flash Device Driver ...
Reading flash ID ...
Erasing Sector 0xEFF40000 to 0xEFF5FFFF
Erasing Sector 0xEFF60000 to 0xEFF7FFFF
Erasing Sector 0xEFF80000 to 0xEFF9FFFF
Erasing Sector 0xEFFA0000 to 0xEFFBFFFF
Erasing Sector 0xEFFC0000 to 0xEFFDFFFF
Erasing Sector 0xEFFE0000 to 0xEFFFFFFF
Erasing ....
Erase Command Succeeded
cmdwin::fl::write verify
Beginning Operation ...
-------------------------
Programming file C:\Users\MPC1\Desktop\MPC\nor_flash_dump\nor_uboot_current_uboot.bin
Auto-detection is successful.
File is of type Binary/Raw Format.

Downloading Flash Device Driver ...
Reading flash ID ...
Auto-detection is successful.
File is of type Binary/Raw Format.

Downloading 0x00010000 bytes to be programmed at 0xEFF40000
Executing program with verify ....
Executing program with verify .....
Executing program with verify ......
Executing program with verify .......
Executing program with verify ........
Executing program with verify .........
Program with Verify Command Succeeded
Downloading 0x00010000 bytes to be programmed at 0xEFF50000
Executing program with verify ....
Executing program with verify .....
Executing program with verify ......
Executing program with verify .......
Executing program with verify ........
Executing program with verify .........
Program with Verify Command Succeeded
Downloading 0x00010000 bytes to be programmed at 0xEFF60000
Executing program with verify ....
Executing program with verify .....
Executing program with verify ......
Executing program with verify .......
Executing program with verify ........
Executing program with verify .........
Program with Verify Command Succeeded
Downloading 0x00010000 bytes to be programmed at 0xEFF70000
Executing program with verify ....
Executing program with verify .....
Executing program with verify ......
Executing program with verify .......
Executing program with verify ........
Executing program with verify .........
Program with Verify Command Succeeded
Downloading 0x00010000 bytes to be programmed at 0xEFF80000
Executing program with verify ....
Executing program with verify .....
Executing program with verify ......
Executing program with verify .......
Executing program with verify ........
Executing program with verify .........
Program with Verify Command Succeeded
Downloading 0x00010000 bytes to be programmed at 0xEFF90000
Executing program with verify ....
Executing program with verify .....
Executing program with verify ......
Executing program with verify .......
Executing program with verify ........
Executing program with verify .........
Program with Verify Command Succeeded
Downloading 0x00010000 bytes to be programmed at 0xEFFA0000
Executing program with verify ....
Executing program with verify .....
Executing program with verify ......
Executing program with verify .......
Executing program with verify ........
Executing program with verify .........
Program with Verify Command Succeeded
Downloading 0x00010000 bytes to be programmed at 0xEFFB0000
Executing program with verify ....
Executing program with verify .....
Executing program with verify ......
Executing program with verify .......
Executing program with verify ........
Executing program with verify .........
Program with Verify Command Succeeded
Downloading 0x00010000 bytes to be programmed at 0xEFFC0000
Executing program with verify ....
Executing program with verify .....
Executing program with verify ......
Executing program with verify .......
Executing program with verify ........
Program with Verify Command Succeeded
Downloading 0x00010000 bytes to be programmed at 0xEFFD0000
Executing program with verify ....
Executing program with verify .....
Executing program with verify ......
Program with Verify Command Succeeded
Downloading 0x00010000 bytes to be programmed at 0xEFFE0000
Executing program with verify ....
Program with Verify Command Succeeded
Downloading 0x0000FFFF bytes to be programmed at 0xEFFF0000
Executing program with verify ....
Executing program with verify .....
Executing program with verify ......
Executing program with verify .......
Executing program with verify ........
Executing program with verify .........
Executing program with verify ..........
Executing program with verify ...........
Executing program with verify ............
Executing program with verify .............
Executing program with verify ..............
Executing program with verify ...............
Executing program with verify ................
Executing program with verify .................
Executing program with verify ..................
Executing program with verify ...................
Executing program with verify ....................
Executing program with verify .....................
Executing program with verify ......................
Executing program with verify .......................
Executing program with verify ........................
Executing program with verify .........................
Executing program with verify ..........................
Executing program with verify ...........................
Executing program with verify ............................
Executing program with verify .............................
Executing program with verify ..............................
Executing program with verify ...............................
Executing program with verify ................................
Executing program with verify .................................
Executing program with verify ..................................
Executing program with verify ...................................
Executing program with verify ....................................
Executing program with verify .....................................
Executing program with verify ......................................
Executing program with verify .......................................
Executing program with verify ........................................
Executing program with verify .........................................
Executing program with verify ..........................................
Executing program with verify ...........................................
Executing program with verify ............................................
Executing program with verify .............................................
Executing program with verify ..............................................
Executing program with verify ...............................................
Executing program with verify ................................................
Executing program with verify .................................................
Executing program with verify ..................................................
Executing program with verify ...................................................
Executing program with verify ....................................................
Executing program with verify .....................................................
Executing program with verify ......................................................
Executing program with verify .......................................................
Executing program with verify ........................................................
Executing program with verify .........................................................
Executing program with verify ..........................................................
Executing program with verify ...........................................................
Executing program with verify ............................................................
Executing program with verify .............................................................
Executing program with verify ..............................................................

This will repeat the loop and never end.

 My codewarrior settings in below screenshot.

flash1.png

Regards,

Detrois Huang

 

Labels (1)
0 Kudos
Reply
1 Solution
539 Views
Detrois
Contributor III

I discovered that when I write the same file to the address: EBF40000, it is successful. Therefore, I suspect there is an issue with CodeWarrior. After having the hardware pull the NOR flash address pin to 1 (forcing B to become F), I wrote to EBF40000 again. The experiment was successful, tricking CodeWarrior into writing the value to the address EFF40000 without any errors.

View solution in original post

0 Kudos
Reply
1 Reply
540 Views
Detrois
Contributor III

I discovered that when I write the same file to the address: EBF40000, it is successful. Therefore, I suspect there is an issue with CodeWarrior. After having the hardware pull the NOR flash address pin to 1 (forcing B to become F), I wrote to EBF40000 again. The experiment was successful, tricking CodeWarrior into writing the value to the address EFF40000 without any errors.

0 Kudos
Reply