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
198 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
1 Solution
172 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

1 Reply
173 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