6 years, 9 months ago.

USBSerial NUCLEO F401RE

2 questions: 1) How to set driver or descryptor in mc for use with android, because i installed driver in windows from mbed "serial.info" file , i think i can't use this way in android; 2) How to change usb speed mode, because now speed is 1024 byte in 1s, it is very slow, maybe it is "Low-Speed to 1,5 Mbit/s USB 1.0", how change to "Full-Speed to 12 Mbit/s USB 1.1"

I use this code for test: //

  1. include "mbed.h"
  2. include "USBSerial.h"

DigitalOut UserLed(LED1); AnalogIn PIN_A1(PA_0); Timer t; USBSerial serial; void send() { while (1) { t.start(); for (int i = 0; i < 1024;i++) { serial.putc(22); } t.stop(); serial.printf("\nThe time taken was %f seconds\n", t.read()); t.reset();

}

}

int main() { send(); } //

Be the first to answer this question.