Library Builder ignores sdkconfig

akolodner25
Posts: 27
Joined: Tue Nov 22, 2022 5:15 am

Library Builder ignores sdkconfig

Postby akolodner25 » Wed Nov 30, 2022 5:44 am

I'm trying to use the Arduino Library Builder to replace the default ESP configuration which is installed with the Boards Manager in the Arduino IDE. Specifically I want to increase CONFIG_BT_ACL_CONNECTIONS to its maximum (7). When I run

Code: Select all

./build.sh -b menuconfig -t esp32s3
and set this option, it saves correctly to sdkconfig. But the next time I run

Code: Select all

./build.sh -t esp32s3
, it deletes sdkconfig and generates a new version... where CONFIG_BT_ACL_CONNECTIONS is set back to 4. I've tried grep-ing for the config option, and it isn't listed in any of the defaults files in the config folder. I tried making my own sdkconfig.defaults where it's set to 7, but it doesn't change anything. What is causing this?! How do I get it to correctly compile with CONFIG_BT_ACL_CONNECTIONS=7?

I'm on an M1 Mac, with an ESP32S3. New to this forum, let me know what other information you might need.

lbernstone
Posts: 826
Joined: Mon Jul 22, 2019 3:20 pm

Re: Library Builder ignores sdkconfig

Postby lbernstone » Wed Nov 30, 2022 6:04 pm

lib-builder merges the configs from the configs folder for common and your target into an sdkconfig. Add the CONFIG you want to defconfig.esp32s3, and it should stick.

akolodner25
Posts: 27
Joined: Tue Nov 22, 2022 5:15 am

Re: Library Builder ignores sdkconfig

Postby akolodner25 » Thu Dec 01, 2022 1:36 am

Man, I could have sworn I'd tried that already. Worked perfectly. Thank you!

Who is online

Users browsing this forum: Google [Bot] and 93 guests