I'm having some trouble setting up my new ESP32-WROOM32 and building the basic hello_world example !
When I run make flash I get this error :
Code: Select all
LD build/hello-world.elf
esptool.py v2.3.1
Flashing binaries to serial port /dev/ttys002 (app at offset 0x10000)...
esptool.py v2.3.1
Connecting...
Traceback (most recent call last):
File "/Users/mb/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 2637, in <module>
_main()
File "/Users/mb/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 2630, in _main
main()
File "/Users/mb/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 2356, in main
esp.connect(args.before)
File "/Users/mb/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 407, in connect
last_error = self._connect_attempt(mode=mode, esp32r0_delay=False)
File "/Users/mb/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 365, in _connect_attempt
self._port.setDTR(False) # IO0=HIGH
File "/Users/mb/.virtualenvs/arduino/lib/python3.6/site-packages/serial/serialutil.py", line 599, in setDTR
self.dtr = value
File "/Users/mb/.virtualenvs/arduino/lib/python3.6/site-packages/serial/serialutil.py", line 469, in dtr
self._update_dtr_state()
File "/Users/mb/.virtualenvs/arduino/lib/python3.6/site-packages/serial/serialposix.py", line 636, in _update_dtr_state
fcntl.ioctl(self.fd, TIOCMBIC, TIOCM_DTR_str)
OSError: [Errno 25] Inappropriate ioctl for device
make: *** [flash] Error 1
Code: Select all
python /Users/mb/esp/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port /dev/ttys002 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 /Users/mb/esp/hello_world/build/bootloader/bootloader.bin 0x10000 /Users/mb/esp/hello_world/build/hello-world.bin 0x8000 /Users/mb/esp/hello_world/build/partitions_singleapp.bin
Hope somebody can help,
cheers