FRDM-K64F, MBEDTLS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FRDM-K64F, MBEDTLS

1,507 Views
a8Chcx
Contributor V

Hi,

I am testing MbedTLS function on FRDM-K64 @120MHz by using HTTPS Server.

And I have the following questions:

1) When I use software based library. When I call "while ((ret = mbedtls_ssl_handshake(&(tlsDataParams.ssl))) != 0)", it took about 900ms.

2) When I use MMCAU library from NXP. When I call "while ((ret = mbedtls_ssl_handshake(&(tlsDataParams.ssl))) != 0)", it took about 850ms.

Can anybody tell me if it is reasonable? 

Based on document on Web, it should be 10 times' fast than software library when using MMCAU?

Can anyone help me to improve the performance?

 

Thanks,

 

Christie

0 Kudos
Reply
6 Replies

1,464 Views
Celeste_Liu
NXP Employee
NXP Employee

Hello @a8Chcx ,

Thanks for your post.

Are you using a custom board? Have you used the SDK demo?

Would it be convenient for you to tell me the process to reproduce the issue? Or you can send me your code, and I'll help you check it.

BRs,

Celeste

0 Kudos
Reply

1,458 Views
a8Chcx
Contributor V

Hi Celeste,

I am using FRDM-K64F board. The project is based on MbedTLS HTTPS server.

I did minor modification for HTTPS client and try to talk to HTTPS Server to measure the time...

I am using "MCUXpresso IDE v11.5.0 [Build 7232] [2022-01-11]" with SDK2.10.0.

Please check the attached testing project...

and let me know your testing results...

Thanks,

Christie

0 Kudos
Reply

1,454 Views
a8Chcx
Contributor V

Hi Celeste,

 

The testing project is attached...

 

Thanks,

Christir

0 Kudos
Reply

1,434 Views
Celeste_Liu
NXP Employee
NXP Employee

Hi Christir,

I tried your testing project. However, there were a lot of error reports. Could you please check it and send us a correct project again?

 

Celeste_Liu_0-1745896060574.png

 

BRs,

Celeste

0 Kudos
Reply

1,416 Views
a8Chcx
Contributor V

Hi Celeste,

I tried to compile the project again and works fine.

Please check the debug directory and there is *.axf file that is generated today.

I am using "MCUXpresso IDE v11.5.0 [Build 7232] [2022-01-11]" and SDK2.10.0

You need to set "LWIP_DNS=1" in preprocessing because I am using name conversion function.

Thanks,

 

Christie

0 Kudos
Reply

1,413 Views
a8Chcx
Contributor V

Attached project again..

0 Kudos
Reply