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

chore(zephyr): upgrade to Zephyr v3.7.0 #10

Merged
merged 2 commits into from
Sep 11, 2024
Merged

Conversation

gminn
Copy link
Member

@gminn gminn commented Aug 15, 2024

Summary

There are several fixes for this app to build with Zephyr 3.7.0 and the latest
Memfault SDK:

  • Updated s3 board overlay & board argument to match hardware model v2
  • Updated heap pool size to eliminate warning compile message -- they increased it
  • Removed enabling of CONFIG_MEMFAULT_TLS_CERTS_USE_DER since it is now the
    default
  • Updated readme with new args for wifi connect shell command
  • Enabled CONFIG_MBEDTLS_AES_ROM_TABLES explicitly -- this used to be enabled
    by default. It saves ~8kB in RAM space.

With the jump to 3.7.0, the build for the esp32c3 overflowed by 70kb:

/Users/gminnehan/.local/zephyr-sdk-0.16.1-rc1/riscv64-zephyr-elf/bin/../lib/gcc/riscv64-zephyr-elf/12.2.0/../../../../riscv64-zephyr-elf/bin/ld.bfd: zephyr/zephyr_pre0.elf section `.dram0.bss' will not fit in region `dram0_0_seg'
/Users/gminnehan/.local/zephyr-sdk-0.16.1-rc1/riscv64-zephyr-elf/bin/../lib/gcc/riscv64-zephyr-elf/12.2.0/../../../../riscv64-zephyr-elf/bin/ld.bfd: DRAM segment data does not fit.
/Users/gminnehan/.local/zephyr-sdk-0.16.1-rc1/riscv64-zephyr-elf/bin/../lib/gcc/riscv64-zephyr-elf/12.2.0/../../../../riscv64-zephyr-elf/bin/ld.bfd: region `dram0_0_seg' overflowed by 71104 bytes

After investigating, there appears to be a few culprits, including a drop in the
DRAM segment by 20kB in 3.7.0. To unblock build testing with Memfault for both
the RISC-V and Xtensa arch on Zephyr 3.7.0, the MBEDTLS heap has been shrunk for
the c3 build for now. Users can still test out Memfault shell commands but will
have to post chunks via the chunks debug log. Since this support has been
removed, the default board is now the s3.

Test Plan

CI, also flashed a esp32s3 locally & uploaded chunks successfully


Related: MCU-569

Copy link
Member Author

gminn commented Aug 15, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @gminn and the rest of your teammates on Graphite Graphite

@gminn gminn force-pushed the gminn/fix-v3.7.0-build branch 2 times, most recently from dd122c1 to 86ef859 Compare August 19, 2024 13:49
Copy link
Member Author

@gminn gminn left a comment

Choose a reason for hiding this comment

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

Need to fix c3 build, somehow we have a 71k dram segment overflow 🤔

@gminn gminn force-pushed the gminn/fix-v3.7.0-build branch from 86ef859 to a9ad048 Compare August 27, 2024 21:37
# This is the 1st commit message:

chore(zephyr): upgrade to Zephyr v3.7.0

- Enable CONFIG_POSIX_API=y for zephyr 3.7.0 support
- Fix readme and add hash algorithm requirement
@noahp noahp force-pushed the gminn/fix-v3.7.0-build branch from a9ad048 to 9fea391 Compare September 3, 2024 13:54
@noahp noahp marked this pull request as ready for review September 3, 2024 13:54
@noahp noahp requested a review from a team as a code owner September 3, 2024 13:54
@noahp noahp self-requested a review September 3, 2024 13:55
@noahp noahp marked this pull request as draft September 3, 2024 13:57
@gminn gminn force-pushed the gminn/fix-v3.7.0-build branch from 6482b36 to ddaa252 Compare September 11, 2024 16:18
@gminn gminn marked this pull request as ready for review September 11, 2024 16:37
Copy link
Collaborator

@noahp noahp left a comment

Choose a reason for hiding this comment

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

reasonable choice, we can revisit if/when we need to get it working

prj.conf Outdated Show resolved Hide resolved
@gminn gminn force-pushed the gminn/fix-v3.7.0-build branch from ddaa252 to ba4fcba Compare September 11, 2024 18:38
@gminn gminn merged commit 41ddb87 into main Sep 11, 2024
2 checks passed
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.

2 participants