Skip to main content
koster
Associate II
October 20, 2023
Question

STM32IDE Toolchain using 2 Compiler in one Project

  • October 20, 2023
  • 1 reply
  • 824 views

I would like to use 2 Compiler in one project, the old compiler for the bootloader, where addresses should not change for application and the other for the application to use a newer version.

First I tried to select either or from the C/C++ Build -> settings -> MCU Toolchain -> Fixed where I can select GNU Tools for STM32... or my own installed GNU, which I added in the Toolchain Manager.

But the IDE always uses the compiler which folder is listed first in PATH.

Final target is to select the compiler based on folders.

is there a possiblity?

This topic has been closed for replies.

1 reply

Semer CHERNI
ST Employee
October 27, 2023

Hello @koster 

First let me thank you for posting.
To be able to use two different toolchains for the same project, you need to set a different toolchain for each debug configuration.

BR,

Semer.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.