arm-none-eabi-gcc works from Ubuntu 16.04, but code unstable with 18.04

Discussions and support about ChibiOS/RT, the free embedded RTOS.
choppy
Posts: 2
Joined: Sat Jun 16, 2018 10:20 pm
Been thanked: 1 time

arm-none-eabi-gcc works from Ubuntu 16.04, but code unstable with 18.04

Postby choppy » Sat Jun 16, 2018 10:34 pm

I hope I'm posting this in the correct location. I have been playing with ChibiOS 17.6.x on the Teensy3.2 board for a while and had a working stable setup under Ubuntu 16.04 using the Ubuntu provided gcc-arm-none-eabi package (gcc version 4.9.3 20150529 (prerelease) (15:4.9.3+svn231177-1)). I have recently upgraded my laptop to Ubuntu 18.04 and the same code base is very unstable on the teeny3.2 board and crashes when compiled on the gcc-arm-none-eabi package (gcc version 6.3.1 20170620 (15:6.3.1+svn253039-1build1) ). I'm hoping someone can give me some pointers if this is a GCC bug, or something related to the way the Ubuntu packages are compiled. Maybe the answer is don't use the Ubuntu packages, but if that is the case which compiler should I use?

Thanks for any assistance you can provide.

choppy
Posts: 2
Joined: Sat Jun 16, 2018 10:20 pm
Been thanked: 1 time

Re: arm-none-eabi-gcc works from Ubuntu 16.04, but code unstable with 18.04

Postby choppy » Sun Jun 17, 2018 2:45 am

I'm back to a working setup. I uninstalled the ubuntu 18.04 gcc-arm-none-eabi package and downloaded the build (gcc version 7.2.1 20170904 (release) [ARM/embedded-7-branch revision 255204] (GNU Tools for Arm Embedded Processors 7-2017-q4-major) ) from https://developer.arm.com/open-source/g ... /downloads

Hope this helps someone else.

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

Re: arm-none-eabi-gcc works from Ubuntu 16.04, but code unstable with 18.04

Postby Giovanni » Sun Jun 17, 2018 7:50 am

Hi,

It is better to not use random compilers included in distributions, those are not tested enough. The one you downloaded is maintained by ARM itself, a much better choice.

Giovanni

User avatar
tfAteba
Posts: 547
Joined: Fri Oct 16, 2015 11:03 pm
Location: Strasbourg, France
Has thanked: 91 times
Been thanked: 48 times

Re: arm-none-eabi-gcc works from Ubuntu 16.04, but code unstable with 18.04

Postby tfAteba » Sun Jun 17, 2018 1:34 pm

Hello,

As Giovanni said, it is often the case with the native compiler coming with the distribution. That is why change the distribution only if it is necessary.

I have also experienced this kind of troubles in the past.

Thank you for sharing, that with us.
regards,

Theo.

meatball
Posts: 32
Joined: Thu May 19, 2016 4:39 pm
Has thanked: 9 times
Been thanked: 2 times

Re: arm-none-eabi-gcc works from Ubuntu 16.04, but code unstable with 18.04

Postby meatball » Thu Jun 21, 2018 12:30 am

I'm very glad to find your post. Thanks so much for sharing!

I just bought a Segger J-Link, so I thought I was flashing incorrectly, or maybe debugging with too high of a clock.

My JLink complained that the Thumb mode Tbit of the core was 0 for some reason... then it would automatically set it to 1, soon after an unhandled fault occurred.

Now I feel like I'm off the crazy pills. The compiler you pointed to works great for me too..

Thanks again


Return to “ChibiOS/RT”

Who is online

Users browsing this forum: No registered users and 1 guest