Unable to program S12Z interrupt vectors from CodeWarrior 10.7

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

Unable to program S12Z interrupt vectors from CodeWarrior 10.7

605 Views
gordonp
Contributor III

I am using CodeWarrior 10.7 SE with a P&E Micro USB Multilink to develop code for an S12ZVC192. When I invoke the Flash Programmer, I get the following message. The final messages say that it can't program addresses in the interrupt vector table. I've uploaded the contents of the device, and can verify that the interrupt vectors haven't been programmed. I have tried programming the device outside of CodeWarrior, using P&E Micro PROG12ZZ, and all appears to be ok! Any ideas?

fl::target -lc "LC for Simple Flash"
fl::target -b 0x1000 0x800
fl::target -v off -l off
cmdwin::fl::device -d "MC9S12ZVC192_FLASH" -o "192Kx32x1" -a 0xfd0000 0xffffff
cmdwin::fl::protect all off
 Beginning Operation ...    
-------------------------
Performing target initialization ...    
Device MC9S12ZVC192_FLASH    
Detect frequence ...   
Frequence 5452.81 Khz   
Flash Operation.   
Unprotecting .............   
Unprotecting ....   
Unprotect Command Succeeded.   
Device MC9S12ZVC192_FLASH    
cmdwin::fl::device -d "MC9S12ZVC192_EEPROM" -o "2Kx32x1" -a 0x100000 0x1007ff
cmdwin::fl::protect all off
 Beginning Operation ...    
-------------------------
Device MC9S12ZVC192_EEPROM    
Flash Operation.   
Unprotecting .............   
Unprotecting ....   
Unprotect Command Succeeded.   
Device MC9S12ZVC192_EEPROM    
cmdwin::fl::device -d "MC9S12ZVC192_FLASH" -o "192Kx32x1" -a 0xfd0000 0xffffff
cmdwin::fl::image -f "D:\\Dropbox\\Projects\\WR\\Power_Switch\\PowerSwitch\\FLASH\\PowerSwitch.elf" -t "Auto Detect" -re on -r 0xfd0000 0xffffff -oe off
cmdwin::fl::erase image
-------------------------
Auto-detection is successful.   
  File is of type Elf Format.   
 
Device MC9S12ZVC192_FLASH    
 Erasing .........
Erase Command Succeeded.   
Device MC9S12ZVC192_FLASH    
cmdwin::fl::write
-------------------------
Flash Operation.  ...
Auto-detection is successful.   
  File is of type Elf Format.   
 
Device MC9S12ZVC192_FLASH    
 Programming .......
Device MC9S12ZVC192_FLASH    
Program Command Succeeded    
Flash Operation. done   
cmdwin::fl::device -d "MC9S12ZVC192_EEPROM" -o "2Kx32x1" -a 0x100000 0x1007ff
cmdwin::fl::image -f "D:\\Dropbox\\Projects\\WR\\Power_Switch\\PowerSwitch\\FLASH\\PowerSwitch.elf" -t "Auto Detect" -re on -r 0x100000 0x1007ff -oe off
cmdwin::fl::erase image
-------------------------
Auto-detection is successful.   
  File is of type Elf 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 Elf Format.   
 
Device MC9S12ZVC192_EEPROM    
 Programming ....
Programming warning.  Can't program 8 bytes to address 0xffff50 because this range isn't included in the selected modules!
Programming warning.  Can't program 8 bytes to address 0xffffd8 because this range isn't included in the selected modules!
Programming warning.  Can't program 8 bytes to address 0xfffff8 because this range isn't included in the selected modules!
Device MC9S12ZVC192_EEPROM    
Program Command Succeeded    
Flash Operation. done   

0 Kudos
2 Replies

424 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi,

Can you please check if you select the correct Flash Configuration file in Simple Flash?

How the project works if you burn flash with debugger?

Is this problem in a specific file only or a common issue for all project files?

If the problem is only in one project, please send the project here, I can check the problem directly here.


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

424 Views
gordonp
Contributor III

Hi,

I am using MC9S12ZVCA192.xml as my flash configuration file.

When I burn the flash from the debugger I don't get the error, and my application appears to be running correctly. It is only when I burn the flash using the Flash File To Target window that I get the error messages.

This is the first time that I have used CW 10.7 in a debugging environment. Previously, I have used CW 5.9 classic IDE as I have been using the S12C processor, and always flashed separately using the generated S19 file.

I can send you my project if you want. Where, how can I send it?

0 Kudos