Saturday, April 21st 2018, 1:17pm UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

v01d

Beginner

Date of registration: Feb 29th 2016

Posts: 105

1

Wednesday, December 6th 2017, 8:12am

[SOLVED] Using alternative GCC/binutils with SES

Is it possible to plugin/ configure SES to use alternative GCC/BINUTILS than one it comes with? Say if SES lags, and I want to use later builds by GNU ARM, or from another project all together.

(Something you could do with Eclipse + GNU ARM Eclipse plugin, you can configure many GNU GCC cross compilers, toolchain locations)

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 938

2

Wednesday, December 6th 2017, 10:04am

Hello,

Thank you for your inquiry.
Yes this is possible. Either when using the project wizard you will be asked in the setup to set your external toolchain path.
Or if you already have a project set up with an external build config then go to Project-> Edit Options...->Choose External GNU configuration->Build->Tool Chain Directory
There you can change the path and other settings.

Best regards,
Nino
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purposes is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/


markuskrug

Beginner

Date of registration: Oct 19th 2016

Posts: 17

3

Wednesday, January 3rd 2018, 8:35am

Hi,

I tested the proposal and it looks to me it is not so easy to change the compiler version at least for the following reasons:
  • the naming in the official ARM GCC distribution is different from the one that is set in SES. In SES the compiler is called by cc1. In the official distribution it is something like arm-none-eabi-gcc or arm-none-eabi-gcc-x.y.z where xyz is the version number
  • I'm not an expert, but I assume it is not suffcient to change just the compiler binary. I guess some changes in the lib settings are also necessary

I tried to change to gcc 7.2.1 however I failed. I will be happy if someone can post a 'howto' for changing the compiler version in SES.

Best Regards
Markus

v01d

Beginner

Date of registration: Feb 29th 2016

Posts: 105

4

Friday, February 9th 2018, 9:03am

Oh wow :whistling: ... Looks like they not using GCC front end, Segger has it's own. (Is this unfortunate, or ?)

Quoted

In SES the compiler is called by cc1
markuskrug, that's the backend ..

U dunno, I would be feeling better if it would be possible to use GCC front end, but .. I''ll see what they reply.


Edit:

So I gave it a quick try building external and note:
1) Tool Chain Directory was the only thing I had to change. Note, I tried GNU ARM v 6, and v7 latest . On sample project Hello only.
2) Unlike the internal (pre-installed) toolchain path - $(StudioDir)/gcc/$(GCCTarget)/bin - your external can point to the GCC bin folder, and the external build configuration
comes with pre-configured "External Build", which is all specified in GCC/G++ commands, so
Alleluah Jeses thank ya, :) .
I'm starting to feel warmer

This post has been edited 1 times, last edit by "v01d" (Feb 9th 2018, 9:48am)


SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 938

5

Tuesday, February 13th 2018, 11:05am

Hello Markus,

We created a Wiki article explaining how to use an external toolchain like ARMGCC: https://wiki.segger.com/How_to_use_an_ex…Embedded_Studio

Does the setup work for you when following the steps?

Best regards,
Nino
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purposes is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/