Code: Select all
int main(void) {
halInit();
chSysInit();
while(1) {
chThdSleepMilliseconds(1000); // This fails if CH_CFG_NO_IDLE_THREAD is TRUE.
}
return 0;
}
Code: Select all
int main(void) {
halInit();
chSysInit();
while(1) {
chThdSleepMilliseconds(1000); // This fails if CH_CFG_NO_IDLE_THREAD is TRUE.
}
return 0;
}
Giovanni wrote:Hi,
When CH_CFG_NO_IDLE_THREAD is enabled then the main() function is the idle thread, you must never try to sleep in there. Doing so causes the problems you are describing.
Giovanni
Users browsing this forum: No registered users and 37 guests