Page 1 of 2

ESP32 WROOM bluetooth programming

Posted: Wed Jan 05, 2022 10:08 am
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 3178 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 3178 times
my "sdkconfig" file generated by flocode9 is the following:
Cattura3.PNG
Cattura3.PNG (19.85 KiB) Viewed 3178 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

Re: ESP32 WROOM bluetooth programming

Posted: Wed Jan 05, 2022 12:06 pm
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.

Re: ESP32 WROOM bluetooth programming

Posted: Wed Jan 05, 2022 12:50 pm
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 3169 times

Re: ESP32 WROOM bluetooth programming

Posted: Wed Jan 05, 2022 1:38 pm
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

Re: ESP32 WROOM bluetooth programming

Posted: Wed Jan 05, 2022 3:35 pm
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

Re: ESP32 WROOM bluetooth programming

Posted: Wed Jan 05, 2022 4:56 pm
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

Re: ESP32 WROOM bluetooth programming

Posted: Wed Jan 05, 2022 5:08 pm
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

Re: ESP32 WROOM bluetooth programming

Posted: Wed Jan 05, 2022 9:22 pm
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 3076 times


There are a LOT of options!

Martin

Re: ESP32 WROOM bluetooth programming

Posted: Wed Jan 05, 2022 9:48 pm
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 3075 times

Re: ESP32 WROOM bluetooth programming

Posted: Wed Jan 05, 2022 9:55 pm
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 3072 times