Skip to content

STM32L476 how to add cryptolib to micropython ? #16413

Discussion options

You must be logged in to vote

I found the solution:

1- in /micropython:

git submodule update --init -- lib/mbedlts

2- Apparently, you don't need to modify stm32/mpconfigport.h.... directly, but rather add the following two lines to the file corresponding to the board (here NUCLEO_L476RG):

ports/stm32/boards/NUCLEO_L476RG/mpconfigboard.mk

# MicroPython settings
MICROPY_PY_SSL = 1
MICROPY_SSL_MBEDTLS = 1

3- make BOARD=NUCLEO_L476RG submodules
4- make BOARD=NUCLEO_L476RG

And the compilation is complete....

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jonnor
Comment options

jonnor Dec 21, 2024
Collaborator

Answer selected by julien-minet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants