5 years, 5 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

  1. include "Mutex.h" ^ compilation terminated.

I try add "target.device_has_remove": ["usb"] in mbed_app.json, still the same error.

Be the first to answer this question.