8 years, 1 month ago.

How can I get mbed to work with ST's CUBE MX?

I ran CUBE MX but it doesn't generate code for mbed. CUBE MX is the ideal way to comprehensively init my MCU at boot time. I mean it's fantastic! But it doesn't seem to support mbed's toolchain.

1 Answer

8 years, 1 month ago.

Hello Doug,
Create an mbed project for your STM target board using the online compiler. Then copy the init file(s) generated by the STM32CubeMX tool into your project (as for instance in this simple example).
Zoltan