Heltec-Aaron-Lee / WiFi_Kit_series

Arduino source codes and toolchain for WiFi_Kit_series made by HelTecAutomation.
GNU Lesser General Public License v2.1
766 stars 308 forks source link

Wrong path for esptool #199

Open FStefanni opened 1 year ago

FStefanni commented 1 year ago

Hi,

for current version (0.0.8), in file esp32/platform.txt the line:

tools.esptool_py.path={runtime.platform.path}/tools/esptool

Should be actually:

tools.esptool_py.path={runtime.platform.path}/tools

Regards

shimniok commented 1 year ago

I ran into the same problem.

There is an esptool installed in a couple locations for some reason.

I changed

tools.esptool_py.path={runtime.platform.path}/tools/esptool

to

tools.esptool_py.path={runtime.tools.esptool_py.path}

And this worked. However, I'm now getting a similar error when attempting to upload:

Sketch uses 256357 bytes (19%) of program storage space. Maximum is 1310720 bytes.
Global variables use 13352 bytes (4%) of dynamic memory, leaving 314328 bytes for local variables. Maximum is 327680 bytes.
An error occurred while uploading the sketch
python3: can't open file '/home/mes/.arduino15/packages/Heltec-esp32/hardware/esp32/0.0.8/tools/esptool/esptool.py': [Errno 2] No such file or directory

Which is the same as what it is in the esp32 package.

FStefanni commented 1 year ago

Hi,

I do not know why your change is partially working. But my change works fine for me, so maybe you can try to see if it works also for you.

Regards

Mr-HaleYa commented 8 months ago

There seems to be a bit of back and forth on this? Why does it keep getting changed?

@fhb https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/commit/320f30358d8e3207717e7fa0c0762a0503652ed8 https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/commit/f789618ec9ff1534a981038745dcb403971e1638 @wangxiangwangeuse https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/commit/c604804d91f2a1f0b1835589c13dfdc963bd6d51