Skip to content
This repository was archived by the owner on Feb 9, 2026. It is now read-only.

ETR01SDK-379: Fix MbedTLS#55

Merged
andreondra merged 9 commits intodevelopfrom
ETR01SDK-379-Fix-MbedTLS
Nov 21, 2025
Merged

ETR01SDK-379: Fix MbedTLS#55
andreondra merged 9 commits intodevelopfrom
ETR01SDK-379-Fix-MbedTLS

Conversation

@andreondra
Copy link
Contributor

@andreondra andreondra commented Nov 20, 2025

Note: README is edited in #49 already, not fixing here

@andreondra andreondra self-assigned this Nov 20, 2025
@andreondra andreondra marked this pull request as ready for review November 21, 2025 07:47
@andreondra andreondra requested a review from Copilot November 21, 2025 07:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes MbedTLS v4 integration by updating the submodule reference and adding required platform-specific implementations for STM32, including time and entropy functions, along with proper RNG initialization.

Key Changes

  • Updated libtropic submodule to a new commit
  • Added MbedTLS platform implementation file for STM32 (time and entropy functions)
  • Added comprehensive MbedTLS and PSA crypto configuration files
  • Modified main application to properly initialize and use RNG peripheral

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
vendor/libtropic Updated submodule commit reference
NUCLEO_F439ZI/Src/mbedtls_v4/mbedtls_platform.c New platform-specific MbedTLS implementations for STM32
NUCLEO_F439ZI/Src/mbedtls_v4/mbedtls_config.h New MbedTLS configuration file
NUCLEO_F439ZI/Src/mbedtls_v4/crypto_config.h New PSA crypto configuration file
NUCLEO_F439ZI/Src/main.c Updated to initialize RNG and use pointer to RNG handle
NUCLEO_F439ZI/Inc/main.h Added RNG handle declaration
NUCLEO_F439ZI/CMakeLists.txt Updated build configuration for MbedTLS with custom config files

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

andreondra and others added 2 commits November 21, 2025 08:51
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@andreondra andreondra requested a review from Copilot November 21, 2025 07:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@medexs medexs self-requested a review November 21, 2025 10:53
Comment on lines +147 to +148
set(MBEDTLS_CONFIG_FILE "${CMAKE_CURRENT_SOURCE_DIR}/Src/mbedtls_v4/mbedtls_config.h")
set(TF_PSA_CRYPTO_CONFIG_FILE "${CMAKE_CURRENT_SOURCE_DIR}/Src/mbedtls_v4/crypto_config.h")
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are the values set if not used anywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added explanation and also reused this value

@andreondra andreondra merged commit e1c50ca into develop Nov 21, 2025
1 check passed
@andreondra andreondra deleted the ETR01SDK-379-Fix-MbedTLS branch November 21, 2025 11:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants