Good afternoon. You solved the problem with flovcode 10, but what about those who bought flovcode 9, but don’t have money for flovcode 10, I’m from Ukraine - there’s a war here and there’s no money for an update.
When reinstalling the flowcode and installing esp-idf-tools-setup-2.3, there is no choice of version 4.1, the minimum version is 5.0. What should I do? Maybe you can fix the problem in flowcode 9?
When I had the opportunity, I bought both Flowcode 7 and then Flowcode 9, but now because of the war I can’t buy it. The job is gone...
Help please.
ESP32 Compile errors
-
- Posts: 19
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 01, 2021 7:22 am
- Has thanked: 1 time
ESP32 Compile errors
- Attachments
-
- Flowcode2024.fcfx
- (117.74 KiB) Downloaded 54 times
-
- Flowcode2024.msg.txt
- (298.53 KiB) Downloaded 55 times
-
- Valued Contributor
- Posts: 1607
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 357 times
- Been thanked: 565 times
Re: ESP32 Compile errors
HI
Whilst your chip, a TTGO isn't included in the free chip pack, other ESP32 devices are, and as v10 is now free for hobbyist's and all components are free in v10, you should be able to use v10 and a ST7789.
Unfortunately Matrix isn't in control of the third-party software required to use ESP devices and the vendors often change things without notice. This has caught me out in the past too, and I have had to search the web for previous versions of idf-tools. I can however confirm that if you follow the install instructions exactly as documented in the latest guide, it does work.
Regards
Whilst your chip, a TTGO isn't included in the free chip pack, other ESP32 devices are, and as v10 is now free for hobbyist's and all components are free in v10, you should be able to use v10 and a ST7789.
Unfortunately Matrix isn't in control of the third-party software required to use ESP devices and the vendors often change things without notice. This has caught me out in the past too, and I have had to search the web for previous versions of idf-tools. I can however confirm that if you follow the install instructions exactly as documented in the latest guide, it does work.
Regards
Re: ESP32 Compile errors
I installed Flowcode 10 using the method described on the forum. Before this, I installed a clean Windows 10. Errors and no compilation of ESP 32.
Everything was installed according to the method from the forum. But it doesn't work.
The installation files were exactly the same as in the installation procedure.
Everything was installed according to the method from the forum. But it doesn't work.
The installation files were exactly the same as in the installation procedure.
- Attachments
-
- Flowcode1.fcfx
- (54.52 KiB) Downloaded 57 times
-
- installing ESP32 toolchain.txt
- (1.88 KiB) Downloaded 62 times
-
- compiller message.txt
- (206.36 KiB) Downloaded 63 times
-
- Valued Contributor
- Posts: 1551
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 138 times
- Been thanked: 739 times
Re: ST7789 display
It looks as though it has installed and is compiling okay....
The (first) error is :
You can work around it - or fix the component (as the source is available...) - by coercing the type to what the compiler wants...
Martin
The (first) error is :
The function GetRxArray is expecting an array of MX_UINT8 (unsigned bytes) but is getting MX_CHAR (signed bytes) - the esp32 compiler is 'very' picky about types....FCD_0bd11_WLAN_ESP12S1__GetRxArray' differ in signedness [-Werror=pointer-sign]
2609 | {
| ^
| |
| MX_CHAR * {aka char *}
You can work around it - or fix the component (as the source is available...) - by coercing the type to what the compiler wants...
Martin
-
- Valued Contributor
- Posts: 1551
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 138 times
- Been thanked: 739 times
Re: ESP32 Compile errors
Also to get rid of the 'dubious' ownership error.
Open a command prompt and do
It is possible to compile your code - by adding the following to YourProg/main/CMakeLists.txt (note that if you've used the latest install version - all programs have the same directory which is ?)
The 'signedness' issue doesn't matter - and the uninitialized RetVal may or may not (and is a bug in the component)...
Which tells the compiler to ignore the offending errors (obviously fixing the errors would be better
Martin
Open a command prompt and do
There is also a problem with a (possibly) unitiailised return value in one of the library routines (EndServerConnection)git config --global --add safe.directory C:/Espressif/frameworks/esp-idf-v5.0.1
It is possible to compile your code - by adding the following to YourProg/main/CMakeLists.txt (note that if you've used the latest install version - all programs have the same directory which is ?)
The 'signedness' issue doesn't matter - and the uninitialized RetVal may or may not (and is a bug in the component)...
Code: Select all
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-cpp)
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-unused-function)
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-unused-variable)
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-unused-but-set-variable)
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-incompatible-pointer-types)
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-discarded-qualifiers)
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-int-conversion)
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-uninitialized)
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-pointer-sign)

Martin
Re: ESP32 Compile errors
I thought maybe my computer was bad, I installed everything on my wife’s MacBook, a Mac with Windows 10 installed as a second system. Intel i7 processor, 16 GB memory. The system is clean. But the miracle did not happen.
Look carefully at the errors in both cases - everything leads to the fact that the problem is in the flowcode components, and not in the expressive programs.
Look carefully at the errors in both cases - everything leads to the fact that the problem is in the flowcode components, and not in the expressive programs.
- Attachments
-
- message compiller mac.txt
- (164.74 KiB) Downloaded 56 times
-
- Flowcode1.fcfx
- (56.12 KiB) Downloaded 57 times
Re: ESP32 Compile errors
Good afternoon,
In general, in order to compile the program, I had to replace the ESP12 component with ESP32, the program compiled. But in hardware the ESP32 component is not working (even in Flovcode 9 it did not connect to Wifi, which remains in Flovcode 10). I tried to replace ESP32 with ESP12 and this also did not work due to the fact that both components are not working.
The program shows that I disabled the return of data on the initialization of the ESP32 component - the data is not returned.
I wonder if the developers somehow check the performance of their program? /Or is the main goal to sell the product and let users somehow improve it themselves? But how to improve without source code?
Versions 5 and 7 of Flowcode were still working relatively well, but then it started to get worse and worse.
I'm thinking more and more about switching to the Arduino platform.
In general, in order to compile the program, I had to replace the ESP12 component with ESP32, the program compiled. But in hardware the ESP32 component is not working (even in Flovcode 9 it did not connect to Wifi, which remains in Flovcode 10). I tried to replace ESP32 with ESP12 and this also did not work due to the fact that both components are not working.
The program shows that I disabled the return of data on the initialization of the ESP32 component - the data is not returned.
I wonder if the developers somehow check the performance of their program? /Or is the main goal to sell the product and let users somehow improve it themselves? But how to improve without source code?
Versions 5 and 7 of Flowcode were still working relatively well, but then it started to get worse and worse.
I'm thinking more and more about switching to the Arduino platform.
- Attachments
-
- Flowcode1_net_ESP12.fcfx
- (55.37 KiB) Downloaded 60 times
-
- Log UART and Router.png (200.64 KiB) Viewed 2328 times
-
- Matrix Staff
- Posts: 1990
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 630 times
- Been thanked: 663 times
Re: ESP32 Compile errors
Hello.
Please don't hijack other topics, I have created your own topic.
As for the esp32 errors, we have no control over external compiler like ESP32.
The components worked with an older version of ESO32 and other compilers.
We are looking into fixing the issues, so you will be able to compile with FC10 without requiring additional code.
Thank you to the VC members that have contributed, you have done a great job.
Please don't hijack other topics, I have created your own topic.
As for the esp32 errors, we have no control over external compiler like ESP32.
The components worked with an older version of ESO32 and other compilers.
We are looking into fixing the issues, so you will be able to compile with FC10 without requiring additional code.
Thank you to the VC members that have contributed, you have done a great job.
Martin
-
- Valued Contributor
- Posts: 1607
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 357 times
- Been thanked: 565 times
Re: ESP32 Compile errors
Hi
I don't have much time at present, but a brief look through your chart above, the one in which you complain that the components don't work, show some concern. One of which is that you connect to a server but do allow any time for the server to respond before making a decision as to whether you have connected or not.
If I get a chance later in the week I will try and give you an example, but there are recent posts that illustrate the (very) basic steps to use an ESP32 to communicate with a server. You might want to look at those.
Hope this helps.
I don't have much time at present, but a brief look through your chart above, the one in which you complain that the components don't work, show some concern. One of which is that you connect to a server but do allow any time for the server to respond before making a decision as to whether you have connected or not.
If I get a chance later in the week I will try and give you an example, but there are recent posts that illustrate the (very) basic steps to use an ESP32 to communicate with a server. You might want to look at those.
Hope this helps.
-
- Valued Contributor
- Posts: 1607
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 357 times
- Been thanked: 565 times
Re: ESP32 Compile errors
Hi
Travel delay so I have a bit of free time, but not much.
In your chart Flowcode1 you are using an ESP12S component but your actual target is an ESP32_WROOM_32 and wish to connect to a MQTT broker. How does it know what to connect to? I can't see any broker documented. I would expect problems when compiling to target with this chart.
In chart Flowcode1_net_ESP12 you are actually using an ESP32_WROOM_32. Your Network Component isn't linked to the ESP32 module though.
Again I do not see any broker documented so how does it know where to connect to?
If these modules are incapable of connecting to SSID/Host as you suggest then many, many issues would be reported. The fact that they are not, and a brief search through posts and the WiKi give examples of connecting to SSIDs, Servers and Brokers suggests that Flowcode does indeed work with these modules.
If you "right-click" on a component you will see a Help option that takes you to the WiKi, in which you will usually find examples and source codes.
Hope this helps.
Travel delay so I have a bit of free time, but not much.
In your chart Flowcode1 you are using an ESP12S component but your actual target is an ESP32_WROOM_32 and wish to connect to a MQTT broker. How does it know what to connect to? I can't see any broker documented. I would expect problems when compiling to target with this chart.
In chart Flowcode1_net_ESP12 you are actually using an ESP32_WROOM_32. Your Network Component isn't linked to the ESP32 module though.
Again I do not see any broker documented so how does it know where to connect to?
If these modules are incapable of connecting to SSID/Host as you suggest then many, many issues would be reported. The fact that they are not, and a brief search through posts and the WiKi give examples of connecting to SSIDs, Servers and Brokers suggests that Flowcode does indeed work with these modules.
If you "right-click" on a component you will see a Help option that takes you to the WiKi, in which you will usually find examples and source codes.
Hope this helps.