Codewarrior failed to upload firmware!

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

Codewarrior failed to upload firmware!

1,246 Views
rla00220
Contributor III

i use wct1013a.

I uploaded the bootloader and firmware using code warrior.

The bootloader works normally, but the firmware doesn't work normally.

What is mean 'No data to be programmed in selected flash memory range. '?

I set it up like this. Is there a problem?

캡처.JPG캡처1.JPG

Attached below is the log.

fl::target -lc "LC for Simple Flash"
fl::target -b 0x60400 0x1000
fl::target -v off -l off
cmdwin::fl::device -d "MWCT1013A_P_FLASH" -o "144kx16x1" -a 0x0 0x6bfff
cmdwin::fl::image -f "C:\\workspace\\SW V4.0 and Tech Docs\\WCT-15WTXAUTO_V4.0\\WCT-15WTXAUTO_V4.0\\15W_MP\\build\\demo\\wct1013Ademo\\demo_ldm_release\\wct1013Ademo_release.elf.S" -t "Auto Detect" -re on -r 0x0 0x6bfff -oe off
cmdwin::fl::erase image
Operation canceled.
fl::target -lc "LC for Simple Flash"
fl::target -b 0x60400 0x1000
fl::target -v off -l off
cmdwin::fl::device -d "MWCT1013A_P_FLASH" -o "144kx16x1" -a 0x0 0x6bfff
cmdwin::fl::erase all
Beginning Operation ...
-------------------------
Performing target initialization ...
Error: Connect Failed.
Unknown Fault. The Debugger can not connect to the P&E device(GDI Procotol fatal error:)
Error: Connect Failed.
fl::target -lc "LC for Simple Flash"
fl::target -b 0x60400 0x1000
fl::target -v off -l off
cmdwin::fl::device -d "MWCT1013A_P_FLASH" -o "144kx16x1" -a 0x0 0x6bfff
cmdwin::fl::erase all
Beginning Operation ...
-------------------------
Performing target initialization ...
Erasing ..........
Erase Command Succeeded.
cmdwin::fl::device -d "MWCT1013A_X_FLASH" -o "152kx16x1" -a 0x8000 0x3ffff
cmdwin::fl::erase all
Beginning Operation ...
-------------------------
Erasing ..........
Erase Command Succeeded.
cmdwin::fl::device -d "MWCT1013A_P_FLASH" -o "144kx16x1" -a 0x0 0x6bfff
cmdwin::fl::blankcheck all
-------------------------
Flash Operation.
Blank Checking ..........
BlankCheck Command Succeeded.
cmdwin::fl::device -d "MWCT1013A_X_FLASH" -o "152kx16x1" -a 0x8000 0x3ffff
cmdwin::fl::blankcheck all
-------------------------
Flash Operation.
Blank Checking ..........
BlankCheck Command Succeeded.
fl::target -lc "LC for Simple Flash"
fl::target -b 0x60400 0x1000
fl::target -v off -l off
cmdwin::fl::device -d "MWCT1013A_P_FLASH" -o "144kx16x1" -a 0x0 0x6bfff
cmdwin::fl::image -f "C:\\workspace\\SW V4.0 and Tech Docs\\WCT-15WTXAUTO_V4.0\\WCT-15WTXAUTO_V4.0\\15W_MP\\build\\demo\\wct1013Ademo\\demo_ldm_release\\wct1013Ademo_release.elf.S" -t "Auto Detect" -re on -r 0x0 0x6bfff -oe off
cmdwin::fl::erase image
Beginning Operation ...
-------------------------
Auto-detection is successful.
File is of type Motorola S-Record Format.

Auto-detection is successful.
File is of type Motorola S-Record Format.

Performing target initialization ...
Erasing ..............
Erase Command Succeeded.
cmdwin::fl::write
Beginning Operation ...
-------------------------
Flash Operation. ...
Auto-detection is successful.
File is of type Motorola S-Record Format.

Programming ...
Program Command Succeeded
Flash Operation. done
cmdwin::fl::device -d "MWCT1013A_X_FLASH" -o "152kx16x1" -a 0x8000 0x3ffff
cmdwin::fl::image -f "C:\\workspace\\SW V4.0 and Tech Docs\\WCT-15WTXAUTO_V4.0\\WCT-15WTXAUTO_V4.0\\15W_MP\\build\\demo\\wct1013Ademo\\demo_ldm_release\\wct1013Ademo_release.elf.S" -t "Auto Detect" -re on -r 0x8000 0x3ffff -oe off
cmdwin::fl::erase image
Beginning Operation ...
-------------------------
Auto-detection is successful.
File is of type Motorola S-Record Format.

Auto-detection is successful.
File is of type Motorola S-Record Format.

Nothing to erase. No sectors selected
Erase Command Succeeded.
cmdwin::fl::write
-------------------------
Flash Operation. ...
Auto-detection is successful.
File is of type Motorola S-Record Format.

Programming ...
Programming warning. No data to be programmed in selected flash memory range.
Program Command Succeeded
Flash Operation. done

0 Kudos
3 Replies

1,098 Views
rla00220
Contributor III

hi.

Thank you for your help. I solved the connection problem.

But the problem is the same. I'll reattach the log.

fl::target -lc "LC for Simple Flash"
fl::target -b 0x60400 0x1000
fl::target -v off -l off
cmdwin::fl::device -d "MWCT1013A_P_FLASH" -o "144kx16x1" -a 0x0 0x6bfff
cmdwin::fl::image -f "C:\\workspace\\test\\15W_MP\\build\\demo\\wct1013Ademo\\demo_ldm_release\\wct1013Ademo_release.elf.S" -t "Auto Detect" -re on -r 0x0 0x6bfff -oe off
cmdwin::fl::erase image
Beginning Operation ...
-------------------------
Auto-detection is successful.
File is of type Motorola S-Record Format.

Auto-detection is successful.
File is of type Motorola S-Record Format.

Performing target initialization ...
Erasing ..............
Erase Command Succeeded.
cmdwin::fl::write
Beginning Operation ...
-------------------------
Flash Operation. ...
Auto-detection is successful.
File is of type Motorola S-Record Format.

Programming ...
Program Command Succeeded
Flash Operation. done
cmdwin::fl::device -d "MWCT1013A_X_FLASH" -o "152kx16x1" -a 0x8000 0x3ffff
cmdwin::fl::image -f "C:\\workspace\\test\\15W_MP\\build\\demo\\wct1013Ademo\\demo_ldm_release\\wct1013Ademo_release.elf.S" -t "Auto Detect" -re on -r 0x8000 0x3ffff -oe off
cmdwin::fl::erase image
Beginning Operation ...
-------------------------
Auto-detection is successful.
File is of type Motorola S-Record Format.

Auto-detection is successful.
File is of type Motorola S-Record Format.

Nothing to erase. No sectors selected
Erase Command Succeeded.
cmdwin::fl::write
-------------------------
Flash Operation. ...
Auto-detection is successful.
File is of type Motorola S-Record Format.

Programming ...
Programming warning. No data to be programmed in selected flash memory range.
Program Command Succeeded
Flash Operation. done

0 Kudos

1,098 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Kim,

I suspect that the S-Recorder file format is incorrect.

I attach the screenshot, which tell you how to configure the S-Recorder file.

BR

XiangJun Rong

pastedImage_1.png

0 Kudos

1,098 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Kim,

I have tried to download code to flash based on MC56F84789 based on usbtap device, no problem. I copy my log.

Regarding your issue, from the log, it appears that the multilink universal device has issue from the error message "Unknown Fault. The Debugger can not connect to the P&E device(GDI Procotol fatal error:)".

can you use usbtap device and have a try?

secondly, can you download the *.elf  file to flash with the CW for mcu ver11.c tools itself by clicking Run->Debug Configuration....?

Can you see the Multilink Universal device icon in Device Manager on PC?

Hope it can help you

BR

XiangJun Rong

fl::target -lc "LC for Simple Flash"
fl::target -b 0x60400 0x1000
fl::target -v off -l off
cmdwin::fl::device -d "MC56F84789_P_FLASH" -o "144kx16x1" -a 0x0 0x6bfff
cmdwin::fl::image -f "C:\\DriveE\\CWCode\\DSC\\LED_8400Board\\FLASH_SDM\\LED_8400Board.elf.S" -t "Auto Detect" -re on -r 0x0 0x6bfff -oe off
cmdwin::fl::erase image
 Beginning Operation ...    
-------------------------
Auto-detection is successful.   
  File is of type Motorola S-Record Format.   
 
Auto-detection is successful.   
  File is of type Motorola S-Record Format.   
 
Performing target initialization ...    
 Erasing ..........
Erase Command Succeeded.   
cmdwin::fl::write
 Beginning Operation ...    
-------------------------
Flash Operation.  ...
Auto-detection is successful.   
  File is of type Motorola S-Record Format.   
 
 Programming ...
Program Command Succeeded    
Flash Operation. done   
cmdwin::fl::device -d "MC56F84789_X_FLASH" -o "152kx16x1" -a 0x8000 0x3ffff
cmdwin::fl::image -f "C:\\DriveE\\CWCode\\DSC\\LED_8400Board\\FLASH_SDM\\LED_8400Board.elf.S" -t "Auto Detect" -re on -r 0x8000 0x3ffff -oe off
cmdwin::fl::erase image
-------------------------
Auto-detection is successful.   
  File is of type Motorola S-Record Format.   
 
Auto-detection is successful.   
  File is of type Motorola S-Record Format.   
 
Image size is 0 bytes, nothing to erase.   
Nothing to erase.  No sectors selected
Erase Command Succeeded.   
cmdwin::fl::write
-------------------------
Flash Operation.  ...
Auto-detection is successful.   
  File is of type Motorola S-Record Format.   
 
 Programming ...
Programming warning.  No data to be programmed in selected flash memory range.
Program Command Succeeded    
Flash Operation. done   

0 Kudos