Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years, 4 months ago.
How to exclude the usb directory in the build?
I compiled mbed-bootloader on Mbed os 5.12.4 with an error.
Compile [ 89.1%]: USBAudio.cpp [Fatal Error] OperationListBase.h@22,19: Mutex.h: No such file or directory [ERROR] In file included from ./mbed-os/usb/device/utilities/OperationList.h:21:0, from .\mbed-os\usb\device\USBAudio\USBAudio.h:27, from .\mbed-os\usb\device\USBAudio\USBAudio.cpp:19: ./mbed-os/usb/device/utilities/OperationListBase.h:22:19: fatal error: Mutex.h: No such file or directory
- include "Mutex.h" ^ compilation terminated.
I try add "target.device_has_remove": ["usb"] in mbed_app.json, still the same error.