Page 1 of 1

What's the meanings of MULTI & MONO in ERIKA!

Posted: Thu Jan 24, 2013 12:13 pm
by findfrienda
Here, I found a question.

1. In ERIKA's ee.h, it states the condition to involve the TASK macro which is defined in ee_kernel.h. The codes list below:

Code: Select all

...    
/* OO */
#if defined(__OO_BCC1__) || defined(__OO_BCC2__) || defined(__OO_ECC1__) || \
defined(__OO_ECC2__) || defined(__AS_SC4__)
#include "kernel/oo/inc/ee_kernel.h"
#endif
...
So,if you wantta involve TASK macro, the cfg.h file should define the __OO__xx__.

However, in the examples/tricore1/demo_led:
The eecfg.h file doesno't define macros such as __OO_xx__, what's more, it defined the __MONO__. At the same time, the code.c file used the TASK macro to define task.

I followed its style and failed,because the TASK macro is not open.

So, My question:
If I wanta use TASK, must I define __OO__XX__ macro? If so, wy the example provided above doesn't do this (I read the makefile one by one that can influence the code, but didn't find OO definition such as __OO_XX__?


Thanks!

Re: What's the meanings of MULTI & MONO in ERIKA!

Posted: Thu Jan 24, 2013 12:44 pm
by paolo.gai
The TASK macro is defined inside the kernel, as you said. There is no closed code, the TASK macro is thare :-)

Btw, what kind of project are you making with Tricore and ERIKA? Just curios :-)

Ciao,

Paolo

Re: What's the meanings of MULTI & MONO in ERIKA!

Posted: Thu Jan 24, 2013 2:59 pm
by findfrienda
haha, Dear Paolo,

I am porting ERIKA to Tricore chip.

But, now, the RT-Druid for tricore (with hightech compiler) is not easy to use. So , I do the ERIKA's configuration manually, modified the eecfg.h & eecfg.c. Recently, I met many challegences:
The souce code can't compile successfully: I wanta to use task, while ERIKA supports TASK macro only when the __OO__BCC1__ or OO_BCC2_ or __OO_ECC1(ECC2)__ is opend. I have to define one of them in the eecfg.h, however then another error occurs.

I really feel a bit worried and tired now! :)

By the way, do you have an IM acount ,such as msn or skype? So I can directly communicate with you.

Thanks!

Re: What's the meanings of MULTI & MONO in ERIKA!

Posted: Fri Jan 25, 2013 9:21 am
by paolo.gai
Hi!

We are able to compile the port released on the web without problems... i do not know what is not working for you. Which Tricore chip are you going to target?

Note that the __OO_**__ macros are the ones used by RT-Druid to select the kerne. You MUST have them! RT-Druid generates them by default.

About the direct IM contact: I will send you a separate e-mail, but I would prefer to keep the discussion on the forum for the benefits of all the other users...

Ciao,

Paolo