cancel
Showing results for 
Search instead for 
Did you mean: 

I'm working with DISCO-L072CZ-LRWAN1 and STM32CubeExpansion_LRWAN_V1.3.1. My code is reading a sensor by SPI and is sending via lora to a gateway and I have no problems with that but when I try to use the STM's USB library the code just break.

Isaac Fróes
Associate II

Those errors start to appear when I add the USB Library:

0693W000006EsMrQAK.pngWhen I excluded from Build:

0693W000006EsKNQA0.png everything is back to normal. Anyone have some advices?

1 REPLY 1

Look to be missing some include files or defines.

Check stm32l0xx_hal_conf.h (or equivalent) about what is being pulled in, then check for other dependencies.

The USB libraries have several components, and include file paths will need to list where some of the .H files are situated.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..