Page 1 of 1

Cant compile

Posted: Sun Jan 15, 2023 3:30 am
by ctesla75
Hi All,
im having trouble trying to compile to a esp32 wroom32, At first i thought my program was at fault , but then i wrote a simple progream to just turn a led on. it will compile to c . but not hex or to the target
this is the message

Code: Select all

Target folder: C:\Users\home\Downloads
Source name:   C:\Users\home\Downloads\ledon.fcfx
Title:         ledon
Description:   
Device:        ESP.ESP32.ESP32_WROOM_32
Generated by:  Flowcode v9.3.1.36
Date:          Sunday, January 15, 2023 13:24:57
Users:         1
Registered to: ctesla75 (73821106)
Licence key: KAXXA3
https://www.flowcode.co.uk
Using FCD settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch\esp32_build.bat  "C:\Users\home\Desktop\esp-idf-3\" "ledon" "C:\Users\home\Downloads\" esp32s_sdkconfig 

C:\Users\home\Downloads>REM CRC: 0796FC1E6A776AF9156B257209C35258CE7C28B3EC20AEA2C632DB392A0E4BFD5B3F53B21811978F7B21FE4085045A7E774D1D3D69D8A99EE7320EAE740A5DB6FE0D8D4660AC0314F98C28BCA92AF856EFD1DB5B777140BC4D00059D795899827D9F76D89626FBC8B199900461C78937B42DEF8219F63A24580137A2F6C8FDB7553324EFF791947E8AB6FFD612B81BAA97C798A8F1CFC189DE5D38517747C774AF2DD6F839BAECF83F7F994C7164CE77868F480396BDEF2F2C3050DA273BE4EE6FE0BB589D1229A5E37B217FF86DBD72A01B8FBC49BE02BFA3608A0B0CE69F969622A912E6E6A2FB 

C:\Users\home\Downloads>REM REVISION: 4.0 

C:\Users\home\Downloads>REM GUID: 955EA920-4961-4C53-BA6B-EF4AF66BB4C2 

C:\Users\home\Downloads>REM DATE: 29\03\2021 

C:\Users\home\Downloads>REM DIR: FCD\ESP\Batch\esp32_build.bat 
Building ledon ...
Checking Python compatibility
Setting IDF_PATH: C:\Users\home\Desktop\esp-idf-3

Adding ESP-IDF tools to PATH...
    C:\Users\home\.espressif\tools\xtensa-esp-elf-gdb\11.2_20220823\xtensa-esp-elf-gdb\bin
    C:\Users\home\.espressif\tools\xtensa-esp32-elf\esp-2022r1-11.2.0\xtensa-esp32-elf\bin
    C:\Users\home\.espressif\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin
    C:\Users\home\.espressif\tools\cmake\3.24.0\bin
    C:\Users\home\.espressif\tools\openocd-esp32\v0.11.0-esp32-20221026\openocd-esp32\bin
    C:\Users\home\.espressif\tools\ninja\1.10.2\
    C:\Users\home\.espressif\tools\idf-exe\1.0.3\
    C:\Users\home\.espressif\tools\ccache\4.6.2\ccache-4.6.2-windows-x86_64
    C:\Users\home\.espressif\python_env\idf5.0_py3.7_env\Scripts
    C:\Users\home\Desktop\esp-idf-3\tools
    
Checking if Python packages are up to date...
Python requirements are satisfied.
Constraint file: C:\Users\home\.espressif\espidf.constraints.v5.0.txt
Requirement files:
 - C:\Users\home\Desktop\esp-idf-3\tools\requirements\requirements.core.txt
Python being checked: C:\Users\home\.espressif\python_env\idf5.0_py3.7_env\Scripts\python.exe

Detected installed tools that are not currently used by active ESP-IDF version.
For removing dfu-util, idf-driver, idf-eclipse, riscv32-esp-elf, riscv32-esp-elf-gdb, xtensa-esp32s2-elf, xtensa-esp32s3-elf use command 'python.exe C:\Users\home\Desktop\esp-idf-3\tools\idf_tools.py uninstall'
For free up even more space, remove installation packages of those tools. Use option 'python.exe C:\Users\home\Desktop\esp-idf-3\tools\idf_tools.py uninstall --remove-archives'.


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:\users\home\downloads\ledon\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=1 c:\users\home\downloads\ledon"...
ERROR: C:\Users\home\.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\FlowcodeV9\FCD\ESP\Batch\esp32_build.bat reported error code 0x1

Autoclose turned off

FINISHED
I have also uninstalled and reinstalled flowcode and the esp32 toolchainn
Thanks

Re: Cant compile

Posted: Sun Jan 15, 2023 12:03 pm
by medelec35
Hello.
It looks like you are using a later version of ESP-IDF than specified in the ESP32 installation instruction guide.
There are various posts about this, for example here.
Follow the guide step by step, including the paths as that, works for me.

For future reference can you embed the compiler messages in code tags, please?
I have done that for you for the above post.

Re: Cant compile

Posted: Mon Jan 16, 2023 8:23 pm
by ctesla75
Thanks I have followed the instructions and now get further. It now has problem saying invalid baud

Code: Select all

Usage: idf.py [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...
Try 'idf.py --help' for help.

Error: Invalid value for '-b' / '--baud': 'flash' is not a valid integer.
Programming Failed

C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch\esp32_prog.bat reported error code 0x1

Autoclose turned off


I will have a look through my settings to see if i can see anything that seems wrong. I do notice that in project options it doesnt let me select a port only saying n/a. maybe a driver issue?

Re: Cant compile

Posted: Mon Jan 16, 2023 8:52 pm
by ctesla75
I Have just tried to change comport settings after reading this post viewtopic.php?p=57#p57
under global settings but it doesnt give me options under comport just blank

Re: Cant compile

Posted: Mon Jan 16, 2023 9:01 pm
by ctesla75
Hi
Have sorted it all out ,all programming good now. The usb cable i was using was power only. Once i swapped calbles comport appeared

Re: Cant compile

Posted: Mon Jan 16, 2023 11:13 pm
by medelec35
Hello.
ctesla75 wrote:
Mon Jan 16, 2023 8:23 pm
Error: Invalid value for '-b' / '--baud': 'flash' is not a valid integer.
Programming Failed
Yes, that does usually mean there is a comms issue between ESP32 and PC or the correct com port is not selected within project options.
I'm glad its all sorted now.