[SOLVED] Maybe a bug in 1.8.10 and Roger's core

Development environment specific, Arduino, Eclipse, VS2013,Em::Blocks etc
Post Reply
User avatar
zoomx
Posts: 45
Joined: Tue Mar 05, 2019 8:10 am
Location: Mt Etna - Italy
OS: Windows 7 & 10
IDE: 1.8.8
Core: Roger & STM official
Board: Bluepill, Maple mini

[SOLVED] Maybe a bug in 1.8.10 and Roger's core

Post by zoomx » Wed Sep 18, 2019 8:51 am

Maybe I found a bug.

If I get the dataLogger example of sdFat library it compiles in 1.8.9 but not in 1.8.10

I get this error

Code: Select all

D:\IDE\arduino-1.8.10\portable\sketchbook\Hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/gpio.h:489:15: error: duplicate 'inline'
 static inline __always_inline void afio_exti_select(exti_num exti, exti_cfg port) {
               ^~~~~~~~~~~~~~~
D:\IDE\arduino-1.8.10\portable\sketchbook\Hardware\Arduino_STM32\STM32F1\system/libmaple/include/libmaple/nvic.h:112:15: error: duplicate 'inline'
 static inline __always_inline void nvic_globalirq_enable() {
               ^~~~~~~~~~~~~~~
D:\IDE\arduino-1.8.10\portable\sketchbook\Hardware\Arduino_STM32\STM32F1\system/libmaple/include/libmaple/nvic.h:119:15: error: duplicate 'inline'
 static inline __always_inline void nvic_globalirq_disable() {
               ^~~~~~~~~~~~~~~
D:\IDE\arduino-1.8.10\portable\sketchbook\Hardware\Arduino_STM32\STM32F1\cores\maple/ext_interrupts.h:109:15: error: duplicate 'inline'
 static inline __always_inline void interrupts() {
               ^~~~~~~~~~~~~~~
D:\IDE\arduino-1.8.10\portable\sketchbook\Hardware\Arduino_STM32\STM32F1\cores\maple/ext_interrupts.h:123:15: error: duplicate 'inline'
 static inline __always_inline void noInterrupts() {
               ^~~~~~~~~~~~~~~
D:\IDE\arduino-1.8.10\portable\sketchbook\Hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/spi.h:78:15: error: duplicate 'inline'
 static inline __always_inline void spi_gpio_cfg(uint8 as_master,
               ^~~~~~~~~~~~~~~
If I select a UNO instead I don't get any error.

I am using Roger's core Arduino_STM32-1.0.0 downloaded this year on March 28.

Edit: it seems I need to use a newer core when this fix will be merged
https://github.com/rogerclarkmelbourne/ ... 2/pull/677

User avatar
Vassilis
Posts: 158
Joined: Wed Feb 27, 2019 5:09 pm
Answers: 2
Location: Thessaloniki, Greece
OS: Linux, Win10, MacOS
IDE: Arduino 1.8.9
Core: Roger, STM official
Board: Bluepill, Maple mini, STM32F4xx
Contact:

Re: Maybe a bug in 1.8.10 and Roger's core

Post by Vassilis » Wed Sep 18, 2019 2:22 pm

Arduino 1.8.10 + latest Roger's Core compiles the dataLogger example without error
(https://github.com/greiman/SdFat)
-Vassilis Serasidis

stevestrong
Posts: 63
Joined: Tue Mar 05, 2019 7:49 am
Location: Munich
OS: Win7 & 10
IDE: Arduino 1.8.8, Sloeber
Core: Libmaple
Board: Bluepill, Generic F4VET6 black & mini
Contact:

Re: Maybe a bug in 1.8.10 and Roger's core

Post by stevestrong » Thu Sep 19, 2019 7:56 am

I realized that different compiler versions generate a warning or an error or no message.
I have committed https://github.com/rogerclarkmelbourne/ ... 2/pull/677 so this issue should be solved for all compiler versions.

User avatar
zoomx
Posts: 45
Joined: Tue Mar 05, 2019 8:10 am
Location: Mt Etna - Italy
OS: Windows 7 & 10
IDE: 1.8.8
Core: Roger & STM official
Board: Bluepill, Maple mini

Re: Maybe a bug in 1.8.10 and Roger's core

Post by zoomx » Thu Sep 19, 2019 9:52 am

I believe that the fixing was merged just two days ago!
fix: remove warninig __always_inline not always possible 2 days ago

Edit: I have just read stevestrong, so it is confirmed.

Post Reply