Page 1 of 1

STMCubeIDE to Arduino IDE

Posted: Tue Apr 28, 2020 5:19 am
by victagayun
Hi,
Just curious and maybe dumb question.
It is possible to use Arduino the project and code generated by STMCubeIDE?

Re: STMCubeIDE to Arduino IDE

Posted: Tue Apr 28, 2020 6:50 am
by stas2z
yes, but partially
with this core

Re: STMCubeIDE to Arduino IDE

Posted: Tue Apr 28, 2020 9:25 am
by victagayun
Tnx for the reply.
Another dumb question tho.
In STM project folder, inside are : Core and Drivers, and more subfolders more inside.
Do you just all all the files in Arduino IDE?
Do the Arduino IDE call 3rd party compiler to compile STM32?

Re: STMCubeIDE to Arduino IDE

Posted: Tue Apr 28, 2020 9:36 am
by stas2z
Core and drivers are already part of that arduino core, as it's HAL based same as CubeMX

But you cant just add cubemx generated files to arduino, you need to transfer only specific functions required for your needs, but its a very complex to explain it just with a few phrases.
Probably its much better for you to explain what exactly you want to do.

Compiler used for HAL based arduino core is the same as cubemx use and its packaged with core too.