im using stm34f4 . in my current project i created a thread beside the main thread , in that thread i call a function like this :
Code: Select all
static WORKING_AREA(myThreadWorkingArea, 128);
static msg_t myThread(void *arg) {
int16_t m ;
while (TRUE) {
m_PollData(&m);
}
}m_PollData collects some sensor data from i2c. in this function i called another function like this
Code: Select all
void m_PollData(int16_t *value)
{
int foo();
do_something....
}
when i compile the program , it does't work . but when i copy i of the codes from foo() and paste it to m_PollData and remove the called function it will be good and works fine.
from your sight what shuld be the problem.
thanks in advance
MA