Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to disable Bluetooth support #78

Open
1 task done
benedekt opened this issue Jul 19, 2022 · 8 comments
Open
1 task done

Option to disable Bluetooth support #78

benedekt opened this issue Jul 19, 2022 · 8 comments

Comments

@benedekt
Copy link

Related area

Make an option to use a version of IDF built without BT support to free up xt_highint4

Hardware specification

Support for all ESP32 versions

Is your feature request related to a problem?

My "legacy" application has a need for a high level interrupt, which was connected to xt_highint5. Now that's used by IDF, so I have to migrate.
I realised that xt_highint4 is also taken by the stack, please make it available.

Describe the solution you'd like

Have a setting in the menu.

Describe alternatives you've considered

No response

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.
@Jason2866
Copy link
Contributor

This not possible to set in Arduino. It is a IDF sdkconfig compile time option (only).
You can build your own Arduino version with the arduino lib builder

@VojtechBartoska VojtechBartoska transferred this issue from espressif/arduino-esp32 Jul 25, 2022
@VojtechBartoska
Copy link
Contributor

Moved to Arduino Lib Builder repository.

@me-no-dev
Copy link
Member

@benedekt you can compile with whatever options you want. In case of errors caused by BT being disabled, please let us know. ESP-IDF v4.4 is currently supported

@SinglWolf
Copy link

@benedekt you can compile with whatever options you want.

How to do it? I'm trying to execute first:

./build.sh -b menuconfig -t esp32

In menuconfig, I turn off Bluetooth, exit menuconfig with saving and execute:

./build.sh -t esp32

After compilation in the file esp32-arduino-lib-builder/out/tools/sdk/esp32/sdkconfig everything remained unchanged.

#
# Bluetooth
#
CONFIG_BT_ENABLED=y

What am I doing wrong? Please explain how to compile correctly.

@Jason2866
Copy link
Contributor

Jason2866 commented Sep 1, 2022

The Arduino lib builder does not support changes in the sdkconfig files via idf.py menuconfig. You have to edit it manually in the corresponding file(s).
Menuconfig is designed to use with single IDF projects. Since Arduino Lib builder is a special use case (compiling libs for all MCUs and all flash types and modes).
This is a multi project use case and this is not possible to do with menuconfig.

@SinglWolf
Copy link

The Arduino lib builder does not support changes in the sdkconfig files via idf.py menuconfig.

In this case, the command: ./build.sh -b menuconfig -t esp32 loses all meaning and only misleads.

@Jason2866
Copy link
Contributor

Yep, the help text is wrong

@me-no-dev
Copy link
Member

That command is useful when testing a menuconfig change or similar. As long as you have ESP-IDF in your ENV, you can run the command and then run idf.py build to build the project (and flash/monitor it as well). For exporting libs, you need to edit the configuration files, but for using the repo as project starter or dev, command is useful

HamzaHajeir pushed a commit to HamzaHajeir/esp32-arduino-lib-builder that referenced this issue May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants