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.
arm-none-eabi-gcc works from Ubuntu 16.04, but code unstable with 18.04
Re: arm-none-eabi-gcc works from Ubuntu 16.04, but code unstable with 18.04
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.
Hope this helps someone else.
- Giovanni
- Site Admin
- Posts: 14457
- 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
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
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
- 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
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.
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.
Theo.
Re: arm-none-eabi-gcc works from Ubuntu 16.04, but code unstable with 18.04
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
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
Who is online
Users browsing this forum: No registered users and 25 guests