AnsweredAssumed Answered

Writing to Flash failed in CW10.5

Question asked by kunal gaur on Mar 16, 2014
Latest reply on Mar 26, 2014 by Pascal Irrle

Hello ,

 

i am using CW10.5, Coldfire MCF54415 with P&E Multilink BDM.

i am using External Flash S70GL02GS from spansion.

 

when i try to flash Program this external chip i got this log and it keeps on Executing.

 

Executing download task: C:\Users\kgaur\Documents\MySVN\ECU_Code\DDR2_Bareboard\ECU_Bareboard\ECU.tcl

cmdwin::fl::target -lc ECU_Bareboard_RAM_PnE U-MultiLink

thread break: Stopped, 0x0, 0x0, cpu68K, ECU_Bareboard.elf (state, tid, pid, cpu, target)

cmdwin::fl::target -b 0x40000000 0x4000000

cmdwin::fl::target -v on -l on

cmdwin::fl::device -d S70GL02GS11 -o 256Mx16x1 -a 0x0 0xfffffff

cmdwin::fl::image -f C:\Users\kgaur\Documents\MySVN\ECU_Code\DDR2_Bareboard\ECU_Bareboard\RAM\ECU_Bareboard.elf.S19 -t Auto Detect

-re on -r 0x0 0xfffffff -oe off

cmdwin::fl::erase image

Beginning Operation ...   

-------------------------

    log: Trying auto-detect...

Auto-detection is successful.  

  File is of type Motorola S-Record Format.  

 

    log: Using Algorithm: amd16x1.elf

    log: 

    log: 

    log: ======================================================================

    log: === Target Configuration Settings

    log: === Launch Configuration:       ECU_Bareboard_RAM_PnE U-MultiLink

    log: ======================================================================

    log: Connecting ...

Performing target initialization ...   

    log: Connected ...

    log: 

    log: ======================================================================

    log: === Execute:              Erase

    log: === Timestamp:            Fri Mar 14 09:06:52 2014

    log: === Flash Device:         S70GL02GS11

    log: === Flash Organization:   256Mx16x1

    log: === Flash Mem Start Addr: 0x00000000

    log: === Flash Mem End Addr:   0x0FFFFFFF

    log: ======================================================================

Downloading Flash Device Driver ...  

    log: Loading Flash Device Driver at: 0x40000000

    log: Flash Driver Buffer is at:     0x40001800

    log: Flash Driver Buffer Size is:     0x03FFE800

    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 0x00000000 to 0x0001FFFF  

    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:  Fri Mar 14 09:06:56 2014

cmdwin::fl::write

Beginning Operation ...   

-------------------------

Using restricted address range 0x00000000 to 0x0FFFFFFF  

Programming file C:\Users\kgaur\Documents\MySVN\ECU_Code\DDR2_Bareboard\ECU_Bareboard\RAM\ECU_Bareboard.elf.S19  

    log: Trying auto-detect...

Auto-detection is successful.  

  File is of type Motorola S-Record Format.  

 

    log: Using Algorithm: amd16x1.elf

thread break: Stopped, 0x0, 0x0, cpu68K, ECU_Bareboard.elf (state, tid, pid, cpu, target)

    log: 

    log: ======================================================================

    log: === Execute:              Program

    log: === Timestamp:            Fri Mar 14 09:06:56 2014

    log: === Flash Device:         S70GL02GS11

    log: === Flash Organization:   256Mx16x1

    log: === Flash Mem Start Addr: 0x00000000

    log: === Flash Mem End Addr:   0x0FFFFFFF

    log: ======================================================================

Downloading Flash Device Driver ...  

    log: Loading Flash Device Driver at: 0x40000000

    log: Flash Driver Buffer is at:     0x40001800

    log: Flash Driver Buffer Size is:     0x03FFE800

    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...

Auto-detection is successful.  

  File is of type Motorola S-Record Format.  

 

Downloading 0x00000BF0 bytes to be programmed at 0x00000000  

   log: Programming 0x00000000 bytes of Target Memory at 0x00000000

    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 ......  

 

 

Can anyone please help in this problem which i highlighted in the Red color.

All the Operations Such as Erase , blank check are performed with success as seen in the log.

 

please help, thanks in advance.

 

Regards,

Kunal Gaur

Outcomes