Cubemx Sw4stm32 question
Posted: Tue Feb 11, 2020 3:21 am
This may be a bit off subject apart from the use of C++
So I upgraded my system and everything seems to run. But I have a glich today.
I wanted to create a C++ program using CubeMx 5.5.0 and sw4stm32 1.17.0. On OSX 10.15.3 (Catalina) Everything worked until the linker stage.
For some reason there is no *.ld file in the project.
I tried searching online as this is a pretty serious glitch. There are a few hits for older versions that either have no answer or were closed/solved with a version update.
The best I can figure out for a workaround is to create an AC6 project, which will create a linker script. Then one has to smash this into eclipse in the Properties --> .. "settings" where the -T option of the linker is "../" And change it to "../LinkerScript.ld/
I really do not want to create yet another user login (for half dead forums.) So I thought I might ask here. There is a rather nice mechanism for converting the cubeMX project to C++ which then opens up the direct use of the Arduino libraries in an epicurean way.
I have been working on a project written in IAR for the Atmel 32UC3 which is a 32 bit AVR. The code is a bastardized mess of ASF C mixed with C++ with random chunks of pure C. I got this mess to build and even run under studio 7. ASF is really not C++ friendly at all. I have not been much of a C++ user so never noticed that there is an option to convert a STM project in sw4stm32 to C++. Looks like it has been around for a while. There is also a rather nice (but older) set of C++ libraries called Stm32Plus, that has classes for the hd44780 LCD and 83848 PHY.
So I upgraded my system and everything seems to run. But I have a glich today.
I wanted to create a C++ program using CubeMx 5.5.0 and sw4stm32 1.17.0. On OSX 10.15.3 (Catalina) Everything worked until the linker stage.
For some reason there is no *.ld file in the project.
I tried searching online as this is a pretty serious glitch. There are a few hits for older versions that either have no answer or were closed/solved with a version update.
The best I can figure out for a workaround is to create an AC6 project, which will create a linker script. Then one has to smash this into eclipse in the Properties --> .. "settings" where the -T option of the linker is "../" And change it to "../LinkerScript.ld/
I really do not want to create yet another user login (for half dead forums.) So I thought I might ask here. There is a rather nice mechanism for converting the cubeMX project to C++ which then opens up the direct use of the Arduino libraries in an epicurean way.
I have been working on a project written in IAR for the Atmel 32UC3 which is a 32 bit AVR. The code is a bastardized mess of ASF C mixed with C++ with random chunks of pure C. I got this mess to build and even run under studio 7. ASF is really not C++ friendly at all. I have not been much of a C++ user so never noticed that there is an option to convert a STM project in sw4stm32 to C++. Looks like it has been around for a while. There is also a rather nice (but older) set of C++ libraries called Stm32Plus, that has classes for the hd44780 LCD and 83848 PHY.