512 vs 256 Compatibility

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

512 vs 256 Compatibility

1,796 Views
lgs
Contributor I
I've been working with the A256 for a few years now, but we can't find them in stock anywhere, so we decided to try the DP512 in it's place.  All of the documentation that I could find showed that this should be a drop in replacement.  However, when I go to program the parts, the programmer says that it can't program block $C000.  I am using Metrowerks version 3.1. 
 
Anything obvious that I'm missing?  Is the 512 a drop in replacement for the 256?
Labels (1)
0 Kudos
4 Replies

514 Views
CrasyCat
Specialist III

Hello

I assume you took the project you have initially created for a HC12DP256 and just changed the register definition file, rebuild the application and try to debug.

Am I right?

You probably have the wrong MCU encoded in your project .ini file.
Can you try to replace your .ini file (probably P&E.ini if you have created your project from a stationery) by the attached one.

Alternatively if you want to keep your configuration, try the following:
  - Start the debugger
  - After the message telling you "can't program the flash", select "ICD12" -> "Set MCU Type" and change MCU to HCS12DP512.

I hope this helps.

CrasyCat

0 Kudos

514 Views
lgs
Contributor I
You are correct, at first I just changed the register definition file.  Then I re-assembled the program and in the debugger I used the ICD12 menu command "Set Derivative" to change to 9S12DP512.  It still wouldn't let me program the flash. 
 
I usually don't use codewarrior except for the command line assembler and Hiwave debugger, so I thought that was my problem.  I went into Codewarrior (ver 3.1) and opened the demo DP512 application that is targeted to the P&E debugger.  Even that wouldn't program the DP512.  I even tried making a new application using the wizard and didn't add any extra code.  It was only 83 bytes or so and it wouldn't program either. 
 
Assuming it might be an installation problem, I even tried two different Micros, and the circuit board was previously running a 256 version, so I know the board is good.  Maybe I have a  bad batch of micros or something?
 
I included a screenshot of the debugger in case that helps...
0 Kudos

514 Views
CrasyCat
Specialist III
Hello
Then I would suggest you to submit a service request through our on-line support web site.
 
You need to get someone from our technical support to look at the issue.
Make sure to attach the failing project to the service request.
 
CrasyCat
0 Kudos

514 Views
lgs
Contributor I
I sent in a request to Freescale Support.  It turns out that the flash programming algorithms for the DP512 were incorrect for codewarrior 3.1 and 3.0.  I replaced the files with the updated ones and it works fine.  Thanks for your help!!
0 Kudos