Search found 36 matches

by apmorton
Thu Feb 08, 2018 9:36 pm
Forum: Small Change Requests
Topic: gcc 7.1 has land Topic is solved
Replies: 9
Views: 2192

Re: gcc 7.1 has land Topic is solved

quick proof of concept patch for stable_17.6.x branch. I defined CC_FALLTHROUGH in ch.h for lack of a better place to put it diff --git a/demos/AVR/RT-ARDUINOLEONARDO/usbcfg.c b/demos/AVR/RT-ARDUINOLEONARDO/usbcfg.c index 3cb7b767e..cd45b0196 100644 --- a/demos/AVR/RT-ARDUINOLEONARDO/usbcfg.c +++ b/...
by apmorton
Thu Feb 08, 2018 8:06 pm
Forum: Small Change Requests
Topic: gcc 7.1 has land Topic is solved
Replies: 9
Views: 2192

Re: gcc 7.1 has land Topic is solved

Hi, I am running into more of these fallthrough warnings on GCC 7.2. I think it may be best to use the attributes to fix these for good. In ChibiOS 17.1 this doesn't exist, but it looks like on trunk you have a file "ccportab.h" which could easily hide this in a compiler agnostic way. #def...
by apmorton
Fri Jan 12, 2018 11:09 am
Forum: Safer C
Topic: [DISCUSSION] Rationale for yet another C variant
Replies: 19
Views: 6829

Re: [DISCUSSION] Rationale for yet another C variant

I agree with Korken, much of what you are wanting exists in C++. Now, many of the things you want to explicitly _remove_ from the language do still exist in C++, but generally I think you will have a harder time building a language from scratch that would end up being largely incompatible with exist...
by apmorton
Tue Oct 17, 2017 9:51 pm
Forum: Bug Reports
Topic: USB_USE_WAIT, TxFIFO Errata and STM32_USB_OTGFIFO_FILL_BASEPRI Topic is solved
Replies: 6
Views: 1386

Re: USB_USE_WAIT, TxFIFO Errata and STM32_USB_OTGFIFO_FILL_BASEPRI Topic is solved

Hi Giovanni, First, I wanted to start by thanking you for your hard work on this project - it is truly the best RTOS available for STM32. Many thanks :D The driver in its current state prevents interrupts on the OTG core being filled from firing, which does generally prevent the majority of register...
by apmorton
Mon Oct 16, 2017 11:39 pm
Forum: Bug Reports
Topic: USB_USE_WAIT, TxFIFO Errata and STM32_USB_OTGFIFO_FILL_BASEPRI Topic is solved
Replies: 6
Views: 1386

USB_USE_WAIT, TxFIFO Errata and STM32_USB_OTGFIFO_FILL_BASEPRI Topic is solved

Hello All, I have been facing a pretty obscure issue recently that has been absolutely impossible to find documentation or solutions on - figured I would post my findings here in case anyone else runs into this issue. The company I work for recently reached out to STM directly and their engineers co...
by apmorton
Fri Sep 29, 2017 11:08 am
Forum: ChibiOS/RT
Topic: Use linker to relocate const PALConfig pal_default_config to RAM
Replies: 4
Views: 962

Re: Use linker to relocate const PALConfig pal_default_config to RAM

A dirty trick I have used to accomplish a similar goal is to skip initialization of pal_default_config entirely. GCC will then drop it into the BSS segment even though it is defined as const - although note this may be on the edge of defined behavior, and may be subject to certain compiler optimizat...

Go to advanced search