Hi
Yiping
I have tried erase and program flash but it shows command failed. Please see detailed logs below it shows it erased and programmed but it does not work.
fl::target -lc "test_30sept_Debug_P1020_Download"
fl::target -b 0x0 0x40000
fl::target -v off -l on
cmdwin::fl::device -d "JS28F256M29EWL" -o "16Mx16x1" -a 0xfe000000 0xffffffff
cmdwin::fl::protect all off
Beginning Operation ...
-------------------------
log: Using Algorithm: amd16x1.elf
log:
log:
log: ======================================================================
log: === Target Configuration Settings
log: === Launch Configuration: test_30sept_Debug_P1020_Download
log: ======================================================================
log: Connecting ...
Performing target initialization ...
log: Connected ...
log:
log: ======================================================================
log: === Execute: Unprotect
log: === Timestamp: Tue Oct 07 16:15:54 2014
log: === Flash Device: JS28F256M29EWL
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: 0x00004010
log: Flash Driver Buffer Size is: 0x0003BFF0
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 ...
log: Reading unprotect return status
log: Done
Unprotect Command Succeeded
log: Timestamp: Tue Oct 07 16:15:59 2014
fl::target -lc "test_30sept_Debug_P1020_Download"
fl::target -b 0x0 0x40000
fl::target -v off -l on
cmdwin::fl::device -d "JS28F256M29EWL" -o "16Mx16x1" -a 0xfe000000 0xffffffff
cmdwin::fl::erase all
Beginning Operation ...
-------------------------
log: Using Algorithm: amd16x1.elf
log:
log:
log: ======================================================================
log: === Target Configuration Settings
log: === Launch Configuration: test_30sept_Debug_P1020_Download
log: ======================================================================
log: Connecting ...
Performing target initialization ...
log: Connected ...
log:
log: ======================================================================
log: === Execute: Erase
log: === Timestamp: Tue Oct 07 16:16:43 2014
log: === Flash Device: JS28F256M29EWL
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: 0x00004010
log: Flash Driver Buffer Size is: 0x0003BFF0
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
Erasing entire flash ...
log: Writing the Address
log: Writing the Number of Sectors
log: Writing the address of the sector list
log: Writing the sector list
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: Tue Oct 07 16:16:48 2014
fl::target -lc "test_30sept_Debug_P1020_Download"
fl::target -b 0x0 0x40000
fl::target -v off -l on
cmdwin::fl::device -d "JS28F256M29EWL" -o "16Mx16x1" -a 0xfe000000 0xffffffff
cmdwin::fl::image -f "D:\\flash_test.bin" -t "Binary/Raw Format" -re off -oe off
cmdwin::fl::write
Beginning Operation ...
-------------------------
Programming file D:\flash_test.bin
log:
log: Using Algorithm: amd16x1.elf
log:
log:
log: ======================================================================
log: === Target Configuration Settings
log: === Launch Configuration: test_30sept_Debug_P1020_Download
log: ======================================================================
log: Connecting ...
Performing target initialization ...
log: Connected ...
log:
log: ======================================================================
log: === Execute: Program
log: === Timestamp: Tue Oct 07 16:18:51 2014
log: === Flash Device: JS28F256M29EWL
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: 0x00004010
log: Flash Driver Buffer Size is: 0x0003BFF0
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
Error: command failed