-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32 Flash erase tip #348
Comments
#350 seems to be the same problem, probably just on 10.13.6. For me, flashing doesn't work either. Tried to run
Can't install either of these packages. Anyone any idea? |
I have this setup: 1. homebrewCMD: 2. USB serial driver CH4XCMD 1:
3. USB to UART bridge driver cp210xWEB
4. pipCMD: 5. noseCMD: 6. tornadoCMD: 7. platformioCMD:
Don't forget to set in FLASH ENABLE mode your ESP32 like this:
NORMAL MODE
Simple wiring for development: |
Oh. I should mention I’m trying to flash an ESP8266 on an sonoff basic. After upgrading to macOS 10.13, the only working driver would be one called wusbserial. |
Try this:
|
I took some time and prepared the Arduino IDE so i could compile the firmware myself and upload it. But thanks! Btw: I’m using a flasher module for ESP-01 for every ESP8266 and it works perfectly. |
Hi @fejess , This seems like maybe it's an Issue with platform.io rather than an Issue with esptool.py? The "How to Solve this Problem" is given as I'm going to close this as, despite containing a lot of good advice, it seems like nothing specific which needs fixing in esptool.py itself or the esptool.py docs. If you think there is something which needs fixing here, please let me know. If platform.io isn't telling users to install pyserial 3.0 or newer (the root cause of the "serial.tools.list_ports ImportError discussed in #350), then please report this to platform.io project as a bug. |
@projectgus should we do that? @fejess See platformio/platform-espressif32#127. Please run |
Alright, thank you! |
@ivankravets I don't know specifically how you manage dependencies internally to platform.io, but to work correctly you'll need to make sure users get pyserial>=3.0 The pyserial>=3.0 requirement is part of the esptool package metadata: And it's explicitly mentioned in the (legacy) manual install instructions. esptool.py will not work properly with pyserial 2.x. |
@ivankravets my update build is stuck on PIO test. We have a "new" lib called "libsodium" but it looks like PIO's parser removes the "lib" prefix and causes "/home/travis/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: cannot find -lsodium" Ping me when you fix it :) |
@me-no-dev please change
|
@projectgus Thanks! PlatformIO Core depends on PySerial >= 3.0 too. @fejess experienced this issue because called Please note, that if you call PlatformIO Core directly ( |
@ivankravets while I could have done many things to overcome this, all of them require adding a custom case for that lib on my end. Sure, it's a few lines, but I do think that it's something that should be fixed on your end, rather than mine. I don't think this case is so special, so you might benefit in the future for not having to deal with it again :) |
@me-no-dev agree with you. I'll report this issue to @SCons team. Just curious, why does this lib call |
well, the lib name itself starts with "lib*", which results in lib archive named "liblib*.a" and "-llib*" in build. Why SCons stripped it, I do not know :) |
I'll disable PIO builds in Master so I can get the update in and get on with release. Let me know when we should try again and I will enable them (you can do too) |
If you pass library name to
I think you can just generate |
it should not strip "lib" unless a file extension is provided. I will add the "-l", but IMHO this should be fixed in SCons |
Full esptool.py command line as run:
pwd:
/Users/szilveszterfejes/.platformio/packages/tool-esptoolpy
cmd:
python esptool.py erase_flash
Full output from esptool.py
Other information:
macOS High Sierra 10.13.5 successfully erased flash memory.
combined cmd:
python esptool.py --chip esp32 --port /dev/cu.usbserial* --baud 115200 --before default_reset --after hard_reset erase_flash
How to solve this problem?
pip install esptool
You get the same python version 2.7.15
I hope this would be useful for somebody.
Opened this issue because in macOS High Sierra 10.13.5 I have no problem with flash erase.
The text was updated successfully, but these errors were encountered: