Hello
I use p1010rdb board,i use it program the uboot to the norflash(S29GL256P), codewarrior version is 10.04, i use sram download,but always wrong.Please help me find at where the problem may be or tell me how to solve simlar problem.
i use amd16x1.elf and S29GL-P_16x1.elf have the same mistake.
error messages as follow
fl::target -lc "u"
fl::target -b 0x0 0x40000
fl::target -v off -l on
cmdwin::fl::device -d "S29GL256P" -o "16Mx16x1" -a 0xfe000000 0xffffffff
cmdwin::fl::protect all off
Beginning Operation ...
-------------------------
log: Using Algorithm: S29GL-P_16x1.elf
log:
log:
log: ======================================================================
log: === Target Configuration Settings
log: === Launch Configuration: u
log: ======================================================================
log: Connecting ...
Performing target initialization ...
log: Connected ...
log:
log: ======================================================================
log: === Execute: Unprotect
log: === Timestamp: Wed Oct 11 16:53:34 2017
log: === Flash Device: S29GL256P
log: === Flash Organization: 16Mx16x1
log: === Flash Mem Start Addr: 0xFE000000
log: === Flash Mem End Addr: 0xFFFFFFFF
log: ======================================================================
Downloading Flash Diagnostics Driver ...
log: Loading Flash Device Driver at: 0x00000000
log: Flash Driver Buffer is at: 0x00004130
log: Flash Driver Buffer Size is: 0x0003BED0
log:
log: Writing the Address
log: Writing the address of the sector list
log: Clearing the status
log: Setting up Registers
log: Commanding target to run
Reading flash ID ...
log: Reading init return status
log: Done
log:
log: Initialization Command Succeeded
log: Writing the Address
log: Writing the Number of Sectors
log: Writing the address of the sector list
log: Writing the sector list
Unprotecting all sectors...
log: Clearing the status
log: Setting up Registers
log: Commanding target to run
Unprotecting ...
Unprotecting ....
log: Reading unprotect return status
log: Done
Unprotect Command Succeeded
log: Timestamp: Wed Oct 11 16:53:40 2017
cmdwin::fl::image -f "C:\\Users\\YV\\Desktop\\u-boot.bin" -t "Auto Detect" -re on -r 0xfe000000 0xffffffff -oe on -o 0xfff00000
cmdwin::fl::erase image
Beginning Operation ...
-------------------------
log: Trying auto-detect...
log: File is NOT of type Motorola S-Record Format.
log: File is NOT of type Elf Format.
Auto-detection is successful.
File is of type Binary/Raw Format.
log: Using Algorithm: S29GL-P_16x1.elf
log:
log: ======================================================================
log: === Execute: Erase
log: === Timestamp: Wed Oct 11 16:53:41 2017
log: === Flash Device: S29GL256P
log: === Flash Organization: 16Mx16x1
log: === Flash Mem Start Addr: 0xFE000000
log: === Flash Mem End Addr: 0xFFFFFFFF
log: ======================================================================
Downloading Flash Device Driver ...
log: Loading Flash Device Driver at: 0x00000000
log: Flash Driver Buffer is at: 0x00004130
log: Flash Driver Buffer Size is: 0x0003BED0
log:
log: Writing the Address
log: Writing the address of the sector list
log: Clearing the status
log: Setting up Registers
log: Commanding target to run
Reading flash ID ...
log: Reading init return status
log: Done
log:
log: Initialization Command Succeeded
log: Writing Erase Function Code
log: Writing the Address
log: Writing the Number of Sectors
log: Writing the address of the sector list
log: Writing the sector list
Erasing Sector 0xFFF00000 to 0xFFF1FFFF
Erasing Sector 0xFFF20000 to 0xFFF3FFFF
Erasing Sector 0xFFF40000 to 0xFFF5FFFF
Erasing Sector 0xFFF60000 to 0xFFF7FFFF
log: Clearing the status
log: Setting up Registers
log: Commanding target to run
Erasing .....
log: Reading erase return status
log: Done
Erase Command Succeeded
log: Timestamp: Wed Oct 11 16:53:47 2017
cmdwin::fl::write
Beginning Operation ...
-------------------------
Using restricted address range 0xFE000000 to 0xFFFFFFFF
Programming file C:\Users\YV\Desktop\u-boot.bin
log: Trying auto-detect...
log: File is NOT of type Motorola S-Record Format.
log: File is NOT of type Elf Format.
Auto-detection is successful.
File is of type Binary/Raw Format.
log: Using Algorithm: S29GL-P_16x1.elf
log:
log: ======================================================================
log: === Execute: Program
log: === Timestamp: Wed Oct 11 16:53:48 2017
log: === Flash Device: S29GL256P
log: === Flash Organization: 16Mx16x1
log: === Flash Mem Start Addr: 0xFE000000
log: === Flash Mem End Addr: 0xFFFFFFFF
log: ======================================================================
Downloading Flash Device Driver ...
log: Loading Flash Device Driver at: 0x00000000
log: Flash Driver Buffer is at: 0x00004130
log: Flash Driver Buffer Size is: 0x0003BED0
log:
log: Writing the Address
log: Writing the address of the sector list
log: Clearing the status
log: Setting up Registers
log: Commanding target to run
Reading flash ID ...
log: Reading init return status
log: Done
log:
log: Initialization Command Succeeded
log: Trying auto-detect...
log: File is NOT of type Motorola S-Record Format.
log: File is NOT of type Elf Format.
Auto-detection is successful.
File is of type Binary/Raw Format.
Downloading 0x00010000 bytes to be programmed at 0xFFF00000
Downloading 0x00010000 bytes to be programmed at 0xFFF10000
Downloading 0x00010000 bytes to be programmed at 0xFFF20000
log: Programming 0x00010000 bytes of Target Memory at 0xFFF00000
log: Writing Program Function Code
log: Writing the Address
log: Writing the Size
log: Writing the address of the buffer
log: Clearing the status
log: Setting up Registers
log: Commanding target to run
Executing program ....
Executing program .....
Executing program ......
Executing program .......
Executing program ........
Executing program .........
Executing program ..........
Executing program ...........
Executing program ............
Executing program .............
Executing program ..............
Executing program ...............
Executing program ................
Executing program .................
Executing program ..................
Executing program ...................
Executing program ....................
Executing program .....................
Executing program ......................
Executing program .......................
Executing program ........................
log: Reading program return status
Error: Program failed. Flash driver reports the following error(s): Timed Out. If you are trying to program a sector please make sure that the sector is erased.
Chip reported error during program. Please check that the sector you are programming is erased.
log: Timestamp: Wed Oct 11 16:54:13 2017
Error: Program failed. Flash driver reports the following error(s): Timed Out. If you are trying to program a sector please make
sure that the sector is erased.
Chip reported error during program. Please check that the sector you are programming is erased.
THANKS.
Is there problem for code loading and start simple program example if SRAM is used as code and data memory?
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks for your help,i already slove the problem,because the int_core.tcl not right.but the SRAM way not function.