Re: Trouble flasing SHC ESP32

Khalid Baheyeldin
 

On Fri, Oct 18, 2019 at 01:05 PM, Bas Prins wrote:
There are messages about "esptoo.py" and missing header files in u8g2-master. At some point it was specifically mentioning u8g2lib.h, but it is definitely in folder D:\Documenten\Arduino\libraries\u8g2-master\cppsrc

On the ESP32 a red led is lit, a blue one is flashing.

These are the current messages:

Sketch uses 383962 bytes (29%) of program storage space. Maximum is 1310720 bytes.
Global variables use 20196 bytes (6%) of dynamic memory, leaving 307484 bytes for local variables. Maximum is 327680 bytes.
esptool.py v2.6
Serial port usb:0/140000/0/1
Traceback (most recent call last):
  File "esptool.py", line 2959, in <module>
  File "esptool.py", line 2952, in _main
  File "esptool.py", line 2652, in main
  File "esptool.py", line 222, in __init__
  File "site-packages\serial\__init__.py", line 88, in serial_for_url
  File "site-packages\serial\serialwin32.py", line 62, in open
serial.serialutil.SerialException: could not open port 'usb:0/140000/0/1': WindowsError(123, 'De syntaxis van de bestandsnaam, mapnaam of volumenaam is onjuist.')
Failed to execute script esptool
the selected serial port Failed to execute script esptool
 does not exist or your board is not connected
Invalid library found in D:\Documenten\Arduino\libraries\u8g2-master: no headers files (.h) found in D:\Documenten\Arduino\libraries\u8g2-master
Invalid library found in D:\Documenten\Arduino\libraries\u8g2-master: no headers files (.h) found in D:\Documenten\Arduino\libraries\u8g2-master
Seems you have two separate issues.

First, the name of the directory ...\libraries\u8g2-master should be ...\libraries\u8g2 (without the -master).
But that does not seem to affect compilation, since you get Sketch uses xxx bytes, ...etc. and an attempt to flash.

Second issue is a USB connection problem. Perhaps you did not select the correct COMx port in the IDE? Perhaps it is on some other port? The error message says "The syntax of the file name, folder name, or volume name is incorrect". I don't use Windows so can't tell what this is.

Join main@onstep.groups.io to automatically receive all group messages.