My test program fails when run on chip but passes in simulator, The program is test yto see if WiFi initialisation has completed successfully
I recieve the below message. when compiled to chip. I am using free version off flowcode 11
[2/4] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D D:\Flowcode_v11\Compilers\esp32\mtxesp32s_sdkconfig\build\bootloader\esp-idf\esptool_py && "D:\Flowcode v11\Compilers\esp32\esp-tools\python_env\idf5.3_py3.11_env\Scripts\python.exe" "D:/Flowcode v11/Compilers/esp32/frameworks/esp-idf-v5.3.1/components/partition_table/check_sizes.py" --offset 0x8000 bootloader 0x1000 D:/Flowcode_v11/Compilers/esp32/mtxesp32s_sdkconfig/build/bootloader/bootloader.bin"
Bootloader binary size 0x6880 bytes. 0x780 bytes (7%) free.
error: unexpected format of input section ".init 0x40080400 0x3 D:/Flowcode v11/Compilers/esp32/esp-tools/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/esp32/no-rtti/crti.o" at line 36959 in "Linker script and memory map" section in "D:\Flowcode_v11\Compilers\esp32\mtxesp32s_sdkconfig\build\esp-project.map" map file
CMake Error at D:/Flowcode v11/Compilers/esp32/frameworks/esp-idf-v5.3.1/tools/cmake/run_size_tool.cmake:42 (message):
D:/Flowcode
v11/Compilers/esp32/esp-tools/python_env/idf5.3_py3.11_env/Scripts/python.exe;-m;esp_idf_size
failed
[0/1] cmd.exe /C "cd /D D:\Flowcode_v11\Compilers\esp32\mtxesp32s_sdkconfig\build && "D:\Flowcode v11\Compilers\esp32\esp-tools\tools\cmake\3.24.0\bin\cmake.exe" -D "IDF_SIZE_TOOL=D:/Flowcode v11/Compilers/esp32/esp-tools/python_env/idf5.3_py3.11_env/Scripts/python.exe;-m;esp_idf_size" -D MAP_FILE=D:/Flowcode_v11/Compilers/esp32/mtxesp32s_sdkconfig/build/esp-project.map -D OUTPUT_JSON= -P "D:/Flowcode v11/Compilers/esp32/frameworks/esp-idf-v5.3.1/tools/cmake/run_size_tool.cmake""
FAILED: CMakeFiles/size D:/Flowcode_v11/Compilers/esp32/mtxesp32s_sdkconfig/build/CMakeFiles/size
cmd.exe /C "cd /D D:\Flowcode_v11\Compilers\esp32\mtxesp32s_sdkconfig\build && "D:\Flowcode v11\Compilers\esp32\esp-tools\tools\cmake\3.24.0\bin\cmake.exe" -D "IDF_SIZE_TOOL=D:/Flowcode v11/Compilers/esp32/esp-tools/python_env/idf5.3_py3.11_env/Scripts/python.exe;-m;esp_idf_size" -D MAP_FILE=D:/Flowcode_v11/Compilers/esp32/mtxesp32s_sdkconfig/build/esp-project.map -D OUTPUT_JSON= -P "D:/Flowcode v11/Compilers/esp32/frameworks/esp-idf-v5.3.1/tools/cmake/run_size_tool.cmake""
ninja: build stopped: subcommand failed.
my simple programe.
----------------------------------------
gLCD_ILI9341_SPI1::Initialise()
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
Connected = "Wifi Unintialised"
----------------------------------------
----------------------------------------
gLCD_ILI9341_SPI1::Print(Connected, 5, 10, 0, 0)
----------------------------------------
----------------------------------------
While Connect = 0
<LOOP>
----------------------------------------
Connect=WLAN_ESP32::Initialise()
----------------------------------------
----------------------------------------
10 ms
----------------------------------------
----------------------------------------
If Connect = 1 ?
<TRUE BRANCH>
----------------------------------------
Connected = "Wifi intialised "
----------------------------------------
----------------------------------------
gLCD_ILI9341_SPI1::Print(Connected, 5, 10, 0, 0)
----------------------------------------
</TRUE BRANCH>
<FALSE BRANCH>
</FALSE BRANCH>
----------------------------------------
</LOOP>
----------------------------------------
----------------------------------------
gLCD_ILI9341_SPI1::Print("Completed", 5, 15, 0, 0)
----------------------------------------
Flowcode11 failed to intialise WiFi
-
JohnF
- Posts: 2
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 10, 2020 8:21 pm
-
BenR
- Matrix Staff
- Posts: 2032
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 539 times
- Been thanked: 722 times
Re: Flowcode11 failed to intialise WiFi
Hi Jophn,
PLease can you attach your program and we will investigate what might be causing this.
PLease can you attach your program and we will investigate what might be causing this.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: Flowcode11 failed to intialise WiFi
The simple program was attached.
It fails at WLan_ESP32::Initiallise. esp32 restarts at this point. Intialise fails. Maybe due to wrong esp32 module being loaded. I have trial version as I am unable to pay with my address with card. Think it may be due to this.
It fails at WLan_ESP32::Initiallise. esp32 restarts at this point. Intialise fails. Maybe due to wrong esp32 module being loaded. I have trial version as I am unable to pay with my address with card. Think it may be due to this.
-
medelec35
- Valued Contributor
- Posts: 2207
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 672 times
- Been thanked: 751 times
Re: Flowcode11 failed to intialise WiFi
Hi John.
When Ben asks for program, he will be referring to project name.fcfx file.
What would also help is .msg.txt and .fcxlog.txt files.
The reason could be not set properties correctly, some other component interfering, component not up to-date etc.
You can add the files by selecting Full Editor & preview below the text window
.msg.txt is not required for this post as you have copied and pasted it.
For future reference can you highlight all the 'msg.txt then click on code display </> which is just below the subject field.
When Ben asks for program, he will be referring to project name.fcfx file.
What would also help is .msg.txt and .fcxlog.txt files.
The reason could be not set properties correctly, some other component interfering, component not up to-date etc.
You can add the files by selecting Full Editor & preview below the text window
.msg.txt is not required for this post as you have copied and pasted it.
For future reference can you highlight all the 'msg.txt then click on code display </> which is just below the subject field.
Martin
-
BenR
- Matrix Staff
- Posts: 2032
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 539 times
- Been thanked: 722 times
Re: Flowcode11 failed to intialise WiFi
If you're compiling an ESP32 project for a board with ESP32 then that should be fine. If however you're compiling an ESP32 project for a board with for example an ESP32S3 then that probably won't be fine.
How are you powering the board? could be that the wifi is trying to come online and then not having enough current which is then browning out the circuitry.
If you use a serial monitor then what type of message do you get from the ESP module when it resets?
How are you powering the board? could be that the wifi is trying to come online and then not having enough current which is then browning out the circuitry.
If you use a serial monitor then what type of message do you get from the ESP module when it resets?
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel