Search found 4 matches
- Fri Jun 13, 2014 4:59 am
- Forum: LPC Support
- Topic: LPC1752 Keil - Stuck at _idle_thread
- Replies: 4
- Views: 7278
[closed] Re: LPC1752 Keil - Stuck at _idle_thread
Hi Giovanni, Manage to solve it. The thread stuck at _idle_thread() because the main() thread is never going to READY state, due to chEvtWaitOne() waiting at the wrong signal static void wait_until_powered_on(void) { struct EventListener el; chEvtInit(&ge_mfb_event); chEvtRegister(&ge_mfb_ev...
- Fri Jun 13, 2014 4:32 am
- Forum: General Support
- Topic: Is chEvtBroadcastFlagsI() correct ?
- Replies: 1
- Views: 1774
Is chEvtBroadcastFlagsI() correct ?
Hello, I'm using ChibiOS 2.6.4. I found something that looks like a bug in chEvtBroadcastFlagsI(): void chEvtBroadcastFlagsI(EventSource *esp, flagsmask_t flags) { EventListener *elp; chDbgCheckClassI(); chDbgCheck(esp != NULL, "chEvtBroadcastMaskI"); elp = esp->es_next; while (elp != (Eve...
- Fri Jun 13, 2014 2:54 am
- Forum: LPC Support
- Topic: LPC1752 Keil - Stuck at _idle_thread
- Replies: 4
- Views: 7278
Re: LPC1752 Keil - Stuck at _idle_thread
Thanks Giovanni. I'm using ChibiOS 2.6.4 under uVision 4 (with microlib for memcpy, strlen, sprintf, etc). I'm using the included startup file. Here's the cstartup.s looks like in my implementation: /* ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010, 2011,2012,2013 Giovanni Di Sirio. This file i...
- Thu Jun 12, 2014 11:16 am
- Forum: LPC Support
- Topic: LPC1752 Keil - Stuck at _idle_thread
- Replies: 4
- Views: 7278
LPC1752 Keil - Stuck at _idle_thread
Hello, I'm beginner in ChibiOS, and I want to use it for my project. Currently my problem is that the ChibiOS stuck at _idle_thread(). It's not hang or hardfault, it just that it won't switch back to main() thread. I've configured the ChibiOS as cooperative scheduling RTOS. The SysTickVector is work...