Page 1 of 2

ESP32 + Potentiometer (fail to be compile)

Posted: Wed Nov 09, 2022 2:48 am
by Quantum8888
Hi There.
I try to built a ESP32 + Potentiometer but fail.
I found it can't be compile once I add Potentiometer even only one component on board.
(Also found the conversion speed null item inside properties setting.)
Any Idea? Did I miss something?

Re: ESP32 + Potentiometer (fail to be compile)

Posted: Wed Nov 09, 2022 8:24 am
by chipfryer27
Hi

I compiled to Hex successfully (no chip to hand to allow compile to target).

Are the Toolchains correctly installed and up to date etc? Can you compile other projects?

Sorry to brief,just heading out.

Regards

Re: ESP32 + Potentiometer (fail to be compile)

Posted: Wed Nov 09, 2022 9:13 am
by medelec35
Hello.
Your project file also compiled for me OK.
Make sure your components database is up to date.
Select Help, Library Updates... Change the Files in-use to full database.
If any components have been updated, you will need to select Reload for the effects to take place.

The usual cause for the issue you are seeing is by using a later toolchain version than specified in this document.
You have to very carefully follow it by the letter.
4.1.2 (release version) is the version I used.
I would recommend uninstalling everything relating to ESP32 first.
That includes python & git.
I always used the python 3.7 version since I had no issues with that.
For the paths, I used the paths that are in the install guide.
i.e C:\esp-idf & C:\esp-idf-tools
I remember having issues if left as the default users .expressif

Re: ESP32 + Potentiometer (fail to be compile)

Posted: Mon Nov 21, 2022 8:24 am
by Quantum8888
Thanks your reply, Sir.
components database is up to date.-- CHECK.
I guess my ESP32 toolchain install should be ok due to other ESP32 works fine, just can't use any ADC components.
I found I can't set the timing (speed). Is that a issue?

Re: ESP32 + Potentiometer (fail to be compile)

Posted: Mon Nov 21, 2022 11:13 am
by LeighM
Hi,
As Martin said, it's an ESP toolchain version issue. If you use a different version some things will work, others not (such as this ADC issue)

Google adc_gpio_init if you want to try an alternative fix at your own risk :D

Re: ESP32 + Potentiometer (fail to be compile)

Posted: Mon Nov 21, 2022 1:03 pm
by Quantum8888
I try many time with many different version of ESP toolchain. And totally damage the compile function for ESP32 in my Flowcode....It can't be compile
ESP32 any more... sad.
There are no 4.1.2 (release version) from "esp-idf-tools-setup-2.3.exe" any more. And I can't skip python option even I install 3.7 already ( it install 3.8 automatically )
What should I choose, any suggestion?

Re: ESP32 + Potentiometer (fail to be compile)

Posted: Mon Nov 21, 2022 1:21 pm
by BenR
Hello,

If you install the toolchain from here then hopefully you get the 4.1 IDF option.
https://www.flowcode.co.uk/download/fil ... up-2.3.exe

If not then let us know and we can investigate further and maybe try and move to a newer version of the IDF.

Re: ESP32 + Potentiometer (fail to be compile)

Posted: Mon Nov 21, 2022 1:31 pm
by Quantum8888
Yes, Ben.
I am install the toolchain from here : "https://www.flowcode.co.uk/download/fil ... up-2.3.exe" but no 4.1.
There are "4.1.3 (release version)" <--- Do you mean this one?
Or "release/4.1 (release branch)" <--- Or this one?

Re: ESP32 + Potentiometer (fail to be compile)

Posted: Mon Nov 21, 2022 1:57 pm
by BenR
Hopefully either should be ok. We have thoroughly tested the 4.1 version.

Just having a look to see how the adc calls have changed and see if we can rework the code so it works with both.

Edit, I've made some changes to the code and pushed the latest version and hopefully this will allow the later version to also compile. Please note I've tested 4.1 still compiles ok but not tested the newer version just yet.

Re: ESP32 + Potentiometer (fail to be compile)

Posted: Fri May 12, 2023 2:50 pm
by wayne_millard
Hi Flowcode team,

I still having problems getting esp wifi kit 32 to compile and was told to install the toolchains with 4.1 of IDF esp but do not have the option of 4.1 or 4.1.3 this is all of the option given to me.

Thanks,
Wayne m