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

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

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

Jump to solution
812 Views
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 Kudos
Reply
1 Solution
786 Views
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

 

View solution in original post

2 Replies
531 Views
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

787 Views
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