ESP32 WROOM bluetooth programming

For general Flowcode discussion that does not belong in the other sections.
luibra63
Posts: 11
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 10:30 pm
Has thanked: 1 time
Been thanked: 4 times

ESP32 WROOM bluetooth programming

Post by luibra63 »

Hello everyone
I have a big problem with the programming of the bluetooth part of the ESP32 complete with programmer see image:
Cattura1.PNG
Cattura1.PNG (138.8 KiB) Viewed 3108 times
I regularly program a led flash but I can't program the bluetooth part. I also modified the "sdkconfig" file as indicated in the forum but it doesn't work; many times when I rebuild it overwrites my changes and it never worked. see image:
Cattura2.PNG
Cattura2.PNG (49.35 KiB) Viewed 3108 times
my "sdkconfig" file generated by flocode9 is the following:
Cattura3.PNG
Cattura3.PNG (19.85 KiB) Viewed 3108 times
I am desperate, I have been reading in the forum for many days and doing tests but always without success.
Some of you managed to get bluetooth to work, do you have any example programs? and a stable "sdkconfig" file?
thanks, i hope for your help

BenR
Matrix Staff
Posts: 1706
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: ESP32 WROOM bluetooth programming

Post by BenR »

Hello,

Please can you try editing the sdkconfig file for your target board here.

C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch

Copy and paste the address into your file explorer to get there. This should be the master file that is used to define your projects.

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: ESP32 WROOM bluetooth programming

Post by stefan.erni »

Hi Ben

That would be great if that worked.
The way it looks I would only have to change the ESP32S and then the ESP32_ROOM_32 and ESP32_WROVER would also be changed?

regards

Stefan
BT-Config-2022-01-05_13-33-39.png
BT-Config-2022-01-05_13-33-39.png (27.7 KiB) Viewed 3099 times

leigh
Valued Contributor
Posts: 2
Joined: Fri Dec 17, 2021 12:28 pm
Been thanked: 3 times

Re: ESP32 WROOM bluetooth programming

Post by leigh »

The first time a Flowcode (ESP32) project is compiled, a sub-directory (with the same name as the Flowcode project) is created, and the default sdkconfig is copied there.
Subsequent edits and compiles of the same Flowcode project does not overwrite that sdkconfig file.
So the sdkconfig file can be customised, for that particular project.
The best way to do this is to use the menuconfig tool. (This will ensure that valid settings are made).
To do this, run the ESP-IDF Command prompt (that was created on the PC desktop when ESP toolchain was installed)
cd to the build directory of your Flowcode project (that contains the sdkconfig file).
Then run (type) idf.py menuconfig
The Bluetooth settings are within the Component Config menu

luibra63
Posts: 11
Joined: Thu Dec 03, 2020 10:30 pm
Has thanked: 1 time
Been thanked: 4 times

Re: ESP32 WROOM bluetooth programming

Post by luibra63 »

Sorry BenR and Leigh, I am not a programmer, I am a hardware engineer, I have some difficulties following you, you have to have a little patience, for me it is not too clear, I have upgraded to flowcode9 only for the esp32 tool, I want to be able to do it work.
1 I use an esp Wroom 32 "Az Delivery", the one shown in the figure.
2 espwrom32 does not have its own dedicated "sdkconfig" file, do I have to modify "esp32s_sdkconfg" as suggested by Stefan.erni? or should I modify the sdkconfig file created inside the project folder? which items should I change, the two files are very different.
3 I have modified several times the "sdkconfig" file inside the project folder using "notepad" with the changes suggested in the forum and that I have reported above, the file was saved and modified regularly but it did not work and very often it was also overwritten when I filled in the chip.
finally, I didn't understand how to use "idf.pv menuconfig?", you may be more clear
thank you

BenR
Matrix Staff
Posts: 1706
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: ESP32 WROOM bluetooth programming

Post by BenR »

Hello,

Yes you can modify the esp32s_sdkconfig config file for this one.

The last part of this line in the compiler output shows you the config file being loaded.

Code: Select all

Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch\esp32_build.bat  "D:\Dev\FlowcodeV9\Compilers\esp-idf\\" "test" "C:\Users\BenR\Desktop\" esp32s_sdkconfig

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: ESP32 WROOM bluetooth programming

Post by stefan.erni »

Hi Ben

If you have a modify esp32s_sdkconfig file can you post it as esp32s_sdkconfig.txt and so we can remove the txt and copy your file in the batch folder.

I also have some problem to edit this file.

regards

Stefan

mnfisher
Valued Contributor
Posts: 938
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 502 times

Re: ESP32 WROOM bluetooth programming

Post by mnfisher »

Running idf.py menuconfig... After a bit of fiddling.

Open a command prompt (Windows cmd) and navigate to the folder containing the sdkconfig file (cd save folder\projectname) where save folder is where you saved the flowcode project to and project name is the actual 'name'
type "esp folder\export.bat" enter and if all is well.... You'll know!
idf.py menuconfig

Where esp folder is where the esp tool are saved in my case e:\esp32 (usually esp-idf but I had much difficulty getting it to work...)
menuconfig.png
menuconfig.png (150.55 KiB) Viewed 3006 times


There are a LOT of options!

Martin

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: ESP32 WROOM bluetooth programming

Post by stefan.erni »

Hi to All

With the idf.py menuconfig I chanched the sdkconfig in the projectfolder and BT is working fine.

I also chanched the esp32s_sdkconfig in the batch folder and create a new project, but again BLE_ONLY is set.

I removed the esp32s_sdkconfig from the batch folder so there was an error for the new project, It's mean I was on the right file.

I have no idea where the problem is....


regards

Stefan
BT_config_2022-01-05_22-33-38.png
BT_config_2022-01-05_22-33-38.png (371.69 KiB) Viewed 3005 times

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: ESP32 WROOM bluetooth programming

Post by stefan.erni »

Hi Martin

Good luck!

regards


Stefan
BT-2022-01-05_20-53-17.png
BT-2022-01-05_20-53-17.png (58.79 KiB) Viewed 3002 times

Post Reply