-
Notifications
You must be signed in to change notification settings - Fork 132
Sloeber 4.4.0.202107240421 ESP32 2.0.0 RC1 esptool_py problem #1364
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
Comments
|
Note that I updated the remind reference above as it was wrong. |
Ohh I see the confusion, yes we are using a different repo. That repo houses all the current development and release candidates for the esp32, and right now is the only repo with the esp32-s2 candidate code. The other repo is the stable releases of the esp32 code. I just switched to the other repo and confirm that esp32 1.0.6 did work and was able to program a board no problem. I just noticed another bug, will make a different ticket for that. |
Hello, I have similar problem on Eclipse 2021-06 Sloeber 4.4.0.202107110422 with
Arduino Upload Sketch menu launch python /home/myid/embedcpp-latest-released/eclipse/arduinoPlugin/packages/esp32/tools/esptool_py/3.1.0/esptool.py and fails... TOOL_PATH="/home/myid/embedcpp-latest-released/eclipse/arduinoPlugin/packages/esp32/tools" it is not practical,because we have to close serial monitor view in eclipse an to open again after sketch upload Cordially yours... |
I checked this problem and it is indeed a arduino IDE incompatibility introduced with Sloeber 4.4 If it works in Arduino IDE the easiest fix would be to change the platform.txt from The root cause is that Sloeber does not interpret tool patterns in the same way as Arduino IDE The arduino configuration https://arduino.github.io/arduino-cli/latest/platform-specification/#sketch-upload-configuration states
Note that is says "can be used" and not "has to be used" Pre Sloeber 4.4 sloeber searched for the existence of tools.avrdude.cmd.path at run time. However in Sloeber 4.4 all this processing is doen at the creation of platform.sloeber.txt at which time the "exists method" is not readily available . And this is why Sloeber does not expand {upload.pattern_args} in the upload command |
Thank you for your quick reply, it runs... Launching: python /home/bigboss/embedcpp-latest-released/eclipse/arduinoPlugin/packages/esp32/tools/esptool_py/3.1.0/esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 /home/bigboss/embedcpp-latest-released/eclipse/arduinoPlugin/packages/esp32/hardware/esp32/2.0.0-rc1/tools/partitions/boot_app0.bin 0x1000 /home/bigboss/cdt-master/ws/000_Esp32_test-Serial/Release/000_Esp32_test-Serial.bootloader.bin 0x10000 /home/bigboss/cdt-master/ws/000_Esp32_test-Serial/Release/000_Esp32_test-Serial.bin 0x8000 /home/bigboss/cdt-master/ws/000_Esp32_test-Serial/Release/000_Esp32_test-Serial.partitions.bin
Question: will this patch lost after a esp32...index.json update, adding a new json or reattach? Best regards |
Editing platform.sloeber.txt is never final. The sloeber files are considered temporary files and will be created/deleted/updated as needed. The Sloeber workaround is to delete platform.sloeber.txt and modify platform.txt If the change in platform.txt also works in Arduino IDE I propose this as the fix for the problem |
I'm closing this issue as a duplicate of #1371 which is fixed in the nightly |
If running on Linux the next line needs to be changed to:
|
Sloeber [4.4.0.202107240421]
Board: Wemos LOLIN
Compiles without a problem.
Serial upload fails with ESP32 2.0.0-RC1
---->
Starting upload
Uploading project "Test" with "esptool_py"
Launching: D:\Programs\Sloeber\arduinoPlugin\packages\esp32\tools\esptool_py\3.1.0/esptool.exe
Output:
esptool.py v3.1
usage: esptool [-h]
[--chip {auto,esp8266,esp32,esp32s2,esp32s3beta2,esp32s3beta3,esp32c3,esp32c6beta}]
[--port PORT] [--baud BAUD]
[--before {default_reset,usb_reset,no_reset,no_reset_no_sync}]
[--after {hard_reset,soft_reset,no_reset,no_reset_stub}]
[--no-stub] [--trace] [--override-vddsdio [{1.8V,1.9V,OFF}]]
[--connect-attempts CONNECT_ATTEMPTS]
{load_ram,dump_mem,read_mem,write_mem,write_flash,run,image_info,make_image,elf2image,read_mac,chip_id,flash_id,read_flash_status,write_flash_status,read_flash,verify_flash,erase_flash,erase_region,merge_bin,version,get_security_info}
...
esptool.py v3.1 - ESP8266 ROM Bootloader Utility
positional arguments:
{load_ram,dump_mem,read_mem,write_mem,write_flash,run,image_info,make_image,elf2image,read_mac,chip_id,flash_id,read_flash_status,write_flash_status,read_flash,verify_flash,erase_flash,erase_region,merge_bin,version,get_security_info}
Run esptool {command} -h for additional help
load_ram Download an image to RAM and execute
dump_mem Dump arbitrary memory to disk
read_mem Read arbitrary memory location
write_mem Read-modify-write to arbitrary memory location
write_flash Write a binary blob to flash
run Run application code in flash
image_info Dump headers from an application image
make_image Create an application image from binary files
elf2image Create an application image from ELF file
read_mac Read MAC address from OTP ROM
chip_id Read Chip ID from OTP ROM
flash_id Read SPI flash manufacturer and device ID
read_flash_status Read SPI flash status register
write_flash_status Write SPI flash status register
read_flash Read SPI flash content
verify_flash Verify a binary blob against flash
erase_flash Perform Chip Erase on SPI flash
erase_region Erase a region of the flash
merge_bin Merge multiple raw binary files into a single file for
later flashing
version Print esptool version
get_security_info Get some security-related data
optional arguments:
-h, --help show this help message and exit
--chip {auto,esp8266,esp32,esp32s2,esp32s3beta2,esp32s3beta3,esp32c3,esp32c6beta}, -c {auto,esp8266,esp32,esp32s2,esp32s3beta2,esp32s3beta3,esp32c3,esp32c6beta}
Target chip type
--port PORT, -p PORT Serial port device
--baud BAUD, -b BAUD Serial port baud rate used when flashing/reading
--before {default_reset,usb_reset,no_reset,no_reset_no_sync}
What to do before connecting to the chip
--after {hard_reset,soft_reset,no_reset,no_reset_stub}, -a {hard_reset,soft_reset,no_reset,no_reset_stub}
What to do after esptool.py is finished
--no-stub Disable launching the flasher stub, only talk to ROM
bootloader. Some features will not be available.
--trace, -t Enable trace-level output of esptool.py interactions.
--override-vddsdio [{1.8V,1.9V,OFF}]
Override ESP32 VDDSDIO internal voltage regulator (use
with care)
--connect-attempts CONNECT_ATTEMPTS
Number of attempts to connect, negative or 0 for
infinite. Default: 7.
The execution of command "3.1.0/esptool.exe" is done.
The text was updated successfully, but these errors were encountered: