SDK v2.15.0 for RT1050 - Defining I2C_RETRY_TIMES causes compile error

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

SDK v2.15.0 for RT1050 - Defining I2C_RETRY_TIMES causes compile error

跳至解决方案
716 次查看
dmarks_ls
Senior Contributor I

There are fatal code problems in fsl_flexio_i2c_master.c (FSL_FLEXIO_I2C_MASTER_DRIVER_VERSION is 2.5.0).  If I set I2C_RETRY_TIMES in my preprocessor defines to a non-zero value, I get multiple compiler errors, all declaring that "waitTimes" is undefined.  There is also a warning about a declaration of "waitTimes" being unused.  It appears that this build configuration was never tested prior to release.

The solution/workaround is to declare waitTimes in appropriate locations and to remove the unused location.  I have attached a fixed version of the C file; please review and merge into your next release, thanks.

Dana M.

0 项奖励
回复
1 解答
690 次查看
HangZhang
NXP Employee
NXP Employee

Hi @dmarks_ls 

I reproduce this issue, thanks for your information.

And I will report this issue to our SDK team.

Best regards,
Hang

 

在原帖中查看解决方案

2 回复数
435 次查看
sachin_patel
Contributor III

Hi,

I reported this issue to NXP in March 2023 as can be seen here: Compile-Error-in-MCUXpresso-SDK-v2-13-0-v2-14-0-and-v2-15-0-fsl/m-p/1698607.

As of SDK v2.16 on my device which released earlier today, this issue still has not been resolved. Can you check if it has been resolved on your device?

Thanks,

Sachin Patel

691 次查看
HangZhang
NXP Employee
NXP Employee

Hi @dmarks_ls 

I reproduce this issue, thanks for your information.

And I will report this issue to our SDK team.

Best regards,
Hang