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.
ESP32-S2 FCDX request
-
- Matrix Staff
- Posts: 1926
- http://meble-kuchenne.info.pl
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 503 times
- Been thanked: 686 times
Re: ESP32-S2 FCDX request
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Posts: 206
- Joined: Thu Sep 23, 2021 3:44 pm
- Location: France
- Has thanked: 34 times
- Been thanked: 25 times
Re: ESP32-S2 FCDX request
Hello Ben,
Nice to ear that !
Nice to ear that !
You mean on FC10 or FC9 ?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.
Seb
-
- Matrix Staff
- Posts: 1926
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 503 times
- Been thanked: 686 times
Re: ESP32-S2 FCDX request
Hi Seb,
Sorry it's V10 I've been making the changes to.
Sorry it's V10 I've been making the changes to.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Matrix Staff
- Posts: 1926
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 503 times
- Been thanked: 686 times
Re: ESP32-S2 FCDX request
Progress on this has now been moved here.
viewtopic.php?f=3&t=1879
viewtopic.php?f=3&t=1879
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: ESP32-S2 FCDX request
Can't get the ESP IDF to update to V5.0
After: "git checkout release/v5.0"
And using: "git switch -f release/v5.0"
I get:
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>
-
- Matrix Staff
- Posts: 1926
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 503 times
- Been thanked: 686 times
Re: ESP32-S2 FCDX request
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.
I think the switch is a newer git command so you maybe need a newer version of git to allow this to function.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Valued Contributor
- Posts: 1462
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 136 times
- Been thanked: 713 times
Re: ESP32-S2 FCDX request
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:
(Save as v5.py)
and
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
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")
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")
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
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?
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?