ESP32-S2 FCDX request

Post and discuss new components that you have created.
BenR
Matrix Staff
Posts: 1739
http://meble-kuchenne.info.pl
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,

FInally some updates.

I now have I/O, I2C, SPI, PWM, UART, Delays compiling in IDF v5.0 and I've hopefully done things in a way that will allow v4.1 and v5.0 to both work.

Currently struggling with ADC which seems to have been rewritten from the ground up and massively overcomplicated. I'll try and keep chipping away with this one.

WIFI and Bluetooth currently are untested.

I've pushed out the changes to the update system today and if anyone has a go with v5.0 then I'm very interested as to how you're getting on.

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,
Nice to ear that !
I've pushed out the changes to the update system today and if anyone has a go with v5.0 then I'm very interested as to how you're getting on.
You mean on FC10 or FC9 ?
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 it's V10 I've been making the changes to.

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 »

Progress on this has now been moved here.
viewtopic.php?f=3&t=1879

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

Re: ESP32-S2 FCDX request

Post by MJU20 »

Can't get the ESP IDF to update to V5.0

After: "git checkout release/v5.0"

Code: Select all

Please commit your changes or stash them before you switch branches.
error: The following untracked working tree files would be overwritten by checkout:
        components/esptool_py/esptool/espefuse.py
        components/esptool_py/esptool/espsecure.py
        components/esptool_py/esptool/esptool.py
Please move or remove them before you switch branches.
Aborting

And using: "git switch -f release/v5.0"

I get:

Code: Select all

C:\Users\M\Desktop\esp-idf-4>git switch -f release/v5.0
git: 'switch' is not a git command. See 'git --help'.

C:\Users\M\Desktop\esp-idf-4>

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 »

What if you moved the files indicated to another directory outside of the IDF? Does that allow the checkout to work correctly?

I think the switch is a newer git command so you maybe need a newer version of git to allow this to function.

mnfisher
Valued Contributor
Posts: 955
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 508 times

Re: ESP32-S2 FCDX request

Post by mnfisher »

For anyone who needs/wants to switch between v4 and v5 easily (and somethings don't yet work under v5) - so mainly people testing things?

A couple of simple Python scripts:

Code: Select all

#!python3
import os

cmds = ["git fetch",  "git checkout release/v5.0", "git pull",  "git submodule update -f --init --recursive", "install.bat", "python tools/idf_tools.py uninstall"]

os.chdir("C:/espressif/frameworks/esp-idf-v5.0.1")
for cmd in cmds:
    os.system(cmd)
print("Change path in Flowcode to C:\\espressif\\frameworks\\esp-idf-v5.0.1 Espressif tools version changed to v5.0.1")
(Save as v5.py)

and

Code: Select all

#!python3
import os

cmds = ["git fetch", "git checkout release/v4.1", "git pull", "git submodule update -f --init --recursive", "install.bat", "python tools/idf_tools.py uninstall"]

os.chdir("c:/esp-idf")
for cmd in cmds:
    os.system(cmd)
print("Change path in Flowcode to 'c:\\esp-idf'. Espressif tools version changed to v4.1")
Save as v4.py

Then to change from v5 to v4 - type v4.py (at a command prompt) and change the path in FC.

To change v4 to v5 - it's v5.py (and again change the path in Flowcode)

Note - I've used c:/esp-idf as home for v4 and c:/espressif for v5 - you might need to tweak the chdir command if you've settled on different paths.

They seem to work reasonably reliably - they don't 'affect' the command line they are run from (anyone know how to make them do this?) - so if you want to do a fullclean then you'll still need to do c:\esp-idf\export and idf.py fullclean. One oddity - it's best to start a new cmd line to run either script. Occasionally (and I've jumped my program from one version to the other several times - there is an error - and the script needs to be re-run. This doesn't seem to occur if a new cmd line is used each time)

Martin

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

Re: ESP32-S2 FCDX request

Post by MJU20 »

In viewtopic.php?p=11214#p11214 I've posted the error I get when trying to update.

It's been a while but I want to retry to update to IDF V5.
Isn't it easier to uninstall the V4 version and install V5.0 instead?

To remove or replace all the files that must be removed is a lot more work?
Ideas?

What are the reasons not to update to V5? Are there still more issues why not to update?

mnfisher
Valued Contributor
Posts: 955
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 508 times

Re: ESP32-S2 FCDX request

Post by mnfisher »

I don't think I'd update just yet - there are still some issues (timers don't work for example)

Martin

Post Reply