cancel
Showing results for 
Search instead for 
Did you mean: 

how to use stm32's HAL to create Arduino based libraries. ST32duino (C++)

Javier1
Principal

Hello everyone.

Any tips/pointers about where to look for info about how to write an arduino library using stm32's hal?

Im a bit confused/scared about mixing c++ and c. (also scared of arduino underthehood non chip specific configs)

 0693W00000FCe8bQAD.pngAll stm32 related libraries i see are just .h/.c FILES, is there any speciall precaution or raindance i need to do in order to add C written library to my arduino project?

Could i get away with just copypasting together some cubeMX autogenerated init code and including the required hal.h stuff?

we dont need to firmware by ourselves, lets talk
2 REPLIES 2
Amel NASRI
ST Employee

Hi @Javier Muñoz​ ,

There is an article How to get started with STM32duino: An example using STM32 Nucleo board + ST MEMS shield?

It has no relation with STM32CubeMX.

Does it answer your request?

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hi @Amel NASRI​ , thanks for the article.

My question wasnt exactly about how to get started, it was more in the line of how to use stm32's HAL to create Arduino based libraries.

I would be interested in some cookbook or examples someone could have.

we dont need to firmware by ourselves, lets talk