The application uses serial communication over USB and works fine when the PC boots from HDD.
I have created a liveUSB image (.iso) of the working OS. Booted the same PC from USB drive which contains the .iso image.
Now, the DUT is connected and the application is run, which reports that there is Garbage on the Line most of the times. However, it does work on some attempts, it is very inconsistent.
I couldn't understand how does a boot from a Live USB is different from a HDD boot.
FYI, PC has Fedora Core 22 with 4.0.4 Linux kernel.
Serial communication: baudrate is 115200 with 1 stop bit.
Any help is much appreciated.
Thanks,
Shahab
Edit
I have checked dmesg
and found a difference,
cdc_acm : failed to set dtr/rts
on Live USB boot. It is not seen in the other case. Similar to this question on stackoverflow.
Another observation, the serial communication works fine when the device is connected and PC boots from the Live USB stick. If the USB cable to the device is unplugged and plugged in again, it reports the issue.