Example helloworld for esp32 says "Expected ESP-IDF version v4.3-beta2." #945
-
Hello there! I'm new here, so maybe I missed something while reading instructions for installing Moddable SDK and ESP-IDF v4.4. My esp32 is connected on port COM4, so I set an environment variable "UPLOAD_PORT" The helloword examples runs well on platform "win", but when I try to run it on an esp32 platform I get following error: \moddable\build\tmp\esp32\nodemcu\debug\helloworld\makefile(190) : fatal error U1050: Detected ESP-IDF version v4.4.2. Expected ESP-IDF version v4.3-beta2. I've installed ESP-IDF 4.3 but same error appeard. Do anybody has an idea what I'm missing? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Greetings! I'm sorry that you're having trouble building for the ESP32. Let's see if we can get you back up and running here. The error message that you've included is a little curious, as it's the opposite of what I would expect it to be. The Moddable SDK build currently expects ESP-IDF version v4.4.2, as can be seen in the ESP32 makefile fragment for Windows. That error also does not quite match what we output on an ESP-IDF version mismatch. Is there any chance that error got mangled a bit in moving it over to GitHub? Either way, the right fix should be to get your ESP-IDF repository onto the cd %IDF_PATH%
git fetch --all --tags
git checkout v4.4.2
git submodule update --init --recursive After doing that, if you run the command Please give that a try and let me know how it goes! |
Beta Was this translation helpful? Give feedback.
-
Oh! Is there any chance that you have a very out-of-date Moddable SDK somehow? Or that you have not rebuilt the Moddable SDK since updating? That would explain the inconsistencies. If there's any chance you have an old version of the Moddable SDK, please try working through the updating Windows instructions in our Getting Started guide. |
Beta Was this translation helpful? Give feedback.
-
Oh snap, I didn't pay attention to the checked out branch of Moddable SDK. It was auto checked out "esp-idf-v4.3" so I switched to "public" and updated Moddable SDK as you said. Now it's working, thank you Andy! |
Beta Was this translation helpful? Give feedback.
Oh! Is there any chance that you have a very out-of-date Moddable SDK somehow? Or that you have not rebuilt the Moddable SDK since updating? That would explain the inconsistencies.
If there's any chance you have an old version of the Moddable SDK, please try working through the updating Windows instructions in our Getting Started guide.