Interesting Error on STM32F030K6 with remapped serial

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

Moderator: RoccoMarco

User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Interesting Error on STM32F030K6 with remapped serial

Post by Giovanni »

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: 383
Joined: Sat Jul 19, 2014 12:59 pm
Has thanked: 2 times
Been thanked: 14 times

Re: Interesting Error on STM32F030K6 with remapped serial

Post by rew »

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: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Interesting Error on STM32F030K6 with remapped serial

Post by Giovanni »

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

Giovanni
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Interesting Error on STM32F030K6 with remapped serial

Post by Giovanni »

Apparently the problem has been fixed in repository: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88167

Giovanni
electronic_eel
Posts: 95
Joined: Sat Mar 19, 2016 8:07 pm
Has thanked: 8 times
Been thanked: 23 times

Re: Interesting Error on STM32F030K6 with remapped serial

Post by electronic_eel »

Unfortunately the other problem related to __builtin_return_address is still open and unfixed:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88656

So for the time being you still can't use a recent gcc for ChibiOS on Cortex-M0 / Cortex-M0+.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Interesting Error on STM32F030K6 with remapped serial

Post by Giovanni »

I think it is a duplicate, it is the same error. Next releases should be fine and I will modify the check in the code.

Giovanni
Post Reply