Skip to main content
Associate II
September 20, 2024
Solved

SPC5 Studio with a different compiler

  • September 20, 2024
  • 1 reply
  • 1407 views

Hello, 

 

I currently have SPC560P chip which I am able to program using SPC5 Studio and Debug using SPC5-UDESTK. The compiler that I have currently selected is "FreeGCC with VLE Support" by going to the Application Configuration -> SPC560Pxx Platform Component RLA -> Build Settings.

I see the other options in the dropdown of Compiler Variant such as Hightech and GreenHills. 

The issue that I am currently facing is that I am modifying only a part of the existing code and I need to use another compiler when merging with the old code. So I was wondering if I can change the compiler to "mwcceppc" from "FreeGCC with VLE Support"  in SPC5 Studio ? If Yes, how ? 

I have added the path to "mwcceppc" in the SPC5 Studio -> Windows -> Preferences -> C/C++ -> Build -> Environment. And also the same in Project Properties. But I believe the settings in Configuration.xml will override these settings ?

Let me know if this is a possibility or not.

Best answer by Erwan YVIN

Hello ,

yes , it is possible to use CDT in Makefile mode (not Makefile generated) in order to add to your own compiler.

Maybe , you need to create your C project (CDT) and import the configuration in your CDT Project.

                  Best Regards

                                 Erwan

1 reply

Erwan YVIN
Erwan YVINBest answer
ST Employee
September 24, 2024

Hello ,

yes , it is possible to use CDT in Makefile mode (not Makefile generated) in order to add to your own compiler.

Maybe , you need to create your C project (CDT) and import the configuration in your CDT Project.

                  Best Regards

                                 Erwan

asnAuthor
Associate II
September 24, 2024

Correct me if I am wrong, In the case suggested by you, I will import my existing project and use my own Makefile and this will be a standalone project in SPC5 Studio. I will not be able to use PinMap Editor or Configuration.xml file correct as it is not a SPC5 C/C++ Application ?