Skip to main content
Isaac Fróes
Associate II
December 7, 2020
Question

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.

  • December 7, 2020
  • 1 reply
  • 1154 views

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?

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
December 7, 2020

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 VenmoUp vote any posts that you find helpful, it shows what's working..