Two projects, two IDF versions

GreenGiant
Posts: 28
Joined: Tue Sep 10, 2019 7:22 am

Two projects, two IDF versions

Postby GreenGiant » Wed Apr 01, 2020 8:31 am

I have two projects, one on v4.0 and one on v4.1. Unfortunately I cannot upgrade the earlier project to v4.1 so that's not an option.

I have the idf repos cloned into their own individual folders, in the same root folder.

Is there an easy way to switch between using either or?

Currently I run the Windows setup exe, and point the installer to the respective repo folder, and then have to do this all again to switch back.

I naively tried changing `IDF_PATH` but that didn't seem to work. Are there any other things that need to be changed, or is it that the `.espressif` folder changes so it can't be done?

Cheers

ESP_igrr
Posts: 2067
Joined: Tue Dec 01, 2015 8:37 am

Re: Two projects, two IDF versions

Postby ESP_igrr » Wed Apr 01, 2020 10:49 pm

Hi GreenGiant,

It should be possible to use multiple IDF versions side by side. Run the installer for one version, ask it to create a shortcut on the desktop. After it is done, rename the shortcut (e.g. IDF v4.1). Then run the installer again, this time pointing to the other IDF directory. The 2nd shortcut will be created. Rename it as well (e.g. IDF v4.0).
Each shortcut will use its own value of IDF path, giving you different environments.

Who is online

Users browsing this forum: selec1 and 132 guests