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

Simplify some ESP32-C3 board sdkconfig files #7245

Merged
merged 2 commits into from
Nov 22, 2022

Conversation

dhalbert
Copy link
Collaborator

Fixes #6891.

Some ESP32-C3 board sdkconfig had unnecessary settings. Removed extra stuff. Tested changes on a QT Py ESP32-C3; seems to act the same before and after, including that bootloader messages did not show up.

Copy link
Collaborator

@microdev1 microdev1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following is the diff of sdkconfig built after this change.

diff --git a/ports/espressif/boards/microdev_micro_c3/sdkconfig b/ports/espressif/boards/microdev_micro_c3/sdkconfig
index 53796af53..75caa2d57 100644
--- a/ports/espressif/boards/microdev_micro_c3/sdkconfig
+++ b/ports/espressif/boards/microdev_micro_c3/sdkconfig
@@ -467,0 +468 @@ CONFIG_ESP_SLEEP_GPIO_RESET_WORKAROUND=y
+CONFIG_RTC_CLOCK_BBPLL_POWER_ON_WITH_USB=y
@@ -544,2 +545,2 @@ CONFIG_ESP_CONSOLE_NONE=y
-CONFIG_ESP_CONSOLE_SECONDARY_NONE=y
-# CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG is not set
+# CONFIG_ESP_CONSOLE_SECONDARY_NONE is not set
+CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG=y

I suggest adding the following in the esp32c3 common sdkconfig.

#
# ESP System Settings
#
# CONFIG_ESP_SYSTEM_USE_EH_FRAME is not set
CONFIG_ESP_CONSOLE_SECONDARY_NONE=y
# CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG is not set
# CONFIG_ESP_DEBUG_STUBS_ENABLE is not set
# end of ESP System Settings

@microdev1 microdev1 added board New board or update to a single board esp32-c3 labels Nov 21, 2022
@dhalbert
Copy link
Collaborator Author

@microdev1 Thanks; it hadn't occurred to me to do that comparison. I added your suggestion, and had to add one more line to get it to compile. Now sdkconfig is identical with or without the PR for your C3 board and for QT Py ESP32-C3.

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Copy link
Collaborator

@microdev1 microdev1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks!

@microdev1 microdev1 merged commit e7c87a4 into adafruit:main Nov 22, 2022
@dhalbert dhalbert deleted the c3-sdkconfig branch November 22, 2022 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
board New board or update to a single board esp32-c3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clean up sdkconfig ESP32-C3 files
3 participants