Page 1 of 1

esp-at 3.2.0.0 build fatal error git merge failed

Posted: Tue May 27, 2025 10:49 pm
by RogerFL
Following the instructions in the documentation https://docs.espressif.com/projects/esp ... le_it.html I get this
A fatal error occurred: git merge failed! Please manually run:
cd esp-idf && git merge origin/release/v5.0 release/v5.0
The esp-at build patched dhcpserver.c in esp-idf and then calls it a fatal error.

The recommended fix doesn't help:
cd esp-idf && git merge origin/release/v5.0 release/v5.0
/Users/roger/esp/esp-at-3.2.0.0/esp-idf
Updating 24b9d38a24..d9f9b7d8ed
error: Your local changes to the following files would be overwritten by merge:
components/lwip/apps/dhcpserver/dhcpserver.c
Please commit your changes or stash them before you merge.
Aborting
Any ideas?

Re: esp-at 3.2.0.0 build fatal error git merge failed

Posted: Mon Jun 09, 2025 11:59 am
by esp-at
- The most brute-force way is to delete esp-idf directly and let esp-at clone a new one.
- The elegant way is to git checkout the specified esp-idf revision, update the submodule via git reset --hard and git submodule update --init --recursive.