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: 11860
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 524 times
Been thanked: 437 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: 253
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: 11860
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 524 times
Been thanked: 437 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

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

Re: Interesting Error on STM32F030K6 with remapped serial

Postby Giovanni » Mon May 20, 2019 1:47 pm

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

Giovanni

electronic_eel
Posts: 37
Joined: Sat Mar 19, 2016 8:07 pm
Been thanked: 6 times

Re: Interesting Error on STM32F030K6 with remapped serial

Postby electronic_eel » Mon May 20, 2019 7:00 pm

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: 11860
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 524 times
Been thanked: 437 times
Contact:

Re: Interesting Error on STM32F030K6 with remapped serial

Postby Giovanni » Mon May 20, 2019 7:12 pm

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


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 3 guests