4 years, 6 months ago.

Using STM32Cube or SPD beside mbed

Hello all,

I was thinking, how can I use STM32Cube or Standard peripheral library beside/inside my mbed codes?

I mean, I might want to use a library which has not been yet ported to mbed, and I want to use only STM32Cube, or SPD.

Any ideas?

2 Answers

2 years, 11 months ago.

hi, just for completeness, beware of re-entrency when using other libraries at the same time, in parallel, while mbed is nicely thread safe, but not any additional reg access you might add.

4 years, 6 months ago.

Current mbed is built on STM32Cube HAL drivers, so yes, you can use those calls & macros by way of including the mbed or mbed-src libraries.

It doesn't take much effort to take the examples released by ST and have them compile under mbed.