Closed
Description
Because of a blocking connect function in USBDevice ( https://github.com/mbedmicro/mbed/blob/master/libraries/USBDevice/USBDevice/USBDevice.cpp#L711 ) called from the USBCDC constructor ( https://github.com/mbedmicro/mbed/blob/master/libraries/USBDevice/USBSerial/USBCDC.cpp#L34 ), instatiating USB Serial with nothing connected on the actual port blocks execution.
I tried just commenting the while loop out and everything seems to run fine (connect/disconnect and CDC/serial communication with a host computer.
Maybe this should be solved in a different way - but especially when running on battery on KL25Z, this is a problem (the blocking).