help about application note an3034

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

help about application note an3034

2,468 Views
francy
Contributor I

I downloade the application note an3034sw but it does not run because the compiler does not find the mc9s12dp256.h,mc9s12dp256.c and deafult.sgm.

I am using the codewarrior 5.9 and these file there are not in folder of program.

Can someone tell me how I can do?

Thanks

Fra

Labels (1)
0 Kudos
Reply
4 Replies

972 Views
francy
Contributor I

I've alredy done this attempt, but the result is the same and I can't make the project.

Have you not these file?

Fra

0 Kudos
Reply

972 Views
J2MEJediMaster
Specialist I

Those files are part of the entire CodeWarrior installation. If they are not there, then your installation is broken, somehow. I downloaded AN3034SW.zip and opened it in CodeWarrior for HCS12(X) 4.7. I removed the object code, and then had the IDE build the project. No errors, no missing files. What version of CodeWarrior are you using? To get the CodeWarrior version (and not the IDE number) do the following:

 

In the IDE, chose Help > About Freescale CodeWarrior > Installed Products.

 

---Tom

 

 

 

0 Kudos
Reply

972 Views
francy
Contributor I

I am using codewarrior 6.2.I changed the micro with mc9s08dz16 and changed the names of registers and now the program run.

Thanks

Fra

0 Kudos
Reply

972 Views
J2MEJediMaster
Specialist I

It looks like the App Note was based on a different derivative MCU than what you're using. Look for headers for your MCU derivative in your project. These are usually lurking in the Libraries folder in the CodeWarrior project window. Now modify the old header file references in the source code to point to the MCU-specific header files that your project uses. (That is, modify mc9s12dp256.h to be, say, mc9s12dp512.h.)

 

Alternatively, you can make a new basic project with the CodeWarrior wizard, then drag and drop the source files from the App note project into the Project window of the new project.

 

---Tom

 

0 Kudos
Reply