Hello everyone
I have a big problem with the programming of the bluetooth part of the ESP32 complete with programmer see image:
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:
my "sdkconfig" file generated by flocode9 is the following:
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
ESP32 WROOM bluetooth programming
-
- Posts: 11
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 10:30 pm
- Has thanked: 1 time
- Been thanked: 4 times
-
- Matrix Staff
- Posts: 1926
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 503 times
- Been thanked: 686 times
Re: ESP32 WROOM bluetooth programming
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Valued Contributor
- Posts: 1002
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 191 times
- Been thanked: 217 times
Re: ESP32 WROOM bluetooth programming
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
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
Re: ESP32 WROOM bluetooth programming
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
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
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
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
-
- Matrix Staff
- Posts: 1926
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 503 times
- Been thanked: 686 times
Re: ESP32 WROOM bluetooth programming
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.
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
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Valued Contributor
- Posts: 1002
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 191 times
- Been thanked: 217 times
Re: ESP32 WROOM bluetooth programming
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
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
-
- Valued Contributor
- Posts: 1462
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 136 times
- Been thanked: 713 times
Re: ESP32 WROOM bluetooth programming
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...)
There are a LOT of options!
Martin
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...)
There are a LOT of options!
Martin
-
- Valued Contributor
- Posts: 1002
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 191 times
- Been thanked: 217 times
Re: ESP32 WROOM bluetooth programming
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
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
-
- Valued Contributor
- Posts: 1002
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 191 times
- Been thanked: 217 times