|
|
Tim
Joined: 30 Oct 2013
Posts: 247
Location: QLD
|
Hi guys,
When I type
code:
make flash
this is returned
code:
john@john-K55VJ:~/Espressif/source-code-examples/blinky$ make flash
esptool.py --port /dev/ttyUSB0 write_flash 0x00000 firmware/0x00000.bin 0x40000 firmware/0x40000.bin
Traceback (most recent call last):
File "/home/john/Espressif/crosstool-NG/builds/xtensa-lx106-elf/bin/esptool.py", line 407, in <module>
esp = ESPROM(args.port, args.baud)
File "/home/john/Espressif/crosstool-NG/builds/xtensa-lx106-elf/bin/esptool.py", line 60, in __init__
self._port = serial.Serial(port, baud)
File "/usr/lib/python2.7/dist-packages/serial/serialutil.py", line 261, in __init__
self.open()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 278, in open
raise SerialException("could not open port %s: %s" % (self._port, msg))
serial.serialutil.SerialException: could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
make: [flash] Error 1 (ignored)
john@john-K55VJ:~/Espressif/source-code-examples/blinky$
I assumed /dev/ttyUSB0 was the serial adaptor I'm using a http://www.freetronics.com.au/collections/all-products/products/usb-serial-adapter#.VMiAzGOli1E however google tells me dev/ttyUSB0 is a directory, that as above states doesn't exist.
Looking for the device I ran
code:
john@john-K55VJ:~$ find /sys/bus/usb/devices/usb*/ -name dev
/sys/bus/usb/devices/usb1/1-1/dev
/sys/bus/usb/devices/usb1/1-1/1-1.3/dev
/sys/bus/usb/devices/usb1/1-1/1-1.3/1-1.3:1.0/input/input12/event5/dev
/sys/bus/usb/devices/usb1/1-1/1-1.3/1-1.3:1.0/video4linux/video0/dev
/sys/bus/usb/devices/usb1/dev
/sys/bus/usb/devices/usb2/2-1/dev
/sys/bus/usb/devices/usb2/dev
/sys/bus/usb/devices/usb3/dev
/sys/bus/usb/devices/usb4/dev
john@john-K55VJ:~$ find /sys/bus/usb/devices/usb*/ -name dev
/sys/bus/usb/devices/usb1/1-1/dev
/sys/bus/usb/devices/usb1/1-1/1-1.3/dev
/sys/bus/usb/devices/usb1/1-1/1-1.3/1-1.3:1.0/input/input12/event5/dev
/sys/bus/usb/devices/usb1/1-1/1-1.3/1-1.3:1.0/video4linux/video0/dev
/sys/bus/usb/devices/usb1/dev
/sys/bus/usb/devices/usb2/2-1/dev
/sys/bus/usb/devices/usb2/dev
/sys/bus/usb/devices/usb3/3-2/dev
/sys/bus/usb/devices/usb3/3-2/3-2:1.0/tty/ttyACM0/dev
/sys/bus/usb/devices/usb3/dev
/sys/bus/usb/devices/usb4/dev
The first time with the device unplugged then plugging it back in and running the command again. It seems
code:
/sys/bus/usb/devices/usb3/3-2/3-2:1.0/tty/ttyACM0/dev
is the USB Serial Adaptor I would like to be able to use, I had added myself "john" in this case to the Dialout group as per the tutorial a few days ago,
Here is a snipet from the blinky Makefile
code:
# tnx to mamalala
# Changelog
# Changed the variables to include the header file directory
# Added global var for the XTENSA tool root
#
# This make file still needs some work.
#
#
# Output directors to store intermediate compiled files
# relative to the project directory
BUILD_BASE = build
FW_BASE = firmware
# Base directory for the compiler
XTENSA_TOOLS_ROOT ?= /home/john/Espressif/crosstool-NG/builds/xtensa-lx106-elf/bin
# base directory of the ESP8266 SDK package, absolute
SDK_BASE ?= /home/john/Espressif/ESP8266_SDK
#Esptool.py path and port
ESPTOOL ?= esptool.py
ESPPORT ?= /dev/ttyUSB0
# name for the target project
TARGET = app
I modified the first two /opt files as described I take it I need to point the Makefile at my device, under #Esptool.py path and port this is, how it sits currently
code:
ESPPORT ?= /dev/ttyUSB0
I have a feeling that it should it be changed to ( as below)
code:
ESPPORT ?=1.0/tty/ttyACM0/dev
which is what I believe the usb serial adaptor appears as, if anyone has any thoughts/ideas on the matter it would be much appreciated.
Cheers Tim
|
Wed Jan 28, 2015 5:24 pm |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|