SDK 2.8.2 lwip alttcp_tls_mbedtls.c does not compile

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

SDK 2.8.2 lwip alttcp_tls_mbedtls.c does not compile

1,085 次查看
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

标签 (1)
0 项奖励
回复
2 回复数

1,078 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Michael:

 

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

 

Regards

Daniel

0 项奖励
回复

1,048 次查看
michalhojsik
Contributor II

Hi Daniel.

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

Regards,

Michal

0 项奖励
回复