-
Notifications
You must be signed in to change notification settings - Fork 7.6k
(esp-idf) make flash fails due to the overlapping of offset addresses #1724
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
I think this belongs to esp-idf issues, not here. This issues list is for Arduino-ESP32 problems, not for ESP-IDF problems. |
Actually I wondered which issues I should post. I posted here because this problem does not occur without arduino-esp32. Anyway do you think I should close here and repost to esp-idf issue? |
Sorry, I missed that you are using Arduino as a component. |
Do you get the error with other Arduino partition configurations? In particular, No_OTA? |
Yes. I tried other configurations: Minimal, No OTA, and Minimal SPIFFS. I get the same error (
|
Where did that ota_data_initial.bin come from? Try wiping your build directory and make from scratch. |
Build after |
You need to find the source of that bin file and remove it. I have no such file on my machine. |
The file ( If I don't use arduino-esp32, this error does not occur ( |
Yup, incompatible new code. https://github.com/espressif/arduino-esp32/blob/master/docs/esp-idf_component.md#compilation-errors |
I had the same issue, but I seem to have gotten around it by using a custom partition table without any ota subtype partitions and setting the partition table offset to
|
Have the same issue. my guess is that it is caused by recent changed to the makefiles or partition tools |
Hi all. This issue happens due to the crossed functionality in IDF and Arduino. We added in IDF feature which clear otadate partition by the command |
@KonstantinKondrashov, Hi. I just tried to comment the line you give but I have no succes.
|
Sory try to comment only next line: https://github.com/espressif/arduino-esp32/blob/master/Makefile.projbuild#L10 |
Perfect, It's working. |
Description:
Using esp-idf with arduino-esp32, after successful build, flashing fails due to the overlap of offset addresses. As the arguments of
python
in the last line of the output ofgmake
shows,ota_data_initial.bin
andboot_app0.bin
share the same offset address0xe000
. If I remove0xe000 /Users/takuo/esp/foo/build/ota_data_initial.bin
from the arguments, flashing succeeds.The build configuration (
sdkconfig
) is almost the same as default (generated withmake menuconfig
). In such a case, I think that theboot_app0.bin
is incorrectly assigned to the offset0xe000
(according todefault.csv
, the address should be for ota_data).Configuration
Board: M5Stack, DevKitC
Core Installation/update date: 3, Aug. 2018
IDE: esp-idf (master branch, 31, Jul. 2018, 1c7a8b3b712c4020562551f692d0ced8f7470d2c)
Library: arduino-esp32 (master branch, 30, Jul. 2018, e346f20)
Flash Frequency: 40MHz
Upload Speed: 115200
OS: macOS 10.13.6
Project directory
Makefile
main.cpp
component.mk
is emptysdkconfig
The text was updated successfully, but these errors were encountered: