简体   繁体   中英

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?

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)

在此处输入图片说明

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

Finish and you are done.

Compile, run, enjoy

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM