Help needed with a missing header file 6812dp256b.h

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

Help needed with a missing header file 6812dp256b.h

1,760 次查看
Hagar
Contributor I

I was recently assigned with a task that involves recovering an existing project that uses a microprocessor from FreeScale, the MC9S12A128BCFU. The problem is that this was a third part project and the guys that first developed the firmware are no longer available (at all). I tried to dig in what they left but I could not even compile the source code they left behind (yes, I am using the correct CodeWarrior version for this part). Apparently the missing link is that their code is calling for a header named 6812dp256b.h that I do not have available and I was wondering if this is a standard header that is available from an evaluation board or something else (I could not find it on FreeScale site, but perhaps I am looking for in the wrong places). I strongly believe that if I get this file, I will be able to fully compile the code I have here and understand what it does.

So I would really appreciate if somebody could give me some light regarding this particular file, what is the contents of it.

 

Rgds,

 

Hagar

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

482 次查看
J2MEJediMaster
Specialist I
CodeWarrior header files for each processor usually have take this form:
mc9s12c32.h

I poked around with Google, and dredged up some information in a code file that indicates its a very old header, that might be found in some demo files somewhere:

/
/* Output compare program toggles the port T pin and demonstrates precision timing of task */
/* Allows a scope to be connected to PT0 to observe the time slice of 1 msec */
/* In main bits 6 and 7 alternated on. When program returns to main () from interrupt
, code in main doesn't alter LED status established in interrupt */
#include <hidef.h> /* common defines and macros */
/* Please note that the port addresses you have been defining in previous labs are defined in the
include file 6812dp256b.h */

#include <mc9s12c32.h>     /* derivative information */
#pragma LINK_INFO DERIVATIVE "mc9s12c32"

However, I don't have any more information than this. Sorry.
0 项奖励

482 次查看
CompilerGuru
NXP Employee
NXP Employee
I see this file in the HC12 V4.7 installation:

C:\Program Files\Freescale\CodeWarrior for HCS12 V4.7\lib\hc12c\old\v2.0\6812dp256.h
(there is also an accompanying cpp file).

Which version of the tools do you have?
Can you search your CW lib folder for it?
In case you do not find this header, HC12 V4.7 special edition can be downloaded for free from the freescale.com web site.

Daniel
0 项奖励

482 次查看
Hagar
Contributor I
Bingo!
It is there!
 
CompilerGuru, thank you very much for solving my problem.
 
Rgds,
 
Hagar
0 项奖励