homeGrown
homeGrown

Reputation: 385

How to compile hal mbed on mbed-cli

I want to compile and run an example on my nucleo board. I am able to compile and flash using the mbed os api. However I have downloaded the STM32Cube_FW_F4_V1.16.0 package and want to run one of those examples. How do I compile this on mbed-cli or do I have to use an ide like MKD_ARM?

Upvotes: 0

Views: 267

Answers (1)

0___________
0___________

Reputation: 68099

you cant compile them on mbed. Mbed uses HAL libraries anyway behind the scenes on STM32 devices but you cant compile those examples on embed.

The easy way:

Install openSTM32 package

Go to import/general/existing projects into workspace

Find the directory containing your example and SW4STM32 (it contains project files for your IDE)

enter image description here

Do not tick copy project into the workspace as it breaks include paths.

Finish and you are done.

Compile, run, enjoy

Upvotes: 2

Related Questions