STMCubeIDE to Arduino IDE

Post here first, or if you can't find a relevant section!
Post Reply
victagayun
Posts: 2
Joined: Tue Apr 28, 2020 5:14 am

STMCubeIDE to Arduino IDE

Post by victagayun »

Hi,
Just curious and maybe dumb question.
It is possible to use Arduino the project and code generated by STMCubeIDE?
stas2z
Posts: 131
Joined: Mon Feb 24, 2020 8:17 pm
Answers: 8

Re: STMCubeIDE to Arduino IDE

Post by stas2z »

yes, but partially
with this core
victagayun
Posts: 2
Joined: Tue Apr 28, 2020 5:14 am

Re: STMCubeIDE to Arduino IDE

Post 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?
stas2z
Posts: 131
Joined: Mon Feb 24, 2020 8:17 pm
Answers: 8

Re: STMCubeIDE to Arduino IDE

Post 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.
Post Reply

Return to “General discussion”