ESP32 IDF v5.0 Support

For general Flowcode discussion that does not belong in the other sections.
BenR
Matrix Staff
Posts: 1901
http://meble-kuchenne.info.pl
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 494 times
Been thanked: 668 times

Flowcode v10 ESP32 IDF v5.0 Support

Post by BenR »

Hello,

I have made more progress with IDF version 5.0 and so I thought I would document progress here. I'm not finding a lot of time during the day and so beer in hand I had another dive into the code last night.

First of all you can move between your IDF versions by following the commands I posted here.
viewtopic.php?p=9222#p9222

This allows you to update the IDF to v5.0 and then roll back to the original v4.1 if needed.

As of today the ADC, Bluetooth and WIFI are now compiling, everything else (IO, SPI, I2C, I2S, PWM, UART) should also be compiling and working. Anything that isn't working on the latest IDF then please let me know.

The next stage once everything is compiling is to look at how to implement the ESP32 S2 and C3 device FCDs and make appropriate changes to the compile and program batch files to accomidate these changes.

SpeedPIC32
Posts: 260
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: ESP32 IDF v5.0 Support

Post by SpeedPIC32 »

Hello
I tried it, it does not work for me .
will there be a customized toolchain to facilitate the installation of ESP32?
how do I uninstall all the components to install everything cleanly again.
Ic also installed it on a new computer and it did not work there either.

Greetings SpeedPic32

BenR
Matrix Staff
Posts: 1901
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 494 times
Been thanked: 668 times

Re: ESP32 IDF v5.0 Support

Post by BenR »

Hello,

When you say not working what errors are you getting and how have you transitioned to IDF v5.0? Did you follow the instructions I linked above?

I started getting an error regarding --no-hints on the last transition I did which I have now managed to fix so let me kow if this is what you are getting too.

When IDF v5.0 is known working and stable we will likely revisit the toolchain installation document.

SpeedPIC32
Posts: 260
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: ESP32 IDF v5.0 Support

Post by SpeedPIC32 »

Hello Ben,

here the message

Greeting SpeedPic32
Attachments
Setup Log 2023-04-20 #001.txt
(48.75 KiB) Downloaded 453 times
idf.jpg
idf.jpg (43.99 KiB) Viewed 11810 times

BenR
Matrix Staff
Posts: 1901
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 494 times
Been thanked: 668 times

Re: ESP32 IDF v5.0 Support

Post by BenR »

Interesting, do you have admin permissions and is Windows Defender running as normal?
What version of Windows are you on?
Do you have any antivirus software running?

BenR
Matrix Staff
Posts: 1901
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 494 times
Been thanked: 668 times

Re: ESP32 IDF v5.0 Support

Post by BenR »

Does your windows username have a full stop in it? Maybe causing the problem? uwe.kapuschinski

stefan.erni
Valued Contributor
Posts: 893
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 175 times
Been thanked: 206 times

Re: ESP32 IDF v5.0 Support

Post by stefan.erni »

Hi Ben

Just a small problem with the toolchain IDF v5.0. It works now , but maybe you know a tip for it.

I have installed FC10 on a new computer with Win10.

Then I downloaded from the internet and instaled:

IDF v5.0.1
Python 3.11
Git

and set in FC10 under: global setting/option/locations the path for ESP-IDF

This give a problem, it did not found the py3.11 folder while compiling
Capture2.PNG
Capture2.PNG (7.91 KiB) Viewed 11767 times
I can not fix i,t so i copy the folder idf5.0_py3.8_env and renamed the copy to idf5.0_py3.11_env.
So it's working and compiling and flush the program to the ESP32 hardware.
Capture_copy_and_change.PNG
Capture_copy_and_change.PNG (10.17 KiB) Viewed 11767 times
Not the best way.....

regards

Stefan

stefan.erni
Valued Contributor
Posts: 893
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 175 times
Been thanked: 206 times

Re: ESP32 IDF v5.0 Support

Post by stefan.erni »

Hi Ben

I have created a new ESP32 project and selected type C3 chip. I have also connected a ESP32 C3 hardware

It looks every thing working.... compiling to hex and chip. But it's not flashing to the chip

A fatal error occurred: This chip is ESP32-C3 not ESP32. Wrong --chip argument?
CMake Error at run_serial_tool.cmake:55 (message):

regards

Stefan

BenR
Matrix Staff
Posts: 1901
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 494 times
Been thanked: 668 times

Re: ESP32 IDF v5.0 Support

Post by BenR »

Hi Stefan,

I've made some new menuconfig files for the S2 and C3 device and changed the device name in there to hopefully match the new chip types.

I've pushed these changes to the update system for you now so fingers crossed we get a bit further. You will have to do a full database update to get the new menuconfig files.

I don't have the v5.0 IDF installed here to test but I'll give it a go tomorrow.

stefan.erni
Valued Contributor
Posts: 893
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 175 times
Been thanked: 206 times

Re: ESP32 IDF v5.0 Support

Post by stefan.erni »

Hi Ben

There is a small problem to update this.
Attachments
esp32_c3.PNG
esp32_c3.PNG (25.4 KiB) Viewed 11684 times

Post Reply