2021-10-15 05:11 AM
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)
All 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?
2021-10-15 08:06 AM
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.
2021-10-18 12:38 AM
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.