SDK I2C driver bug

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SDK I2C driver bug

1,547件の閲覧回数
davenadler
Senior Contributor I

Using K64F, SDK 2.8, apparent bug in fsl_i2c_edma.c version 2.08.
Found by running Eclipse built-in code analysis on my project; note error below:
fsli2c_bug.PNG
Line 421 is clearly wrong but I don't know what it SHOULD be.

Perhaps NXP should also use static analysis tools...

Please confirm this bug and provide a solution,
Thanks,
Best Regards, Dave

0 件の賞賛
5 返答(返信)

1,436件の閲覧回数
davenadler
Senior Contributor I

@danielchen- Can you please confirm:
- the responsible developer has reviewed the code and recommended to simply remove the line with no other changes.

Thanks!
Best Regards, Dave

0 件の賞賛

1,429件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Yes.

0 件の賞賛

1,480件の閲覧回数
davenadler
Senior Contributor I

@danielchen- "Seems redundant" is not a great answer.
Don't you think it would be best to check with the developer what was intended here?
Thanks,
Best Regards, Dave

0 件の賞賛

1,443件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi @davenadler 

 

This redundant line is introduced unexpectedly.  Will remove this code. Sorry for the inconvenience.

Thanks again.

 

Regards

Daniel 

0 件の賞賛

1,485件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi Dave:

Thanks for your feedback.  It seems a redundant line. Because base is reassigned to 

s_i2cEdmaPrivateHandle[instance].base in following line.

 

 

 /* Set the base for the handle. */
    base = base;

    /* Set the handle for EDMA. */
    handle->dmaHandle = edmaHandle;

    s_i2cEdmaPrivateHandle[instance].base   = base;
    s_i2cEdmaPrivateHandle[instance].handle = handle;

 

 

 

 

Regards

Daniel

 

0 件の賞賛