Page 1 of 1

Library Builder ignores sdkconfig

Posted: Wed Nov 30, 2022 5:44 am
by akolodner25
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.

Re: Library Builder ignores sdkconfig

Posted: Wed Nov 30, 2022 6:04 pm
by lbernstone
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.

Re: Library Builder ignores sdkconfig

Posted: Thu Dec 01, 2022 1:36 am
by akolodner25
Man, I could have sworn I'd tried that already. Worked perfectly. Thank you!