MCU on EVB9S12XF512E can't be programmed properly

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

MCU on EVB9S12XF512E can't be programmed properly

1,292 Views
usstfreescale
Contributor I

After the download, what the debuger look has showed in the attachment.

During the download, some information are showed in the command window:

 

Reset command file correctly executed.
<Timeout> (> 2000 ms)
Program counter: 0x00000063
Block Module Name      Address Range   Status
   0  FLASH_4000        FF00 - 11DFF   Programmed - Unselected
<Timeout> (> 2000 ms)
Program counter: 0x00000063
   1  FLASH_8000        FF00 - 11DFF   Programmed - Unselected
<Timeout> (> 2000 ms)
Program counter: 0x00000063
   2  FLASH_C000        FF00 - 11DFF   Programmed - Unselected
   3  ALL_PPAGES      FFFFFF -1FFFFFD   Skipped - Unselected

FP: The UNPROTECT command is not available for the FLASH_4000 flash module => Skipped.

FP: The UNPROTECT command is not available for the FLASH_8000 flash module => Skipped.

FP: The UNPROTECT command is not available for the FLASH_C000 flash module => Skipped.

FP: Call of a command not implemented!
Please modify "flags" in ALL_PPAGES module INFO applet.
Block Module Name      Address Range   Status
   0  FLASH_4000      FFFFFF -1FFFFFD   Skipped - Selected
   1  FLASH_8000      FFFFFF -1FFFFFD   Skipped - Selected
   2  FLASH_C000      FFFFFF -1FFFFFD   Skipped - Selected
   3  ALL_PPAGES      FFFFFF -1FFFFFD   Skipped - Selected
executing .\cmd\P&E_Multilink_CyclonePro_vppon.cmd

!// Before programming the flash, the commands written below will be executed
done .\cmd\P&E_Multilink_CyclonePro_vppon.cmd

Vppon command file correctly executed.

FP: The ERASE command is not performed for the FLASH_4000 flash module (AEFSKIPERASING) => Skipped.

FP: The ERASE command is not performed for the FLASH_8000 flash module (AEFSKIPERASING) => Skipped.

FP: The ERASE command is not performed for the FLASH_C000 flash module (AEFSKIPERASING) => Skipped.

FP: The ERASE command is not performed for the ALL_PPAGES flash module (AEFSKIPERASING) => Skipped.
executing .\cmd\P&E_Multilink_CyclonePro_vppoff.cmd

 

 

I believe there are something wrong with Flash, because " <Timeout> (> 2000 ms) "showed in the command window in the seconfd line.

I don't know what happened, and MCU is not working as it is supposed to be?

I need your help, please!

Labels (1)
0 Kudos
Reply
4 Replies

595 Views
kef
Specialist I

It seems you have AEFSKIPERASING command in one of your cmd files, and it also seems that AEFSKIPERASING command arguments tell debugger to not erase anything. Flash can't be programmed properly without erasing it first, so try editing *.cmd files and suppressing this command.

0 Kudos
Reply

595 Views
usstfreescale
Contributor I

I have download the same project on another MCU of same type successfully, I believe there is nothing wrong with codewarrior.

And I have no idea about changing the CMD file, could you give any detailed information?

0 Kudos
Reply

595 Views
kef
Specialist I

*.cmd files are in <your project>\cmd folder.

Codewarrior doesn't insert AEFSKIPERASING command to newly created projects. This command is added by user to disble erasure of certain flash blocks or eeprom. 

0 Kudos
Reply

595 Views
usstfreescale
Contributor I

I used "unsecure12" tool downloaded from P&E website to unsecure the chip successfully.

And now the MCU is working as usual.

0 Kudos
Reply