cancel
Showing results for 
Search instead for 
Did you mean: 

Mbedtls porting in STM32L462REY6TR

SSWM
Associate III

Hi,

I am having a lot of issues trying to port MbedTLS in my board B-l462e CELL1. I am trying to use the cellular project from X-Cube-Cellular and integrate MbedTLS to be able to connect to AWS. I can't find it in the CubeMX so I figured I need to port it manually. However, I am not sure what I am doing wrong. I can install WolfSSL from cubeMX and was considering that after failing to port MbedTLS. I have imported coreMQTT and coreJSON from AWS embedded C SDK as well.

I have enabled AES and RNG in the CubeMX and not sure if I have configured things properly. I tried to follow the documentation from MbedTLS on how to port in another OS or environment but I must be missing some things. Attaching my project below for reference. Any useful link or guidance will be appreciated.

Thanks & Regards,

2 REPLIES 2
Danish1
Lead III

So give us a clue.

Are errors reported when you try to build the code? If so, what sort of errors - can’t find include files; missing objects?

Or does it build fine but crash pretty quickly afterwards? Have you checked for stack or heap exhaustion?

Or do the SSL calls return error codes?

I haven’t tried to download your project - it seems to claim to be 40M big, which would be a lot to look through.

Hi Danish1, 

Thanks for your reply. During porting the library i had a lot of errors which indicated that it couldn't find the path. Although I made sure I have included the path on the properties. For example, the compiler couldn't find #include "mbedtls/aes.h" but however could find #include "aes.h". 

The zip file I attached builds with no errors after I fixed all the paths. However, after creating net_socket_alt, aes_alt, sha256_alt, entropy_alt, a tls_manager, and mqtt_manager file with the AWS certs I tried to test mqtt from main.c and it showed a lot more errors. Please check the SS for more details. I believe the SSL call is returning the error. 

As I am new to all of this, I could be making mistakes in places I don't even realize. Please let me know if you want to anything else.