question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error programming with ESP-PROG on 5.1.0

See original GitHub issue

Hello,

Uploading with the same settings was working fine with previous version. (10 mins before it was working, no cable changed/touched, nor settings) After the upgrade I get the following error: (Same with 5000khz speed) (Serial upload works fine)

Building in release mode
Retrieving maximum program size .pio\build\env1\firmware.elf
Checking size .pio\build\env1\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [==        ]  15.4% (used 50364 bytes from 327680 bytes)
Flash: [========  ]  79.4% (used 1040622 bytes from 1310720 bytes)
Configuring upload protocol...
AVAILABLE: cmsis-dap, esp-bridge, esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esp-prog
Uploading .pio\build\env1\firmware_merged.bin
Open On-Chip Debugger  v0.11.0-esp32-20220706 (2022-07-06-15:48)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
debug_level: 1

adapter speed: 20000 kHz

DEPRECATED! use 'adapter speed' not 'adapter_khz'
adapter speed: 20000 kHz

** Programming Started **
Error: Invalid offset!
Error: failed erasing sectors 0 to 270
embedded:startup.tcl:1184: Error: ** Programming Failed **
in procedure 'program_esp' 
in procedure 'program_error' called at file "C:/Users/Admin/.platformio/packages/tool-openocd-esp32/share/openocd/scripts/target/esp_common.cfg", line 171
at file "embedded:startup.tcl", line 1184
*** [upload] Error 1

Platform IO settings:

[platformio]
default_envs = env1

[env:env1]
platform = espressif32@5.1.0
framework = arduino
board = esp32-s2-saola-1
debug_tool = esp-prog
debug_speed = 20000
upload_protocol = esp-prog
; upload_port = COM6
; debug_tool = jlink
build_flags = 
	-I include
lib_deps = 
	rlogiacco/CircularBuffer@1.3.3
	milesburton/DallasTemperature@^3.11.0
	paulstoffregen/OneWire@^2.3.7
	bblanchon/ArduinoJson@^6.19.4
	ottowinter/ESPAsyncWebServer-esphome@^2.1.0
	ayushsharma82/AsyncElegantOTA@^2.2.7
	https://github.com/tzapu/WiFiManager/archive/refs/tags/v2.0.11-beta.zip
	arduino-libraries/NTPClient@^3.2.1

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
valeroscommented, Aug 9, 2022

Seems like a bug to me, please temporarily roll back to the previous version of the platform until it’s fixed:

[env:env1]
platform = espressif32@~5.0.0
framework = arduino
board = esp32-s2-saola-1
...
0reactions
Jason2866commented, Oct 4, 2022

@valeros I found the reason for. Since our main app does not run at address 0x10000 the actual implementation does not work. I found a solution for this for us.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Esp-prog debugger cannot start or read any flash from ESP32 ...
Problem Summery I am using an ESP32-S2 board (devkitM-1U) [uses the 'saola' board def] with a esp-prog debugger board and I cannot seem...
Read more >
ESP32 programming and debugging with ESP-prog not work
Dear Forum ! I want to program and debug an ESP WROOM32D processor using ESP-Prog. The USB channels of the ESP-Prog are set...
Read more >
Introduction to the ESP-Prog Board
ESP -Prog is one of Espressif's development and debugging tools, with functions including automatic firmware downloading, serial communication, ...
Read more >
JTAG Debugging - ESP32-C3 - — ESP-IDF Programming ...
Debugging through the USB interface implemented in ESP32-C3 requires to have a chip with revision 3 or newer. Please use other debugging options...
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
Bug :1523 - "[IDEA] Offload work by distributing trivial ebuild maintenance to ... Bug:99472 - "ebuild for flP5 pic programmer software" status:RESOLVED ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found