STM32L476 how to add cryptolib to micropython ? #16413
-
Hello, how to add cryptolib to Micropython for an STM32L476? I'm stuck... I need to use cryptolib to send data in LoraWan with an STM32L476 + SX1276.
I have several errors at the end of compilation ../../extmod/modcryptolib.c
Then I added :
and then I get an error at the start of compilation:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I found the solution: 1- in /micropython:
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
3- make BOARD=NUCLEO_L476RG submodules And the compilation is complete.... |
Beta Was this translation helpful? Give feedback.
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
3- make BOARD=NUCLEO_L476RG submodules
4- make BOARD=NUCLEO_L476RG
And the compilation is complete....