help about application note an3034

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

help about application note an3034

2,470 次查看
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

标签 (1)
0 项奖励
回复
4 回复数

974 次查看
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 项奖励
回复

974 次查看
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 项奖励
回复

974 次查看
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 项奖励
回复

974 次查看
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 项奖励
回复