Hi,all
I am trying to set up Jtag environment for esp32 debug,but when I set up gdb environment the minicom can't connect serial port,always getting error message:"minicom: cannot open /dev/ttyUSB0: No such file or directory".
Is there someting wrong for my operation , your help will be much appreciated,thanks~
minicom can't connect serial port (UART)?
-
- Posts: 95
- Joined: Tue Feb 21, 2017 10:17 pm
Re: minicom can't connect serial port (UART)?
That's because the USB TTY isn't getting generated by Linux/*BSD for you.roctwo wrote:Hi,all
I am trying to set up Jtag environment for esp32 debug,but when I set up gdb environment the minicom can't connect serial port,always getting error message:"minicom: cannot open /dev/ttyUSB0: No such file or directory".
Is there someting wrong for my operation , your help will be much appreciated,thanks~
There's a handful of possibilities for this- but without a bit more info, I don't think anyone could get more than that first sentence for you there.
First things first, we need a bit more info from you to be able to tell you more.
- Which distribution are you using?
- Which board are you using? (USB Serial does differ on some of the boards...)
- How are you hooking up the ESP32 module/devboard to your Linux/*BSD system?
That's a start for help. We can go from there as we help sort out the issue for you.
-
- Posts: 95
- Joined: Tue Feb 21, 2017 10:17 pm
Re: minicom can't connect serial port (UART)?
Oh, and forum mods? Can we move this post? It doesn't belong in "News"...
Re: minicom can't connect serial port (UART)?
Thank you for your reminding , I am sorry for my carelessness,the detail info as below:
Hardware Information:ESP-WROVER-KIT that integrates a USB debugger,I use the USB interface connect to PC;
Enviroment : Need to install OpenOCD to a Linux system to do ESP32 JTAG debugging;
My reference document is jtag_debugging_for_esp32_cn,http://espressif.com/zh-hans/products/h ... /resources
when I set up environmnet for gdb,always getting error message:"minicom: cannot open /dev/ttyUSB0: No such file or directory",I think maybe the ESP-WROVER-KIT don't be identified on Linux system?
For move the post,of cource you can,pls help it ,thanks~
Hardware Information:ESP-WROVER-KIT that integrates a USB debugger,I use the USB interface connect to PC;
Enviroment : Need to install OpenOCD to a Linux system to do ESP32 JTAG debugging;
My reference document is jtag_debugging_for_esp32_cn,http://espressif.com/zh-hans/products/h ... /resources
when I set up environmnet for gdb,always getting error message:"minicom: cannot open /dev/ttyUSB0: No such file or directory",I think maybe the ESP-WROVER-KIT don't be identified on Linux system?
For move the post,of cource you can,pls help it ,thanks~
-
- Posts: 9761
- Joined: Thu Nov 26, 2015 4:08 am
Re: minicom can't connect serial port (UART)?
That devkit uses /dev/ttyUSB1 as the serial port; ttyUSB0 is reserved for JTAG. Can you see if it still does not work if you use /dev/ttyUSB1 instead? If it doesn't, can you copy-paste the output of 'ls /dev/ttyUSB*' here?
Re: minicom can't connect serial port (UART)?
Hi,dear
Thanks for your suggesting,I am trying to use /dev/ttyUSB1 instead,still getting the wrong message "minicom: cannot open /dev/ttyUSB1: No such file or directory";
And I use the output of "ls /dev/ttyUSB*",getting the message"cannot access '/dev/ttyUSB*': No such file or directory";
I think maybe the Linux system(Ubuntu 16.10 ) don't identify the USB serial port(COM) which connect the ESP-WROVER-KIT to PC,so why the ESP-WROVER-KIT USB serial port(COM) can not be identify in the Ubuntu,is there something wrong for my procedure?
Your help will be very appreciated,Thanks!
Thanks for your suggesting,I am trying to use /dev/ttyUSB1 instead,still getting the wrong message "minicom: cannot open /dev/ttyUSB1: No such file or directory";
And I use the output of "ls /dev/ttyUSB*",getting the message"cannot access '/dev/ttyUSB*': No such file or directory";
I think maybe the Linux system(Ubuntu 16.10 ) don't identify the USB serial port(COM) which connect the ESP-WROVER-KIT to PC,so why the ESP-WROVER-KIT USB serial port(COM) can not be identify in the Ubuntu,is there something wrong for my procedure?
Your help will be very appreciated,Thanks!
-
- Posts: 9761
- Joined: Thu Nov 26, 2015 4:08 am
Re: minicom can't connect serial port (UART)?
Looks like it. Some quick checks:
- Do any of the LEDs (especially D7) light up when you have the thing connected?
- On JP7, do you have a jumper on the two pins closest to the USB connector?
- Is the little switch near the barrel connector in the 'on' position?
Also, can you give me the output of the 'lsusb' command?
- Do any of the LEDs (especially D7) light up when you have the thing connected?
- On JP7, do you have a jumper on the two pins closest to the USB connector?
- Is the little switch near the barrel connector in the 'on' position?
Also, can you give me the output of the 'lsusb' command?
Re: minicom can't connect serial port (UART)?
Hi,dear
Very appreciated your proposal,this problem be resolved this morning,thanks very much~
Very appreciated your proposal,this problem be resolved this morning,thanks very much~
-
- Posts: 11
- Joined: Mon Nov 13, 2017 1:28 pm
Re: minicom can't connect serial port (UART)?
Hello,
I have just bought the ESP32 Wrover Kit and try to compile the first example (hello_world).
I am having quite the same issue, I have configured the serial port through make menuconfig config to /dev/ttyUSB1
Then when doing command make flash (it is quite long, more than 10 min by the way...) I get the failure:
File "C:/msys32/mingw32/lib/python2.7/site-packages/serial/serialwin32.py", line 62, in open
raise SerialException("could not open port {!r}: {!r}".format(self.portstr, ctypes.WinError()))
serial.serialutil.SerialException: could not open port 'C:/msys32/dev/ttyUSB1': WindowsError(2, 'Das System kann die angegebene Datei nicht finden.')
make: *** [/home/Illy/esp-idf/components/esptool_py/Makefile.projbuild:55: flash] Fehler 1
The D7 is red, jumper right set the switch as well. When checking serial port with Putty, I have PORT4 and 5 for the device. Port 5 is displaying dbg, port4 nothing.
With lsusb I get -bash: command not found
Have you any idea what step I can't take now? In the doc I didn't find any advice for that issue.
Thanks,
illy
I have just bought the ESP32 Wrover Kit and try to compile the first example (hello_world).
I am having quite the same issue, I have configured the serial port through make menuconfig config to /dev/ttyUSB1
Then when doing command make flash (it is quite long, more than 10 min by the way...) I get the failure:
File "C:/msys32/mingw32/lib/python2.7/site-packages/serial/serialwin32.py", line 62, in open
raise SerialException("could not open port {!r}: {!r}".format(self.portstr, ctypes.WinError()))
serial.serialutil.SerialException: could not open port 'C:/msys32/dev/ttyUSB1': WindowsError(2, 'Das System kann die angegebene Datei nicht finden.')
make: *** [/home/Illy/esp-idf/components/esptool_py/Makefile.projbuild:55: flash] Fehler 1
The D7 is red, jumper right set the switch as well. When checking serial port with Putty, I have PORT4 and 5 for the device. Port 5 is displaying dbg, port4 nothing.
With lsusb I get -bash: command not found
Have you any idea what step I can't take now? In the doc I didn't find any advice for that issue.
Thanks,
illy
Who is online
Users browsing this forum: Bing [Bot], MSN [Bot] and 94 guests