Page 1 of 1

ESP32 failed to compile to hex

Posted: Thu May 18, 2023 10:29 pm
by RGV250
Hi,
I have downloaded the app developer power monitor, I installed the ESP32 toolchain and tried to compile. As I did not have the device conected I tried the compile to hex option. It said "Done!" so I thought everything had been installed correctly but it then carried on and I got an error. I then tried compile to C and that gave a message saying that it had been compiled successfully.
I wondered if this is just an issue with compile to hex which I will probably never use, I will try tomorrow when I find the actual ESP device.
Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

idf.py build

. . .

Executing action: all (aliases: build)
Running cmake in directory C:\BG_WORK\Flowcode\PowerMonitor\Mains_PMon_v1.0-ESP32_Wroom_Firmware\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=1 C:\BG_WORK\Flowcode\PowerMonitor\Mains_PMon_v1.0-ESP32_Wroom_Firmware"...
ERROR: C:\Users\Admin\.espressif\python_env\idf5.0_py3.7_env\Scripts\python.exe doesn't support asyncio. The issue can be worked around by re-running idf.py with the "--no-hints" argument.

Build Failed

C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\ESP\Batch\esp32_build.bat reported error code 0x1
Bob

Re: ESP32 failed to compile to hex

Posted: Thu May 18, 2023 11:44 pm
by medelec35
Hi Bob.
Take a look at this post.

Re: ESP32 failed to compile to hex

Posted: Sat May 20, 2023 8:45 am
by RGV250
Hi,
That post fixed it.

Bob