I am using ESP32 IDF for some private experiments. (more info later)
I really like it, not like some Arduino hobby IDE, that is a half done, non-professional project.
I see a lot of people writing stuff like "do ESP32 in Arduino" this is completely backwards, you should avoid anything Arduino-related. You can not use Arduino in a real project, it can not be controlled, it is doing "magic" things and breaks everytime. You guessed it: I do not like it. ;-)
The ESP-IDF works really well uses cmake, is well documented, I use visual studio code insiders or clion van jetbrains to coordinate my coding and GIT to store my stuff.
I am really impressed with how well it works. Including flash-upload, debugging all works fine.
A few days ago I updated the IDF to the latest version and got errors:
$ git checkout master
$ git pull
remote: Enumerating objects: 1492, done.
remote: Counting objects: 100% (1492/1492), done.
remote: Compressing objects: 100% (213/213), done.
remote: Total 1941 (delta 1294), reused 1463 (delta 1271), pack-reused 449
Receiving objects: 100% (1941/1941), 407.91 KiB | 1.70 MiB/s, done.
Resolving deltas: 100% (1466/1466), completed with 597 local objects.
From https://github.com/espressif/esp-idf
39f090a4f..a7e8d87d3 master -> origin/master
$ git submodule update --init --recursive
error: Server does not allow request for unadvertised object 7f8c86e501e690301630029fa9bae22424adf618
Fetched in submodule path 'ext/tinydtls', but it did not contain 7f8c86e501e690301630029fa9bae22424adf618. Direct fetching of that commit failed.
I really like it, not like some Arduino hobby IDE, that is a half done, non-professional project.
I see a lot of people writing stuff like "do ESP32 in Arduino" this is completely backwards, you should avoid anything Arduino-related. You can not use Arduino in a real project, it can not be controlled, it is doing "magic" things and breaks everytime. You guessed it: I do not like it. ;-)
The ESP-IDF works really well uses cmake, is well documented, I use visual studio code insiders or clion van jetbrains to coordinate my coding and GIT to store my stuff.
I am really impressed with how well it works. Including flash-upload, debugging all works fine.
A few days ago I updated the IDF to the latest version and got errors:
$ git checkout master
$ git pull
remote: Enumerating objects: 1492, done.
remote: Counting objects: 100% (1492/1492), done.
remote: Compressing objects: 100% (213/213), done.
remote: Total 1941 (delta 1294), reused 1463 (delta 1271), pack-reused 449
Receiving objects: 100% (1941/1941), 407.91 KiB | 1.70 MiB/s, done.
Resolving deltas: 100% (1466/1466), completed with 597 local objects.
From https://github.com/espressif/esp-idf
39f090a4f..a7e8d87d3 master -> origin/master
...
... lots of info
$ git submodule update --init --recursive
.....
error: Server does not allow request for unadvertised object 7f8c86e501e690301630029fa9bae22424adf618
Fetched in submodule path 'ext/tinydtls', but it did not contain 7f8c86e501e690301630029fa9bae22424adf618. Direct fetching of that commit failed.
I never have seen that before...
Some time spent digging arround on google revealed a solution here : https://github.com/espressif/esp-idf/issues/3938
It appears some module has moved its github location.
I can not build, even when I disable libcoap in my project, so I had to fix this issue.
The FIX :
Go the correct directory and tell git the origin
~/esp/esp-idf/components/coap/libcoap/ext/tinydtls$ git remote set-url origin https://github.com/eclipse/tinydtls.git
Then update everything again.
~/esp/esp-idf$ git submodule update --init --recursive
remote: Enumerating objects: 41, done.
remote: Counting objects: 100% (41/41), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 92 (delta 37), reused 38 (delta 36), pack-reused 51
Unpacking objects: 100% (92/92), done.
From https://github.com/eclipse/tinydtls
9a34961..494a40d develop -> origin/develop
Submodule path 'components/coap/libcoap/ext/tinydtls': checked out '7f8c86e501e690301630029fa9bae22424adf618'
Now all is fine with the world again.
Hope this helps someone, I spent quite some time find the right solution.
Happy coding,
Edwin.. OETEL-X
Reacties