Please could any one help me
when I try to compile my project I get the following error
make all
Building file: ../code.c
Invoking: Cross GCC Compiler
gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"code.d" -MT"code.d" -o "code.o" "../code.c"
../code.c:5:16: fatal error: ee.h: No such file or directory
compilation terminated.
make: *** [code.o] Error 1
here is the my oil and Code files:
Code: Select all
CPU mySystem {
OS myOs {
EE_OPT = "DEBUG";
EE_OPT = "__OO_STARTOS_OLD__";
EE_OPT = "__USE_CMSIS_ALL__";
EE_OPT = "__USE_SPD_ALL__";
EE_OPT = "__USE_SYSTICK__";
CFLAGS = ""; //-std=c99
}
//CPU_CLOCK = 168.0;
CPU_DATA = CORTEX_MX {
MODEL = M4;
APP_SRC = "code.c";
//COMPILER_TYPE = KEIL;
COMPILER_TYPE = GNU;
MULTI_STACK = TRUE {
IRQ_STACK = TRUE {
SYS_SIZE = 512;
};
};
};
MCU_DATA = STM32 {
MODEL = STM32F4xx;
};
STATUS = EXTENDED;
STARTUPHOOK = FALSE;
ERRORHOOK = FALSE;
SHUTDOWNHOOK = FALSE;
PRETASKHOOK = FALSE;
POSTTASKHOOK = FALSE;
USEGETSERVICEID = FALSE;
USEPARAMETERACCESS = FALSE;
USERESSCHEDULER = FALSE;
KERNEL_TYPE = ECC2;
EE_OPT = "__ADD_LIBS__";
LIB = ENABLE {
NAME = "ST_CMSIS";
};
LIB = ENABLE {
NAME = "STM32F4XX_SPD";
STM32F4XX_SPD = ENABLE {
USETIM = TRUE;
USEI2C = TRUE;
USEMISC = TRUE;
USESPI = TRUE;
USEUSART = TRUE;
};
};
LIB = ENABLE {
NAME = "STM32F4_DISCOVERY";
};
EVENT recEvent {
MASK = AUTO;
};
TASK setRecTask {
PRIORITY = 0x01; /* high priority */
AUTOSTART = FALSE;
STACK = PRIVATE {
SYS_SIZE = 512;
};
ACTIVATION = 1; /* only one pending activation */
SCHEDULE = FULL;
EVENT = recEvent;
};
};
Code: Select all
#include "ee.h"
#include "ee_api.h"
#include "kernel/oo/inc/ee_oo_api.h"
#include "stm32f4xx.h"
#include "stm32f4_discovery.h"
DeclareTask(setRecTask);
DeclareEvent(recEvent);
TASK(setRecTask) {
EventMaskType current;
while (1) {
if(WaitEvent(recEvent) == E_OK){
/* error handling */
}
getEvent(setRecTask, ¤t); /* save event */
ClearEvent(recEvent);
/* do some fancy task work */
}
TerminateTask(); // never reached
}
int main(void) {
/* Initialize Erika related stuff */
EE_system_init();
/*Initialize systick */
EE_systick_set_period(MILLISECONDS_TO_TICKS(1, SystemCoreClock));
EE_systick_enable_int();
EE_systick_start();
while (1) {
SetEvent(setRecTask, recEvent);
Delay(MILLISECONDS_TO_TICKS(100, SystemCoreClock));
}
}
Thanks in advance for your help,
Beam