CodeWarrior 11.1 编译的I2C模块代码有缺陷

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

CodeWarrior 11.1 编译的I2C模块代码有缺陷

1,174 Views
813270556
Contributor I

概述:使用MC9S12ZVL96MLF芯片与MPQ4262芯片进行I2C通信,MCU只能够对4262进行写操作,无法进行读操作。

过程分析:相同代码(I2C模块使用的了自动代码)使用 CodeWarrior 11.1的编译结果,MCU只能够对4262进行写操作,无法进行读操作。进行读操作时发现时钟与数据线被拉低无法释放。

使用CodeWarrior 10.7的编译结果 MCU 可以对4262进行读操作以及写操作。

问题:CodeWarrior 11.1版本与CodeWarrior 10.7版本的编译器存在哪些差异,导致编译结果存在缺陷。

 

0 Kudos
Reply
3 Replies

1,147 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi 813270556 

Under {CW MCU v11.1 install folder}\MCU\Release_Notes\S12lisa, you will see a set of release files which record tool change history.

Right click in the related source file, you can compare the disassemble file difference on 10.7 and 11.1 respectively, with tracking the code in debug code.

ZhangJennie_0-1703562659015.png

Have a nice day,

Jun Zhang

 

0 Kudos
Reply

1,134 Views
813270556
Contributor I

Hello:
As you provided, I see that there are indeed many differences in the compilation document. I wonder what difference between the two different versions of Codewarrior is that causes the difference in the final compilation result.
Thank you for your reply

@ZhangJennie 

0 Kudos
Reply

1,128 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

Please compare the same release note file in CW10.7 and CW11.1 respecitively. You will see what items are added in CW11.1

Thanks,

Jun Zhang

 

0 Kudos
Reply