esp32 wrom not programmed

For general Flowcode discussion that does not belong in the other sections.
Post Reply
luibra63
Posts: 11
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 10:30 pm
Has thanked: 1 time
Been thanked: 4 times

esp32 wrom not programmed

Post by luibra63 »

Hello
i upgraded from flowcode8 to flowcode9 last week.
I installed esp32 toolchain as your guide "esp_installation_instruction.pdf", I installed the driver for "ESP32-WROM-32 NodeMCU by AZ-DELIVERY (silabsCP210x)" and I made a simple flash, everything worked correctly. Today I wanted to change the flashing of the led, but it is no longer programmed, I receive the error code "C: \ ProgramData \ MatrixTSL \ FlowcodeV9 \ FCD \ ESP \ Batch \ esp32_prog.bat reported error code 0x1".
I can't program anymore, I uninstalled everything and reinstalled without success.
Can anyone help me?
Thank you

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: esp32 wrom not programmed

Post by BenR »

Hello,

Please can you attach the .msg.txt file from your project directory and this will show us the error message you are receiving when compiling to target.

luibra63
Posts: 11
Joined: Thu Dec 03, 2020 10:30 pm
Has thanked: 1 time
Been thanked: 4 times

Re: esp32 wrom not programmed

Post by luibra63 »

OK IT'S BIG

Code: Select all

Target folder: C:\Users\lbrai\Documents
Source name:   C:\Users\lbrai\Documents\Flowcode1.fcfx
Title:         
Description:   
Device:        ESP.ESP32.ESP32_WROOM_32
Generated by:  Flowcode v9.2.0.33
Date:          Wednesday, December 08, 2021 00:28:25
Users:         1
Registered to: luibra63 (39177630)
Licence key: 5TR65D
   NOT FOR COMMERCIAL USE
https://www.flowcode.co.uk
Using FCD settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch\esp32_build.bat  "C:\esp-idf\" "Flowcode1" "C:\Users\lbrai\Documents\" esp32s_sdkconfig 

C:\Users\lbrai\Documents>REM CRC: 0796FC1E6A776AF9156B257209C35258CE7C28B3EC20AEA2C632DB392A0E4BFD5B3F53B21811978F7B21FE4085045A7E774D1D3D69D8A99EE7320EAE740A5DB6FE0D8D4660AC0314F98C28BCA92AF856EFD1DB5B777140BC4D00059D795899827D9F76D89626FBC8B199900461C78937B42DEF8219F63A24580137A2F6C8FDB7553324EFF791947E8AB6FFD612B81BAA97C798A8F1CFC189DE5D38517747C774AF2DD6F839BAECF83F7F994C7164CE77868F480396BDEF2F2C3050DA273BE4EE6FE0BB589D1229A5E37B217FF86DBD72A01B8FBC49BE02BFA3608A0B0CE69F969622A912E6E6A2FB 

C:\Users\lbrai\Documents>REM REVISION: 4.0 

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

C:\Users\lbrai\Documents>REM DATE: 29\03\2021 

C:\Users\lbrai\Documents>REM DIR: FCD\ESP\Batch\esp32_build.bat 
Building Flowcode1 ...
Setting IDF_PATH: C:\esp-idf

Adding ESP-IDF tools to PATH...
    C:\esp-idf-tools\tools\xtensa-esp32-elf\esp-2021r1-8.4.0\xtensa-esp32-elf\bin
    C:\esp-idf-tools\tools\xtensa-esp32s2-elf\esp-2021r1-8.4.0\xtensa-esp32s2-elf\bin
    C:\esp-idf-tools\tools\xtensa-esp32s3-elf\esp-2021r1-8.4.0\xtensa-esp32s3-elf\bin
    C:\esp-idf-tools\tools\riscv32-esp-elf\esp-2021r1-8.4.0\riscv32-esp-elf\bin
    C:\esp-idf-tools\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin
    C:\esp-idf-tools\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin
    C:\esp-idf-tools\tools\cmake\3.16.4\bin
    C:\esp-idf-tools\tools\openocd-esp32\v0.10.0-esp32-20210401\openocd-esp32\bin
    C:\esp-idf-tools\tools\ninja\1.10.2\
    C:\esp-idf-tools\tools\idf-exe\1.0.1\
    C:\esp-idf-tools\tools\ccache\3.7\
    C:\esp-idf-tools\tools\dfu-util\0.9\dfu-util-0.9-win64
    C:\esp-idf-tools\python_env\idf4.3_py3.7_env\Scripts
    C:\esp-idf\tools
    
Checking if Python packages are up to date...
Python requirements from C:\esp-idf\requirements.txt are satisfied.

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

  idf.py build

[1/8] Performing build step for 'bootloader'
ninja: no work to do.
[2/6] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/esp-project.c.obj
In file included from ../main/esp-project.c:40:
C:/esp-idf/components/esp_event/include/esp_event_loop.h:2:2: warning: #warning "esp_event_loop.h is deprecated, please include esp_event.h instead" [-Wcpp]
 #warning "esp_event_loop.h is deprecated, please include esp_event.h instead"
  ^~~~~~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:110,
                 from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:567,
                 from ../main/esp-project.c:50:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_Float.c:91:6: warning: conflicting types for built-in function '__builtin_isinf_sign' [-Wbuiltin-declaration-mismatch]
 char isinf(float f)
      ^~~~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:567,
                 from ../main/esp-project.c:50:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:873:13: warning: 'FCI_SCOPY' defined but not used [-Wunused-function]
 static void FCI_SCOPY(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_STRING sDst, MX_UINT16 iDst_len)
             ^~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:812:13: warning: 'FCI_SHEAD' defined but not used [-Wunused-function]
 static void FCI_SHEAD(MX_STRING sSrc1, MX_UINT16 iSrc1_len, MX_STRING sSrc2, MX_UINT16 iSrc2_len, MX_STRING sDst, MX_UINT16 iDst_len)
             ^~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:792:18: warning: 'FCI_STRMOV' defined but not used [-Wunused-function]
 static MX_UINT16 FCI_STRMOV(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_STRING sDst, MX_UINT16 iDst_len)
                  ^~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:768:18: warning: 'FCI_STRREV' defined but not used [-Wunused-function]
 static MX_UINT16 FCI_STRREV(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_STRING sDst, MX_UINT16 iDst_len)
                  ^~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:698:17: warning: 'FCI_STRING_TO_FLOAT' defined but not used [-Wunused-function]
 static MX_FLOAT FCI_STRING_TO_FLOAT(MX_STRING String, MX_UINT16 MSZ_String)
                 ^~~~~~~~~~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:595:18: warning: 'FCI_NUMBER_TO_HEX' defined but not used [-Wunused-function]
 static MX_STRING FCI_NUMBER_TO_HEX(MX_ULONG Number, MX_STRING String, MX_UINT16 MSZ_String)
                  ^~~~~~~~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:531:18: warning: 'FCI_FLOAT_TO_STRING' defined but not used [-Wunused-function]
 static MX_STRING FCI_FLOAT_TO_STRING(MX_FLOAT Number, MX_UINT8 Precision, MX_STRING String, MX_UINT16 MSZ_String)
                  ^~~~~~~~~~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:476:17: warning: 'FCI_COMPARE' defined but not used [-Wunused-function]
 static MX_UINT8 FCI_COMPARE(MX_STRING sSrc1, MX_UINT16 iSrc1_len, MX_STRING sSrc2, MX_UINT16 iSrc2_len, MX_UINT8 iNoCase)
                 ^~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:450:13: warning: 'FCI_TOUPPER' defined but not used [-Wunused-function]
 static void FCI_TOUPPER(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_STRING sDst, MX_UINT16 iDst_len)
             ^~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:424:13: warning: 'FCI_TOLOWER' defined but not used [-Wunused-function]
 static void FCI_TOLOWER(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_STRING sDst, MX_UINT16 iDst_len)
             ^~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:331:10: warning: 'FCI_TOSTRU32' defined but not used [-Wunused-function]
 MX_UINT8 FCI_TOSTRU32(MX_UINT32 iSrc1, MX_STRING sDst, MX_UINT16 iDst_len)
          ^~~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:297:10: warning: 'FCI_TOSTRU16' defined but not used [-Wunused-function]
 MX_UINT8 FCI_TOSTRU16(MX_UINT16 iSrc1, MX_STRING sDst, MX_UINT16 iDst_len)
          ^~~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:254:10: warning: 'FCI_TOSTRS32' defined but not used [-Wunused-function]
 MX_UINT8 FCI_TOSTRS32(MX_SINT32 iSrc1, MX_STRING sDst, MX_UINT16 iDst_len)
          ^~~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:211:10: warning: 'FCI_TOSTRS16' defined but not used [-Wunused-function]
 MX_UINT8 FCI_TOSTRS16(MX_SINT16 iSrc1, MX_STRING sDst, MX_UINT16 iDst_len)
          ^~~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:182:18: warning: 'FCI_RIGHTSTRING' defined but not used [-Wunused-function]
 static MX_STRING FCI_RIGHTSTRING(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_UINT16 iCount, MX_STRING sDst, MX_UINT16 iDst_len)
                  ^~~~~~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:159:18: warning: 'FCI_LEFTSTRING' defined but not used [-Wunused-function]
 static MX_STRING FCI_LEFTSTRING(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_UINT16 iCount, MX_STRING sDst, MX_UINT16 iDst_len)
                  ^~~~~~~~~~~~~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:567,
                 from ../main/esp-project.c:50:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:129:18: warning: 'FCI_MIDSTRING' defined but not used [-Wunused-function]
 static MX_STRING FCI_MIDSTRING(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_UINT16 iStart, MX_UINT16 iCount, MX_STRING sDst, MX_UINT16 iDst_len)
                  ^~~~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:121:18: warning: 'FCI_GETLENGTH' defined but not used [-Wunused-function]
 static MX_UINT16 FCI_GETLENGTH(MX_STRING sStr1, MX_UINT16 iStr1_len)
                  ^~~~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:113:17: warning: 'FCI_GETCHAR' defined but not used [-Wunused-function]
 static MX_UINT8 FCI_GETCHAR(MX_STRING sStr1, MX_UINT16 iStr1_len, MX_UINT16 iPos)
                 ^~~~~~~~~~~
[3/6] Linking C static library esp-idf\main\libmain.a
. . .

[4/6] Generating ld/esp32.project.ld
[5/6] Linking CXX executable esp-project.elf
[6/6] Generating binary image from built executable
esptool.py v3.1-dev
Merged 2 ELF sections
Generated C:/Users/lbrai/Documents/Flowcode1/build/esp-project.bin
Executing action: all (aliases: build)
Running ninja in directory c:\users\lbrai\documents\flowcode1\build
Executing "ninja all"...

Project build complete. To flash, run this command:
C:\esp-idf-tools\python_env\idf4.3_py3.7_env\Scripts\python.exe ..\..\..\..\esp-idf\components\esptool_py\esptool\esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset --chip esp32  write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 build\bootloader\bootloader.bin 0x8000 build\partition_table\partition-table.bin 0x10000 build\esp-project.bin
or run 'idf.py -p (PORT) flash'

Build completed successfully 

Using FCD settings for linker
Launching the linker/assembler...
C:\Program Files (x86)\Flowcode v9\data\tools\DoNothing\DoNothing.exe  

Using FCD settings for programmer
Launching the programmer...
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch\esp32_prog.bat  "C:\esp-idf\" "Flowcode1" "C:\Users\lbrai\Documents\" COM10 115200

C:\Users\lbrai\Documents>REM CRC: 0796FC1E6A776AF9156B257209C35258CE7C28B3EC20AEA2C632DB392A0E4BFD51BCA0B0BE9D29A6967C85454D48D34EF6A4CCB7873802B223E4F4A1008A3591A32B46A47AAB2D21848A68B9581D31BC91C05B2A7E3ADB3C4D00059D795899828FA8FC08CAA3178C36704C7C6C9A47105E07F5A3DAE9F727EBE89217067498807D244771FDC991670F5FFC06582E728E4759676487E14245E7CE4E83DB1D25714B4A4F3814D91BF78F4943FF2251F1F8F8986F778F588E992C3050DA273BE4EE1DBDD6E61D775CC70D0E5F8D3FCF5A48FB91B184043A20212EABD4ED9561D2123431AF726C5DC381 

C:\Users\lbrai\Documents>REM REVISION: 3.0 

C:\Users\lbrai\Documents>REM GUID: 23F1E3A0-C4DC-4746-B4FD-05C4AFBA61E9 

C:\Users\lbrai\Documents>REM DATE: 09\03\2021 

C:\Users\lbrai\Documents>REM DIR: FCD\ESP\Batch\esp32_prog.bat 
Programming Flowcode1 ...
Setting IDF_PATH: C:\esp-idf

Adding ESP-IDF tools to PATH...
    C:\esp-idf-tools\tools\xtensa-esp32-elf\esp-2021r1-8.4.0\xtensa-esp32-elf\bin
    C:\esp-idf-tools\tools\xtensa-esp32s2-elf\esp-2021r1-8.4.0\xtensa-esp32s2-elf\bin
    C:\esp-idf-tools\tools\xtensa-esp32s3-elf\esp-2021r1-8.4.0\xtensa-esp32s3-elf\bin
    C:\esp-idf-tools\tools\riscv32-esp-elf\esp-2021r1-8.4.0\riscv32-esp-elf\bin
    C:\esp-idf-tools\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin
    C:\esp-idf-tools\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin
    C:\esp-idf-tools\tools\cmake\3.16.4\bin
    C:\esp-idf-tools\tools\openocd-esp32\v0.10.0-esp32-20210401\openocd-esp32\bin
    C:\esp-idf-tools\tools\ninja\1.10.2\
    C:\esp-idf-tools\tools\idf-exe\1.0.1\
    C:\esp-idf-tools\tools\ccache\3.7\
    C:\esp-idf-tools\tools\dfu-util\0.9\dfu-util-0.9-win64
    C:\esp-idf-tools\python_env\idf4.3_py3.7_env\Scripts
    C:\esp-idf\tools
    
Checking if Python packages are up to date...
Python requirements from C:\esp-idf\requirements.txt are satisfied.

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

  idf.py build

[1/4] Performing build step for 'bootloader'
ninja: no work to do.
[1/2] cmd.exe /C "cd /D C:\esp-idf\components\esptool_py && C:\esp-idf-tools\tools\cmake\3.16.4\bin\cmake.exe -D IDF_PATH="C:/esp-idf" -D SERIAL_TOOL="C:/esp-idf-tools/python_env/idf4.3_py3.7_env/Scripts/python.exe C:/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32" -D SERIAL_TOOL_ARGS="--before=default_reset --after=hard_reset write_flash @flash_args" -D WORKING_DIRECTORY="C:/Users/lbrai/Documents/Flowcode1/build" -P C:/esp-idf/components/esptool_py/run_serial_tool.cmake"
esptool.py esp32 -p COM10 -b 115200 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 esp-project.bin
esptool.py v3.1-dev
Serial port COM10
Connecting...
.
.
.
.
.
. . . .

_
_
_
_
_
.
.
.
.
.
. . .

_
_
_
_
_
.
.
.
.
.
. . .

_
_
_
_
_
.
.
.
.
.
. .

_
_
_
_
_
.
.
.
.
.
. . .

_
_
_
_
_
.
.
.
.
.
. . .

_
_
_
_
_
.
.
.
.
.
. . .

_
_
_
_
_


A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
CMake Error at run_serial_tool.cmake:50 (message):
  C:/esp-idf-tools/python_env/idf4.3_py3.7_env/Scripts/python.exe
  C:/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 failed
FAILED: CMakeFiles/flash 
cmd.exe /C "cd /D C:\esp-idf\components\esptool_py && C:\esp-idf-tools\tools\cmake\3.16.4\bin\cmake.exe -D IDF_PATH="C:/esp-idf" -D SERIAL_TOOL="C:/esp-idf-tools/python_env/idf4.3_py3.7_env/Scripts/python.exe C:/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32" -D SERIAL_TOOL_ARGS="--before=default_reset --after=hard_reset write_flash @flash_args" -D WORKING_DIRECTORY="C:/Users/lbrai/Documents/Flowcode1/build" -P C:/esp-idf/components/esptool_py/run_serial_tool.cmake"
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
Executing action: flash
Running ninja in directory c:\users\lbrai\documents\flowcode1\build
Executing "ninja flash"...
Programming Failed

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

Autoclose turned off


FINISHED
BEST REGARDS

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 469 times

Re: esp32 wrom not programmed

Post by medelec35 »

Hi.
Next time you go to program, as soon as you see the word Connecting...
Hold the boot button ( nearest the CLK pin) down until you hopefully see the words Writing.
Martin

luibra63
Posts: 11
Joined: Thu Dec 03, 2020 10:30 pm
Has thanked: 1 time
Been thanked: 4 times

Re: esp32 wrom not programmed

Post by luibra63 »

woww medlec35
I don't know how to thank you, I've been working on it all today, 1 time out of 10 it worked, but I couldn't understand. thank you very much and good night

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 469 times

Re: esp32 wrom not programmed

Post by medelec35 »

Hi, luibra63.
You're welcome.
Thanks for letting us know the solution works for you.
I have just highlighted all of the compiler text and selected the Code display icon </>.
That contains the code within a much smaller area.
For future reference, rather than copy and paste, you select the Attachments tab, Add files, than add the .msg.txt file for your project.
Martin

luibra63
Posts: 11
Joined: Thu Dec 03, 2020 10:30 pm
Has thanked: 1 time
Been thanked: 4 times

Re: esp32 wrom not programmed

Post by luibra63 »

thanks Martin.
Perfect, it's the first time I write in this forum, we met in the old forum for problems with FC7 or FC8 and you helped me too. Thanks again

MJU20
Posts: 237
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 75 times
Been thanked: 50 times

Re: esp32 wrom not programmed

Post by MJU20 »

After a few hours of testing and checking the compiler messages, I found this topic and this is just what I needed.

Thanks medelec35!

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 469 times

Re: esp32 wrom not programmed

Post by medelec35 »

luibra63 & MJU20 I'm glad I can help you both program the Wroom.
ESP32 devices have their quirks, but they are great devices.
I'm glad I could help you both out.
Martin

Post Reply