SDK 2.8.2 lwip alttcp_tls_mbedtls.c does not compile

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

SDK 2.8.2 lwip alttcp_tls_mbedtls.c does not compile

1,222 Views
michalhojsik
Contributor II

Hi.

I am using i.MX RT 1062 SDK version 2.8.2 and MCUxpresso 11.2.

I have imported an SDK example project lwip-mqtt-freertos and:

1. Added mbedTLS from the SDK using "Manage SDK components" feature

2. Manually added to the project alttcp_tls modules from SDK's directory SDK_2.8.2_EVK-MIMXRT1060\middleware\lwip\src\apps\altcp_tls\

Now, the compilation of the file

altcp_tls_mbedtls.c

fails:

../lwip/src/apps/altcp_tls/altcp_tls_mbedtls.c:1049:29: error: 'struct altcp_tls_config' has no member named 'entropy'
1049 | mbedtls_entropy_free(&conf->entropy);
../lwip/src/apps/altcp_tls/altcp_tls_mbedtls.c:1050:30: error: 'struct altcp_tls_config' has no member named 'ctr_drbg'
1050 | mbedtls_ctr_drbg_free(&conf->ctr_drbg);

It looks like the SDK 2.8.2 has lwip code from lwip's main branch which (in that particular state) contained this error that results in compilation failure. The problem was fixed in a later commit which is in lwip repository, but not in the SDK 2.8.2.

Regards,

Michal

Labels (1)
0 Kudos
Reply
2 Replies

1,215 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Michael:

 

Thank you for your feedback, I will report this to the software team.

 

Regards

Daniel

0 Kudos
Reply

1,185 Views
michalhojsik
Contributor II

Hi Daniel.

Thank you. Can you please let me know if you (NXP) recommend any particular workaround?

Regards,

Michal

0 Kudos
Reply