ESP32-S2 FCDX request

Post and discuss new components that you have created.
lucibel
Posts: 172
http://meble-kuchenne.info.pl
Joined: Thu Sep 23, 2021 3:44 pm
Location: France
Has thanked: 29 times
Been thanked: 22 times

ESP32-S2 FCDX request

Post by lucibel »

Dear Flowcode team,
We have a customer order and we need to use these Soc's ESP32-S2FH2, ESP32-S2FH4, ESP32-S2FN4R2, it's same family only embedded flash and PSRAM change. see below.
ESP32-S2 members.jpg
ESP32-S2 members.jpg (34.17 KiB) Viewed 3980 times
Could make ASAP the FCDX for ESP32-S2
ESP32-S2 family.jpg
ESP32-S2 family.jpg (69.69 KiB) Viewed 3980 times
esp32_s2_datasheet_en-1773066.pdf
(813.57 KiB) Downloaded 158 times
Thx for your prompt reply, it's urgent
Seb

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

Re: ESP32-S2 FCDX request

Post by BenR »

Hello Seb,

I have an S2 device and we are currently discussing the toolchain and how it's been changed since we last took a snapshop of it.

I already have built into the CAL means of allowing support for old/new versions of the ESP IDF so I'll have a go with a new IDF and see how I get on using the standard ESP32 and the newer S2 device.

lucibel
Posts: 172
Joined: Thu Sep 23, 2021 3:44 pm
Location: France
Has thanked: 29 times
Been thanked: 22 times

Re: ESP32-S2 FCDX request

Post by lucibel »

OK. Thx :)
Please keep me informed of your progress.
Seb

lucibel
Posts: 172
Joined: Thu Sep 23, 2021 3:44 pm
Location: France
Has thanked: 29 times
Been thanked: 22 times

Re: ESP32-S2 FCDX request

Post by lucibel »

hi Ben, do you have an Idea of lead time ?
Seb

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

Re: ESP32-S2 FCDX request

Post by BenR »

Hello,

I've now created a device definition file for the S2 and the C3 devices. Next on the adgenda I need to upgrade my ESP IDF to the latest version and see a) if the new devices work ok and b) if the standard ESP32 works ok. I'll let you know as soon as I make more progress. Hopefully I'll get time to look at the IDF at the end of the week.

lucibel
Posts: 172
Joined: Thu Sep 23, 2021 3:44 pm
Location: France
Has thanked: 29 times
Been thanked: 22 times

Re: ESP32-S2 FCDX request

Post by lucibel »

hello Ben , thx a lot for your prompt reply :D

For your information
I made a program which allows to use the touch pin on ESP32.
I will send you the detail later.
Seb

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

Re: ESP32-S2 FCDX request

Post by BenR »

Hello,

Before I start testing with the S2 I've updated my version of the ESP IDF to version v5.0. Luckily there is a fairly easy way to change version of the IDF using the git engine that is included when we installed the toolchain.

Please note I had some problems when changing version but I have documented my steps to work around the issues. Please note you do the following at your own risk and you may break your toolchain installation in the process.

First click the Start menu and type in ESP, click the ESP-IDF Command Prompt shortcut that appears.

Type the following commands into the command promt window and press enter after each line, note each step may take a few minutes to complete.

Code: Select all

git fetch
git checkout release/v5.1
git pull
git submodule update -f --init --recursive
install.bat
python tools/idf_tools.py uninstall
python tools/idf_tools.py install-python-env
If the git checkout command fails with errors due to local changes in your IDF directory then you can force the checkout and remove your changes using the following command instead.

Code: Select all

git switch -f release/v5.1
For existing projects you will have to remove the cache directory located in the same folder as the Flowcode project file to force a complete recompile.


If you encounter problems then please let us know, I will do my best to test things and work to update the CAL support for the v5.0 IDF but there could be a lot of changes to deal with. It looks like there are some fundemental issues with my IO speed improvements that circumvented some of the IDF routines so that will probably be my starting point.


Should you wish to revert back to the stock v4.1 then you can repeat the process using these commands.

Code: Select all

git fetch
git checkout release/v4.1
git pull
git submodule update -f --init --recursive
install.bat
python tools/idf_tools.py uninstall
python tools/idf_tools.py install-python-env

If and once this works well then I'll add this information to the toolchain installation instructions so it's easily available.

lucibel
Posts: 172
Joined: Thu Sep 23, 2021 3:44 pm
Location: France
Has thanked: 29 times
Been thanked: 22 times

Re: ESP32-S2 FCDX request

Post by lucibel »

Hi Ben,
May be you are making modifications on your last message because I was trying to update to V5.0 but your message disappeared !
Seb

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

Re: ESP32-S2 FCDX request

Post by BenR »

Hi Seb,

Sorry think I'm done editing now.

lucibel
Posts: 172
Joined: Thu Sep 23, 2021 3:44 pm
Location: France
Has thanked: 29 times
Been thanked: 22 times

Re: ESP32-S2 FCDX request

Post by lucibel »

I'm on this step now: install bat

Before "git switch -f release/v5.0" I have updated Git because it was version 2.21
Seb

Post Reply