ESP toolcain!

For general Flowcode discussion that does not belong in the other sections.
monie
Posts: 73
http://meble-kuchenne.info.pl
Joined: Wed Oct 19, 2022 4:06 pm
Has thanked: 1 time

Re: ESP toolcain!

Post by monie »

Thank you very much Maverick
I am working on getting the ESP program working.

Yours sincerely
Monie

monie
Posts: 73
Joined: Wed Oct 19, 2022 4:06 pm
Has thanked: 1 time

Re: ESP toolcain!

Post by monie »

Hello all / Martin

I have tried really hard to get flowcode v11 and ESP32 to run together. But without luck. :cry:
User: windows v11

Options:
ESP: C:\Users\sun\.espressif

C:\Users\sun\.espressif/ *.*

What should I do here?
Do you have a setup suggestion?


See Compiler Messages below!

Compiler Messages
----------------------------------------------------------------------------------------------------------------------------
C:\Users\sun\AppData\Local\Temp\pid-21652>REM DIR: FCD\ESP\Batch\esp32_build.bat
Building EspTest ...
'"C:\Users\sun\.espressif\\export.bat"' is not recognized as an internal or external command,
operable program or batch file.
'idf.py' is not recognized as an internal or external command,
operable program or batch file.

Build Failed

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

*( I keep getting the above error message all the time)* What can I do here?

Autoclose turned off

FINISHED
-----------------------------------------------------------------------------------------------------------------------

Yours sincerely
Monie

mnfisher
Valued Contributor
Posts: 976
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 105 times
Been thanked: 516 times

Re: ESP toolcain!

Post by mnfisher »

Hi Monie,

It looks like it is still looking in users\sun\.espressif for the batch file.

Where is your installation and did you manage to compile from the command line?

Martin

medelec35
Matrix Staff
Posts: 1457
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 513 times
Been thanked: 473 times

Re: ESP toolcain!

Post by medelec35 »

Hi, monie.
If you run an update via Help>Library Updates.
Change Files in-use to Full database, then download all the updates, within the compiler messages there is now a toolchain path check:
ESP32 toolchain check.png
ESP32 toolchain check.png (4.84 KiB) Viewed 1492 times
When I had an issue on v11 it was because I tried a later version toolchain.
If you go back to the posts starting from https://flowcode.co.uk/forums/viewtopic ... 9092#p9092
Myself, mnfisher, and Steve have all given you advice that should get you going.
Martin

monie
Posts: 73
Joined: Wed Oct 19, 2022 4:06 pm
Has thanked: 1 time

Re: ESP toolcain!

Post by monie »

Hello mnfisher / Martin
Thank you very much for the help:-)

Yours sincerely
Monie

monie
Posts: 73
Joined: Wed Oct 19, 2022 4:06 pm
Has thanked: 1 time

Re: ESP toolcain!

Post by monie »

Hello all / Martin

Have tried many attempts to get ESP to work in Flowcode v9 - but without success!

Is there anyone who wants to look through the codes and tell me where it goes wrong and what I can do?

Please see the codes below!

Compiler Messages
-----------------------------------------------------------------------
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\sun\esp-idf\" "EspTest" "C:\Users\sun\" lolin32_lite_sdkconfig

C:\Users\sun>REM CRC: 0796FC1E6A776AF9156B257209C35258CE7C28B3EC20AEA2C632DB392A0E4BFD5B3F53B21811978F7B21FE4085045A7E774D1D3D69D8A99EE7320EAE740A5DB6EFB7F8B9768FC390BAFB420BC9D6F4D56375EE3039B8BDDEA4D1C56CD1580BF569DAEA777BB49732B199900461C78937B42DEF8219F63A24580137A2F6C8FDB7553324EFF791947E8AB6FFD612B81BAA97C798A8F1CFC189DE5D38517747C774AF2DD6F839BAECF83F7F994C7164CE77868F480396BDEF2F2C3050DA273BE4EE20CC17B921F6F114A09D373C35E2F6843075ABAEF7BDE0FCD2CED24345F1155B2F83CAC1F23BFA51

C:\Users\sun>REM REVISION: 5.0

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

C:\Users\sun>REM DATE: 05\12\2022

C:\Users\sun>REM DIR: FCD\ESP\Batch\esp32_build.bat
.
============================== Toolchain Check ==============================
Python 3.11.1
git version 2.21.0.windows.1
ESP toolchain found at "C:\Users\sun\esp-idf\"
=============================================================================
.
Building EspTest ...
Setting IDF_PATH: C:\Users\sun\esp-idf

Adding ESP-IDF tools to PATH...
C:\Users\sun\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin
C:\Users\sun\.espressif\tools\xtensa-esp32s2-elf\esp-2020r3-8.4.0\xtensa-esp32s2-elf\bin
C:\Users\sun\.espressif\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin
C:\Users\sun\.espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin
C:\Users\sun\.espressif\tools\cmake\3.13.4\bin
C:\Users\sun\.espressif\tools\openocd-esp32\v0.11.0-esp32-20220706\openocd-esp32\bin
C:\Users\sun\.espressif\tools\ninja\1.9.0\
C:\Users\sun\.espressif\tools\idf-exe\1.0.1\
C:\Users\sun\.espressif\tools\ccache\3.7\
C:\Users\sun\esp-idf\tools

Checking if Python packages are up to date...
The following Python requirements are not satisfied:
click>=5.0
pyserial>=3.0
future>=0.15.2
cryptography>=2.1.4,<35
pyparsing>=2.0.3,<2.4.0
pyelftools>=0.22
idf-component-manager~=1.0
esp-windows-curses; sys_platform == 'win32'
Please follow the instructions found in the "Set up the tools" section of ESP-IDF Getting Started Guide
. . . . .

fatal: bad object HEAD
fatal: 'git status --porcelain=2' failed in submodule third-party/mruby
fatal: 'git status --porcelain=2' failed in submodule components/nghttp/nghttp2
WARNING: Git version unavailable, reading from source
The following Python requirements are not satisfied:
click>=5.0
pyserial>=3.0
future>=0.15.2
cryptography>=2.1.4,<35
pyparsing>=2.0.3,<2.4.0
pyelftools>=0.22
idf-component-manager~=1.0
esp-windows-curses; sys_platform == 'win32'
Please follow the instructions found in the "Set up the tools" section of ESP-IDF Getting Started Guide

ESP-IDF v4.1.3

Build Failed

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

Autoclose turned off

FINISHED
--------------------------------------------

Yours sincerely
Monie

BenR
Matrix Staff
Posts: 1747
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 444 times
Been thanked: 604 times

Re: ESP toolcain!

Post by BenR »

Hello Monie,

It sounds from the messages that Python and git may not be working correctly. Do you already have seperate installs of Python or git?

the .espressif in the path could be causing issues, my files don't seem to be installed there.


Please can you try the following to try and re-setup the toolchain environment.

Click Start then type ESP and click on the ESP-IDF command prompt

In there type the following command and hit enter.

install.bat

This may take a few minutes to complete but hopefully this will help.

monie
Posts: 73
Joined: Wed Oct 19, 2022 4:06 pm
Has thanked: 1 time

Re: ESP toolcain!

Post by monie »

Hello all / Martin

Have tried many attempts to get ESP to work in Flowcode v9 - but without success!
Is there anyone who wants to look through the codes and tell me where it goes wrong and what I can do?

Please see the codes below!

Compiler Messages:
--------------------------------------------------------------------------
Target folder: C:\Users\sun\Downloads
Source name: C:\Users\sun\Downloads\EspTest.fcfx
Title:
Description:
Device: ESP.ESP32.Lolin32_Lite
Generated by: Flowcode v9.3.1.36
Date: Friday, December 16, 2022 17:30:49
Users: 1
Registered to: xxxxxxxxxxx
Licence key: xxxxxxxxxxx
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\sun\ESP-IDF\" "EspTest" "C:\Users\sun\Downloads\" lolin32_lite_sdkconfig

C:\Users\sun\Downloads>REM CRC: 0796FC1E6A776AF9156B257209C35258CE7C28B3EC20AEA2C632DB392A0E4BFD5B3F53B21811978F7B21FE4085045A7E774D1D3D69D8A99EE7320EAE740A5DB6EFB7F8B9768FC390BAFB420BC9D6F4D56375EE3039B8BDDEA4D1C56CD1580BF569DAEA777BB49732B199900461C78937B42DEF8219F63A24580137A2F6C8FDB7553324EFF791947E8AB6FFD612B81BAA97C798A8F1CFC189DE5D38517747C774AF2DD6F839BAECF83F7F994C7164CE77868F480396BDEF2F2C3050DA273BE4EE20CC17B921F6F114A09D373C35E2F6843075ABAEF7BDE0FCD2CED24345F1155B2F83CAC1F23BFA51

C:\Users\sun\Downloads>REM REVISION: 5.0

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

C:\Users\sun\Downloads>REM DATE: 05\12\2022

C:\Users\sun\Downloads>REM DIR: FCD\ESP\Batch\esp32_build.bat
.
============================== Toolchain Check ==============================
Python 3.7.3
git version 2.21.0.windows.1
ESP toolchain found at "C:\Users\sun\ESP-IDF\"
=============================================================================
.
Building EspTest ...
Setting IDF_PATH: C:\Users\sun\esp-idf

Adding ESP-IDF tools to PATH...
C:\Users\sun\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin
C:\Users\sun\.espressif\tools\xtensa-esp32s2-elf\esp-2020r3-8.4.0\xtensa-esp32s2-elf\bin
C:\Users\sun\.espressif\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin
C:\Users\sun\.espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin
C:\Users\sun\.espressif\tools\cmake\3.13.4\bin
C:\Users\sun\.espressif\tools\openocd-esp32\v0.11.0-esp32-20220706\openocd-esp32\bin
C:\Users\sun\.espressif\tools\ninja\1.9.0\
C:\Users\sun\.espressif\tools\idf-exe\1.0.1\
C:\Users\sun\.espressif\tools\ccache\3.7\
C:\Users\sun\.espressif\python_env\idf4.1_py3.7_env\Scripts
C:\Users\sun\esp-idf\tools

Checking if Python packages are up to date...
Python requirements from C:\Users\sun\esp-idf\requirements.txt are satisfied.

Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

idf.py build

[0/1] Re-running CMake...
-- ccache will be used for faster recompilation
CMake Error at build/CMakeFiles/3.13.4/CMakeSystem.cmake:6 (include):
include could not find load file:
C:/Users/sun/esp-idf-tools/tools/cmake/toolchain-esp32.cmake
Call Stack (most recent call first):
C:/Users/sun/esp-idf/tools/cmake/project.cmake:284 (__project)
CMakeLists.txt:13 (project)
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Project version: 1
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file C:/Users/sun/Downloads/EspTest/sdkconfig
.

-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- Adding linker script C:/Users/sun/Downloads/EspTest/build/esp-idf/esp32/esp32_out.ld
-- Adding linker script C:/Users/sun/esp-idf/components/esp32/ld/esp32.project.ld.in
-- Adding linker script C:/Users/sun/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Adding linker script C:/Users/sun/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld
-- Adding linker script C:/Users/sun/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/sun/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/sun/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script C:/Users/sun/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script C:/Users/sun/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Components: app_trace app_update asio bootloader bootloader_support bt cbor coap console cxx driver efuse esp-tls esp32 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_http_client esp_http_server esp_https_ota esp_https_server esp_local_ctrl esp_netif esp_ringbuf esp_rom esp_serial_slave_link esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos heap idf_test jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter ulp unity vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Users/sun/esp-idf/components/app_trace C:/Users/sun/esp-idf/components/app_update C:/Users/sun/esp-idf/components/asio C:/Users/sun/esp-idf/components/bootloader C:/Users/sun/esp-idf/components/bootloader_support C:/Users/sun/esp-idf/components/bt C:/Users/sun/esp-idf/components/cbor C:/Users/sun/esp-idf/components/coap C:/Users/sun/esp-idf/components/console C:/Users/sun/esp-idf/components/cxx C:/Users/sun/esp-idf/components/driver C:/Users/sun/esp-idf/components/efuse C:/Users/sun/esp-idf/components/esp-tls C:/Users/sun/esp-idf/components/esp32 C:/Users/sun/esp-idf/components/esp_adc_cal C:/Users/sun/esp-idf/components/esp_common C:/Users/sun/esp-idf/components/esp_eth C:/Users/sun/esp-idf/components/esp_event C:/Users/sun/esp-idf/components/esp_gdbstub C:/Users/sun/esp-idf/components/esp_http_client C:/Users/sun/esp-idf/components/esp_http_server C:/Users/sun/esp-idf/components/esp_https_ota C:/Users/sun/esp-idf/components/esp_https_server C:/Users/sun/esp-idf/components/esp_local_ctrl C:/Users/sun/esp-idf/components/esp_netif C:/Users/sun/esp-idf/components/esp_ringbuf C:/Users/sun/esp-idf/components/esp_rom C:/Users/sun/esp-idf/components/esp_serial_slave_link C:/Users/sun/esp-idf/components/esp_websocket_client C:/Users/sun/esp-idf/components/esp_wifi C:/Users/sun/esp-idf/components/espcoredump C:/Users/sun/esp-idf/components/esptool_py C:/Users/sun/esp-idf/components/expat C:/Users/sun/esp-idf/components/fatfs C:/Users/sun/esp-idf/components/freemodbus C:/Users/sun/esp-idf/components/freertos C:/Users/sun/esp-idf/components/heap C:/Users/sun/esp-idf/components/idf_test C:/Users/sun/esp-idf/components/jsmn C:/Users/sun/esp-idf/components/json C:/Users/sun/esp-idf/components/libsodium C:/Users/sun/esp-idf/components/log C:/Users/sun/esp-idf/components/lwip C:/Users/sun/Downloads/EspTest/main C:/Users/sun/esp-idf/components/mbedtls C:/Users/sun/esp-idf/components/mdns C:/Users/sun/esp-idf/components/mqtt C:/Users/sun/esp-idf/components/newlib C:/Users/sun/esp-idf/components/nghttp C:/Users/sun/esp-idf/components/nvs_flash C:/Users/sun/esp-idf/components/openssl C:/Users/sun/esp-idf/components/partition_table C:/Users/sun/esp-idf/components/perfmon C:/Users/sun/esp-idf/components/protobuf-c C:/Users/sun/esp-idf/components/protocomm C:/Users/sun/esp-idf/components/pthread C:/Users/sun/esp-idf/components/sdmmc C:/Users/sun/esp-idf/components/soc C:/Users/sun/esp-idf/components/spi_flash C:/Users/sun/esp-idf/components/spiffs C:/Users/sun/esp-idf/components/tcp_transport C:/Users/sun/esp-idf/components/tcpip_adapter C:/Users/sun/esp-idf/components/ulp C:/Users/sun/esp-idf/components/unity C:/Users/sun/esp-idf/components/vfs C:/Users/sun/esp-idf/components/wear_levelling C:/Users/sun/esp-idf/components/wifi_provisioning C:/Users/sun/esp-idf/components/wpa_supplicant C:/Users/sun/esp-idf/components/xtensa
-- Configuring incomplete, errors occurred!
See also "C:/Users/sun/Downloads/EspTest/build/CMakeFiles/CMakeOutput.log".
FAILED: build.ninja
C:\Users\sun\.espressif\tools\cmake\3.13.4\bin\cmake.exe -SC:\Users\sun\Downloads\EspTest -BC:\Users\sun\Downloads\EspTest\build
ninja: error: rebuilding 'build.ninja': subcommand failed
Executing action: all (aliases: build)
Running ninja in directory c:\users\sun\downloads\esptest\build
Executing "ninja all"...
ninja failed with exit code 1

Build Failed

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

Autoclose turned off

FINISHED
----------------------------------------------------------------------------------------

Yours sincerely
Monie

mnfisher
Valued Contributor
Posts: 976
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 105 times
Been thanked: 516 times

Re: ESP toolcain!

Post by mnfisher »

Hi Monie,

The paths still look 'wrong' - it's still using C:\Users\sun\.espressif\tools rather than c:\esp-idf for example. It looks like the subsequent installs are still using this path - or the FC path hasn't been reset correctly.

Can you do a command line compilation - or navigate to c:\esp-idf and run export.bat and tool\idf.py ?

Martin

monie
Posts: 73
Joined: Wed Oct 19, 2022 4:06 pm
Has thanked: 1 time

Re: ESP toolcain!

Post by monie »

Hello all / Martin and mnfisher

I have tried to set up ESP in Flowcode v9 (windows 11).
But too many error messages at the end of Compiling!

Please see below and the attached: Compiler Messages-18-12-2022
------------------------------------------------
See the Compiler Messages errors:
Build Failed
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch\esp32_build.bat reported error code 0x1
Autoclose turned off
FINISHED
--------------------------------------------

See attached file: "Compiler Messages-18-12-2022"

Can anyone here see where it's going wrong and what needs to be done!
Do you have a suggestion!


Yours sincerely
Monie
Attachments
Compiler Messages-18-12-2022.pdf
(115.03 KiB) Downloaded 38 times

Post Reply