Page 3 of 3

Re: ESP32-S2 FCDX request

Posted: Tue Feb 14, 2023 12:24 pm
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.

Re: ESP32-S2 FCDX request

Posted: Tue Feb 14, 2023 2:56 pm
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 ?

Re: ESP32-S2 FCDX request

Posted: Wed Feb 15, 2023 9:28 am
by BenR
Hi Seb,

Sorry it's V10 I've been making the changes to.

Re: ESP32-S2 FCDX request

Posted: Wed Apr 12, 2023 2:37 pm
by BenR
Progress on this has now been moved here.
viewtopic.php?f=3&t=1879

Re: ESP32-S2 FCDX request

Posted: Sat Apr 29, 2023 5:34 pm
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>

Re: ESP32-S2 FCDX request

Posted: Wed May 03, 2023 1:43 pm
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.

Re: ESP32-S2 FCDX request

Posted: Sat May 20, 2023 6:04 pm
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

Re: ESP32-S2 FCDX request

Posted: Mon Jun 12, 2023 11:28 pm
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?

Re: ESP32-S2 FCDX request

Posted: Tue Jun 13, 2023 12:07 am
by mnfisher
I don't think I'd update just yet - there are still some issues (timers don't work for example)

Martin