AnsweredAssumed Answered

CW10 + HCS08 + file not found

Question asked by ssinfod on Sep 22, 2010
Latest reply on Sep 25, 2010 by ssinfod

Hello, 

 

I just installed CW10 for Microcontroller (HCS08).

I created a project with the wizard and the basic generated code works fine.

 

Anyhow, now I want to use a simple header (.h) and source(.c) files. When I try to compile, I have the error message : C5200 file not found.

 

My project is very simple. I only include the file "f.h" in the main.

 

FILE main.c :

 

 

#include <hidef.h> /* for EnableInterrupts macro */#include "derivative.h" /* include peripheral declarations */#include "f.h"void main(void) {  EnableInterrupts;  /* include your code here */    for(;;) {    __RESET_WATCHDOG(); /* feeds the dog */  } /* loop forever */  /* please make sure that you never leave main */}

 

 

The file f.h and f.c only have a simple function which does a basic addition.

 

 

int fxx(int x){    return  x;}

 

 

What is wrong with this code ?

Ican see the file in the IDE under the Sources directory but it seems CW10 (Eclipse) needs more information.

How do you add a simple header/source file in CW10 ?

 

Thanks for your time

ssinfod

Outcomes