Skip to content

boot: zephyr: socs: add esp32c61 and esp32s31 config - #2809

Open
sylvioalves wants to merge 2 commits into
mcu-tools:mainfrom
sylvioalves:add-esp32c61-esp32s31-socs
Open

boot: zephyr: socs: add esp32c61 and esp32s31 config#2809
sylvioalves wants to merge 2 commits into
mcu-tools:mainfrom
sylvioalves:add-esp32c61-esp32s31-socs

Conversation

@sylvioalves

@sylvioalves sylvioalves commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Add Kconfig for the ESP32-C61 and ESP32-S31 SoCs, mirroring
the existing Espressif bootloader configuration.

Also cleanup other SoCs .conf entries.

Comment thread boot/zephyr/socs/esp32c61.conf Outdated

CONFIG_XIP=n
CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_PICOLIBC=y

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

picolibc isn't needed since it's set in prj.conf

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

addressed

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

also updated other socs

Comment thread boot/zephyr/socs/esp32c61.conf Outdated
CONFIG_XIP=n
CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_PICOLIBC=y
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=0

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

likewise with malloc size

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

addressed

Comment on lines +13 to +14
CONFIG_MCUBOOT_LOG_LEVEL_OFF=y
CONFIG_LOG_DEFAULT_LEVEL=0

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why not just disable logging?

@sylvioalves sylvioalves Aug 6, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

CONFIG_LOG=n costs ~1.4 KB on any RISC-V Zephyr target because it swaps a compile-time-gated LOG_ERR for an ungated printk, so better keep as is until some work is done.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

CONFIG_PICOLIBC and CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE are
already set to the same values in prj.conf, so setting them
again per SoC has no effect. Remove them from the Espressif
fragments.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Add Kconfig for the ESP32-C61 and ESP32-S31 SoCs, mirroring
the existing Espressif bootloader configuration.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
@sylvioalves
sylvioalves force-pushed the add-esp32c61-esp32s31-socs branch from 2014ee8 to 930ae10 Compare August 6, 2026 14:30
@sylvioalves
sylvioalves requested a review from nordicjm August 6, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants