Interesting Error on STM32F030K6 with remapped serial

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: barthess, RoccoMarco

User avatar
Giovanni
Site Admin
Posts: 11772
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 500 times
Been thanked: 425 times
Contact:

Re: Interesting Error on STM32F030K6 with remapped serial

Postby Giovanni » Fri Jan 25, 2019 1:10 pm

Try GCC 5.x, I will put a check on the compiler version before next release anyway.

The problem has not been fixed yet, not even in GCC 8.

Giovanni

rew
Posts: 249
Joined: Sat Jul 19, 2014 12:59 pm
Been thanked: 6 times

Re: Interesting Error on STM32F030K6 with remapped serial

Postby rew » Mon Feb 25, 2019 9:03 am

Giovanni wrote:... the compiler bug, ....
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88167


Giovanni wrote: there is no easy way to workaround this.
What about this:

* you take the compiler ASM output, fix it and include it in an "#if GCC_BUG_PRESENT" as an alternative to the better code. Leave the original in the #else...

User avatar
Giovanni
Site Admin
Posts: 11772
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 500 times
Been thanked: 425 times
Contact:

Re: Interesting Error on STM32F030K6 with remapped serial

Postby Giovanni » Mon Feb 25, 2019 11:22 am

I have not found "better code" yet but I will add a warning suppression macro, good idea.

Giovanni


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 1 guest