Hi, I started playing with DaisyExamples/seed/USB_CDC example and my new Seed board and wanted to go into the code and see how the USB handler works. At some point, I wanted to try some stuff out without libDaisy abstractions, similar to how people end up using AVR directly instead of Arduino abstractions (as is my case but I’m not yet familiar with STM32).
Here’s what I got:
- Successfully installed the toolchain on macOS.
- Cloned the repo and built the libraries without issues.
- Navigated to the example folder and
make; make program
the firmware to the board successfully. - Started looking around and learning how the CDC driver works, my IntelliSense in VS Code wasn’t picking up the functions from
usbd_cdc_if.h
, so I included it without thinking and got an error:
../../libDaisy/src/usbd/usbd_cdc_if.h:32:10: fatal error: usbd_cdc.h: No such file or directory
32 | #include "usbd_cdc.h"
| ^~~~~~~~~~~~
I assumed that the header file is included already anyway since the usb_handle
is using it but I don’t understand the source of this error. You can reproduce it by slapping #include "usbd_cdc.h"
anywhere in USB_CDC.cpp
and the thing just won’t compile. usbd_cdc.o
is present in the library build folder after building the lib. Am I missing something obvious?
Thank you.