A buddy and I are trying to setup platformio to work on some other projects, we are using the m.bed framework and a Nucleo F446RE microcontroller for a project we are working on. As a test, all we did was create a code to turn on an LED on the board. Our code is just:
#include <mbed.h>
AnalogOut LEDOUT (PA_4);
int main() {
LEDOUT = 1;
}
The code uploads and works on my friend’s Mac, and the LED on the board turns on. When trying to upload the same code on a Windows laptop, we get the following error:
Error: libusb_open() failed with LIBUSB_ERROR_NOT_FOUND
Error: open failed
in procedure ‘program’
** OpenOCD init failed **
shutdown command invoked
*** [upload] Error 1
We think this is a simple error to get around, but we’ve been hunting for an answer for a while now and haven’t found a solid solution.