8 years ago.

ST mbed 2.0 broken?

Hi.

Tried to compile DISCO_L476VG_GlassLCD in local workarea or online IDE. In both cases I get: mbed compile -t GCC_ARM -m DISCO_L476VG Building project DISCO_L476VG_GlassLCD (DISCO_L476VG, GCC_ARM) Scan: . Scan: mbed Scan: env Compile: stm32l476g_discovery.c [ERROR] In file included from ./BSP_DISCO_L476VG/stm32l476g_discovery.c:40:0: ./BSP_DISCO_L476VG/stm32l476g_discovery.h:56:27: fatal error: stm32l4xx_hal.h: No such file or directory

  1. include "stm32l4xx_hal.h" ^ compilation terminated.

I tried the "fix it" solution with online IDE, but it didn't seem to do any good.

Is the mbed 2.0 broken for ST devices? Similar issue was with STM32_ADC_InternalChannels -project.

Fix seemed to be 1) remove the mbed -library 2) add the https://github.com/ARMmbed/mbed-os

posted by Matti Sillanpää 14 Dec 2016

1 Answer

8 years ago.

mbed-cli (using locally, as you described) requires mbed-os. Therefore if you have the mbed library (assuming mbed 2), it does not work. As you found out.