Page 1 of 1

Can the component manager help to revive old esp-idf projects?

Posted: Tue May 02, 2023 8:29 pm
by oldndumb
Say I want to revive an old esp-idf-v3.x based project. Can I use the new component manager to specify such older esp-idf version (as a dependency)? I'd like to know how to do it for anything older then currently installable (and supported) versions. Later versions have the option to do:

Code: Select all

cd $DESIRED_INSTALL_PATH
git clone -b v3.3 --recursive https://github.com/espressif/esp-idf.git esp-idf-v3.3
./install.sh
. export.sh
But I think pre v3.3 don't use these scripts?

So would this be possible with a manifest? idf_component.yml? Naively specifying the version complaints:

Code: Select all

ERROR: Because project depends on idf (=3.0) which doesn't match any
  versions, version solving failed.
Did some other tries with a local path and a git repository but then I can't get the version format right either. Any help is much appreciated! Other ideas to build old projects are also welcome. Bare with me though, I'm not an experienced user ;) I'm eager to learn anyway.

Re: Can the component manager help to revive old esp-idf projects?

Posted: Wed May 03, 2023 11:52 am
by oldndumb
Did correct the single equals sign to double or none. But gives the same error.

Re: Can the component manager help to revive old esp-idf projects?

Posted: Wed May 03, 2023 4:15 pm
by oldndumb
I'm not sure why my earlier message didn't appear. But I was saying I tried different version strings. Single '=' I think is wrong.
However, I get the same error with "==3.0", or "3.0", "~3.0.0", ("v3.3")...
Contents of idf_component.yml:
`dependencies:
# Required IDF version
idf: "3.0"
`
It's wishful thinking I guess. Other question would be how the setup used to be for these old versions. I tried with make, setting up PATH and IDF_PATH. Downloaded xtensa to a folder because it was complaining about not finding that either. Added that. Still no luck.
Guess I'm better of investing time in writing new code or rewriting the old stuff to satisfy current libraries.

Do let me know if got experience building and flashing old projects though, or got ideas how to do it. I'm still very much interested to learn.

Re: Can the component manager help to revive old esp-idf projects?

Posted: Thu May 04, 2023 4:55 am
by ESP_Sprite
Yeah, sorry, especially since 3.3 is not supported anymore, getting it to work is somewhat of an exercise in archeology... you might be better off porting to v4.4 or even v5.

Re: Can the component manager help to revive old esp-idf projects?

Posted: Thu May 04, 2023 4:32 pm
by oldndumb
I appreciate you took the time to respond. I'll dive in and see what I can do with it.