The program only hangs when the cord is connected. If the serial/usb cable is unplugged, I get the following output:
Code:
Attempting to open port...
Port Failed to Open: No such file or directory
Which is what I would expect. dmesg did not provide any insight; while the program was hanging, the most recent messages were all about the cable being connected or disconnected.
last few lines of dmesg output:
Code:
[ 9726.641359] usb 6-2: New USB device found, idVendor=05ad, idProduct=0fba
[ 9726.641372] usb 6-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 9726.641379] usb 6-2: Product: USB-Serial Controller
[ 9726.641386] usb 6-2: Manufacturer: Prolific Technology Inc.
[ 9726.644296] pl2303 6-2:1.0: pl2303 converter detected
[ 9726.656565] usb 6-2: pl2303 converter now attached to ttyUSB0
As for attempting to debug, I get a "no such file or directory" error for the file "syscall-template.S" when attempting to look into the source of the open64 command, which appears to be the function that is hanging.
Code:
Starting program: /home/bj/workspace/VelmexController/Debug/VelmexController
Breakpoint 1, open64 () at ../sysdeps/unix/syscall-template.S:81
81 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) s
S
Breakpoint 1, open64 () at ../sysdeps/unix/syscall-template.S:81
81 in ../sysdeps/unix/syscall-template.S
(gdb) s
Breakpoint 1, open64 () at ../sysdeps/unix/syscall-template.S:81
81 in ../sysdeps/unix/syscall-template.S
I installed the linux source and debug symbols according to the tutorial that you linked, but this did not fix the problem. I am feeling very stuck about how to proceed with debugging this issue so any further insights would be greatly appreciated.
Bookmarks