Page 1 of 1

When reset, windows usb serial driver unloads

PostPosted: Fri Feb 14, 2014 1:10 pm
by gbeardall
On Windows, when I reset the dipcortex the usb serial driver unloads causing my initial debug printfs to be lost until the driver reloads.
Is there anyway on the dipcortex to detect when the usb serial driver has reloaded so I can wait before outputting my printfs?
Or, is there a way to prevent the driver from unloading?
Thanks

Re: When reset, windows usb serial driver unloads

PostPosted: Fri Feb 14, 2014 7:48 pm
by Carl-SolderSplash
Perhaps the best way is to write the code to wait for a character before it begins executing so that you don't miss any of your printf statements.

you can do that by using getc() function with mbed.

like this : pc.getc();

Or alternatively using the serial uart peripheral (Bypassing the on chip USB) with an external serial to USB adapter, FTDI make a lot of these.