Search found 8 matches

by lungj
Wed May 23, 2018 5:52 pm
Forum: Bug Reports
Topic: CANFilter struct documentation bug Topic is solved
Replies: 1
Views: 395

CANFilter struct documentation bug Topic is solved

This bug pertains to the documentation of the CANFilter struct. The .filter field states that the field is for the "Number of the filter to be programmed". This is true when .scale is 1 (32-bit filters) and .mode is 1 (mask mode); however, it is false when .scale and/or .mode are/is 0. One...
by lungj
Sat Apr 14, 2018 1:05 am
Forum: Bug Reports
Topic: chSysGetIdleThreadX erratum + Segger SystemView contribution Topic is solved
Replies: 3
Views: 500

Re: chSysGetIdleThreadX erratum + Segger SystemView contribution Topic is solved

Hi Giovanni, By placing the hooks in the context switch hook, SystemView will show you the active thread and the reason for context switch (well, a numeric code anyway). Modifying only the idle hooks produces events in the wrong event sequence for SystemView (at least the only ways I could think of)...
by lungj
Fri Apr 13, 2018 3:52 am
Forum: Bug Reports
Topic: chSysGetIdleThreadX erratum + Segger SystemView contribution Topic is solved
Replies: 3
Views: 500

chSysGetIdleThreadX erratum + Segger SystemView contribution Topic is solved

chSysGetIdleThreadX() does not work as described when called during the context switch hook. My quick skimming of the calling code leads me to believe this is due to the fact that the idle thread is no longer in its usual place as the lowest priority thread on the ready list because it about to bec...
by lungj
Fri Dec 22, 2017 4:44 am
Forum: Small Change Requests
Topic: gcc 7.1 has land Topic is solved
Replies: 9
Views: 1898

Re: gcc 7.1 has land Topic is solved

It seems like the bleeding-edge GCC 7.2 has some issues with the pre-processor and fall-through markers. Here is a patch for the wakeup function in chschd.c that makes it GCC 7.2-friendly: case CH_STATE_SUSPENDED: *tp->u.wttrp = NULL; break; #if CH_CFG_USE_SEMAPHORES == TRUE case CH_STATE_WTSEM: chS...
by lungj
Wed Apr 13, 2016 11:46 pm
Forum: ChibiOS/RT
Topic: ch.rlist initialization with CH_CFG_NO_IDLE_THREAD
Replies: 3
Views: 641

ch.rlist initialization with CH_CFG_NO_IDLE_THREAD

It looks like if CH_CFG_NO_IDLE_THREAD is enabled, the thread ready list's next/prev values are set incorrectly. This causes problems when attempting to sleep: an invalid thread address is selected as the next element by queue_fifo_remove in chSchGoSleepS. Is this behaviour intentional? int main(voi...
by lungj
Mon Mar 21, 2016 6:24 pm
Forum: ChibiOS/RT
Topic: Missing macro definitions/demo fails to build
Replies: 1
Views: 571

Missing macro definitions/demo fails to build

chSequentialStreamRead and chSequentialStreamPut are used in shell.c but are no longer defined anywhere in the trunk. I checked to see if my build system was off by attempting to build the demo RT-STM32F407-DISCOVERY-MEMS, but that also results in ../../../os/various/shell/shell.c: In function 'shel...
by lungj
Sun Mar 20, 2016 10:39 pm
Forum: ChibiOS/RT
Topic: Bug in os/rt/src/chsys.c
Replies: 1
Views: 629

Bug in os/rt/src/chsys.c

There is an extra closing parenthesis on line 131 in r9142. The code does not compile with option CH_CFG_NO_IDLE_THREAD otherwise. currp = _thread_init(&ch.mainthread, "idle", IDLEPRIO)); should read currp = _thread_init(&ch.mainthread, "idle", IDLEPRIO); Cheers, jonathan...
by lungj
Wed Feb 03, 2016 8:52 am
Forum: STM32 Support
Topic: obqFlush calculated size
Replies: 2
Views: 488

obqFlush calculated size

Hi, I'm running a shell over USB on an STM32F072RB Nucleo board using ChibiOS 3 (svn revision 8795) and I'm having some problems with buffering. I'm using chprintf and then calling the obqFlush(output_buffers_queue_t *) function in hal_buffers.c but my output is not as expected: it contains extra ch...

Go to advanced search