Hello!
Sorry bringing old threads up, but I'm having the same issue Milan had.
I'm using the KL25 Freedom Board, and tried to use USBSerial along with some IO's.
USBSerial alone works as expected, but when I add some IO's the board hangs, apparently before entering main, because the outputs are set to the default value (0, on object creation) and not to the ones I've set rigth on start of main.
Both mbed and USBDevice libs are updated.
I know I can use an USB to serial adapter, but it looks odd having the (fast) USB peripheral on MCU and using an external one...
Thanks!
Hi all,
I have had this issue for some time and would appreciate someone to explain what the route of the problem could be.
I have a platform based on LPC11u24 running USBSerial library. My PC is able to recognise the COM port and successfully communicate with device however when I define several (let say 20 I/O pins - the aim is to use all unused I/O pins both IN and OUT) DigitalOut or BusOut pins within the code the USB COM port stops working.
Clearly, I/O pins that I am using are not used at all and therefore don't understand how is it possible that they cause the serial port from running successfully? The code looks like this:
example issue code
Can anyone suggest why USBSerial won't work with this many digital pins?
Many thanks
Milan