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.
Post Reply
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

Post by choppy »

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

Post by choppy »

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

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

Post by Giovanni »

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: 551
Joined: Fri Oct 16, 2015 11:03 pm
Has thanked: 91 times
Been thanked: 50 times

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

Post by tfAteba »

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.
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

Post by meatball »

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
Post Reply