Unable to switch target HC12 variant devices when using Codewarrior V3.1

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

Unable to switch target HC12 variant devices when using Codewarrior V3.1

Jump to solution
3,012 Views
EmbeddedCoder
Contributor III
While developing our code, we have started off using a MC9S12DP256B device on an evaluation board. We have then switched to a MC9S12A512 device (which should be pretty much drop in replacement with twice the memory!).
 
However, even though the linker file has been amended (and map file shows all code at correct places) and derivative changed in the debugger, the codewarrior debugger throws an error when trying to load the code. (it says "unable to load code to FF80 to 10180 - i.e. the vector table!).
 
The only way I have found of solving this error is to uninstall and reinstall the codewarrior application - then it works perfectly (with the exact same project files and .ini files). This indicates to me some switch that I need to change in the debugger - but I cannot find it!!
 
Any ideas - I'm getting tired of reinstallation every time I switch targets!
Labels (1)
Tags (1)
0 Kudos
1 Solution
459 Views
EmbeddedCoder
Contributor III
After raising a service request to Freescale, it seems that with CodeWarrior V3.1, flashing the A512 device doesn't work very well, and an update is required from the engineering team!

View solution in original post

0 Kudos
4 Replies
460 Views
EmbeddedCoder
Contributor III
After raising a service request to Freescale, it seems that with CodeWarrior V3.1, flashing the A512 device doesn't work very well, and an update is required from the engineering team!
0 Kudos
459 Views
EmbeddedCoder
Contributor III

Hi CrasyCat,

Do you mean ICD-12 -> Set Derivative menu setting?

I have altered this, and "MC9S12A512" is displayed in the lower right hand side of the application window so I think this is set correctly - is this what you meant?

0 Kudos
459 Views
EmbeddedCoder
Contributor III
Oh, and sorry, forgot to say - yes I am using a P&E Parallel Multilink BDM!
0 Kudos
459 Views
CrasyCat
Specialist III
Hello
 
 I assume you are using a P&E Multilink to debug on your target board. Am I right?
 You need to adjust the MCU in the MCU Selection dialog. To open the "MCU
  selection" dialog, select "ICD12" -> "Set MCU Type".
 
 Select MC9S12A512 there.
 
  I hope this helps.
 
CrasyCat
0 Kudos