Skip to content

Upload fails for Sparkfun ESP32 Thing Plus {upload.flags} #5572

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

Closed
riosnav opened this issue Aug 21, 2021 · 3 comments · Fixed by #5589
Closed

Upload fails for Sparkfun ESP32 Thing Plus {upload.flags} #5572

riosnav opened this issue Aug 21, 2021 · 3 comments · Fixed by #5589

Comments

@riosnav
Copy link
Contributor

riosnav commented Aug 21, 2021

Hardware:

Board: SparkFun ESP32 Thing Plus (WRL-17381)
Core Installation version: 2.0.0-rc2
IDE name: Arduino IDE
Flash Frequency: 80Mhz
PSRAM enabled: No?
Upload Speed: 921600
Computer OS: Windows 10

Description:

When trying to upload a sketch using "SparkFun ESP32 Thing Plus" as the board in the Arduino IDE I get the following error message:

Sketch uses 760949 bytes (11%) of program storage space. Maximum is 6553600 bytes.
Global variables use 34604 bytes (10%) of dynamic memory, leaving 293076 bytes for local variables. Maximum is 327680 bytes.
C:\Users\riosnav\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.1.0/esptool.exe --chip esp32 --port COM4 --baud 921600 {upload.flags} --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 C:\Users\riosnav\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.0-rc1/tools/partitions/boot_app0.bin 0x1000 C:\Users\riosnav\AppData\Local\Temp\arduino_build_44862/ESP32_weather_station.ino.bootloader.bin 0x10000 C:\Users\riosnav\AppData\Local\Temp\arduino_build_44862/ESP32_weather_station.ino.bin 0x8000 C:\Users\riosnav\AppData\Local\Temp\arduino_build_44862/ESP32_weather_station.ino.partitions.bin 
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: error: argument operation: invalid choice: '{upload.flags}' (choose from '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: error: argument operation: invalid choice: '{upload.flags}' (choose from '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')

Using "Adafruit ESP32 Feather" as stated in the ESP32 Thing Plus Hookup Guide by Sparkfun (it was done before #4224) works without an issue:

Sketch uses 760949 bytes (58%) of program storage space. Maximum is 1310720 bytes.
Global variables use 34604 bytes (10%) of dynamic memory, leaving 293076 bytes for local variables. Maximum is 327680 bytes.
C:\Users\riosnav\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.1.0/esptool.exe --chip esp32 --port COM4 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 C:\Users\riosnav\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.0-rc1/tools/partitions/boot_app0.bin 0x1000 C:\Users\riosnav\AppData\Local\Temp\arduino_build_44862/ESP32_weather_station.ino.bootloader.bin 0x10000 C:\Users\riosnav\AppData\Local\Temp\arduino_build_44862/ESP32_weather_station.ino.bin 0x8000 C:\Users\riosnav\AppData\Local\Temp\arduino_build_44862/ESP32_weather_station.ino.partitions.bin 
esptool.py v3.1
Serial port COM4
Connecting......

Comparing both commands I would guess that {upload.flags} shouldn't be there.

Also there is a huge difference in program storage space between both boards (6553600 vs 1310720 bytes), is this correct? It seems odd to me considering that the manufacturer appears to consider them equivalent.

Thank you.

@riosnav
Copy link
Contributor Author

riosnav commented Aug 23, 2021

I just tried to upload the sketch after updating to RC2 and the issue is still present.

@atanisoft
Copy link
Collaborator

@riosnav Update the boards.txt file to add:

esp32thing_plus.upload.flags=

Which appears to have been missed for this board, possibly others.

@riosnav
Copy link
Contributor Author

riosnav commented Aug 23, 2021

@riosnav Update the boards.txt file to add:

esp32thing_plus.upload.flags=

Which appears to have been missed for this board, possibly others.

This did the trick! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants