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, 1 month ago.
USB Device support on STM32F429ZI not working with repository code
Hi I have been trying to get USB device code with the mbed-os source from Github to work with my STM32F429ZI and it won't. If I use the mbed.lib and import the "USBDevice" library from the examples it works fine.
However, if I replace mbed.lib with the repository source the code compiles but the binary does not work. I noticed minor changes to the mbed-os source from the example that relate to "non-blocking".
Has anyone from mbed tried to get the latest example here (https://os.mbed.com/docs/mbed-os/v5.14/apis/usbserial.html) to work with repository code? Thanks Bill
#include "mbed.h" #include "USBSerial.h" // Virtual USB Serial port USBSerial usb_serial(1155, 22336); //STM Vendor ID and PID DigitalOut led(LED1); int main(void) { int i = 0; // Print on STDIO printf("USBDevice Serial started\r\n"); while(1) { // Print on Virtual USB Serial port usb_serial.printf("I am a virtual serial port: %d\r\n", i++); led = !led; wait(0.1); } }