Open
Description
I started some tests with the serial USB (OTG) on the STM32u575 to get a virtual com port on a Windows PC.
After fixing some issues with the clock config file (because it was never used and tested before), I have the following situation:
In main.cpp I include the driver:
#include "USBSerial.h"
USBSerial serial;
And I always get:
/home/sam/git/hmipanel/source/main.cpp:10:10: fatal error: USBSerial.h: No such file or directory
In the custom targets file I use:
"device_has_add": [
"USBDEVICE"
],
I'm not sure if I have to add also something in the "components" section?
Is this anywhere described?
I also tried to add this in the mbed_app.json:
“requires”: [
“bare-metal”,
“drivers-usb”,
“events”
]
But in that case I get:
CMake Error at mbed-os/tools/cmake/mbed_generate_configuration.cmake:123 (message):
mbedtools configure failed! Cannot build this project. Command was
/home/sam/git/hmipanel/mbed-os/venv/bin/python3.10 -c import
mbed_tools.cli.main; exit(mbed_tools.cli.main.cli()) -v configure -t
GCC_ARM -m HMC20 --mbed-os-path
/home/sam/git/hmipanel/mbed-os/tools/cmake/../.. --output-dir
/home/sam/git/hmipanel/build/develop --program-path /home/sam/git/hmipanel
Call Stack (most recent call first):
mbed-os/tools/cmake/app.cmake:24 (include)
CMakeLists.txt:8 (include)
Metadata
Metadata
Assignees
Labels
No labels