6 years, 3 months ago.

How to import MBed project into STM32CubeIDE?

Hi, I have exported my MBed project using System Workbench toolchain. However, it cannot be imported in to STM32Cube IDE. Is it possible to do so? If yes, how do I do it?

1 Answer

6 years, 3 months ago.

You want to import the mbed-src library, as in any other case you will get a precompiled library during the export phase. However this precompiled library can be compiled the use of alternatives conflicting with those utilized by System Workbench for STM32. This is specifically genuine for floating factor, as there may be 3 ways to generate floating point operations, and two incompatible ABIs on ARM:

the smooth ABI, where the compiler uses no FPU operation or sign in the softfp ABI, wherein the compiler generates FPU instructions however pass floating factor parameters in fashionable reason registers the hardfp ABI wherein the compiler not simplest uses FPU commands but also skip floating point parameters in FPU registers The smooth and softfp ABIs are compatible and might interoperate at the equal MCU (furnished it has an FPU or they are emulated via the unlawful coaching exception handler); but the hardfp ABI is incompatible with the opposite ABI. By default System Workbench for STM32 will use the hardfb ABI because it is a lot extra green than the softfp (the overhead of shifting parameters from FPU registers to GP registers or reminiscence is frequently several times better than the time wanted for the computation itself...). ref: https://usawriters.org

Thanks for the effort on that answer - but it is VERY confusing and pretty opaque! Wish you could redo it in a little more concise and readable format. TIA!

posted by Alan Reinhart 15 Aug 2019