Can RT685AUD's SDK be applied to RT685?

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

Can RT685AUD's SDK be applied to RT685?

Jump to solution
5,502 Views
melanie
Contributor III

Hi 

 

I resume the mimxrt685audevk_i3c_bus_master_read_icm42688p from SDK- RT685AUD on the RT685.

but failed to initialize ICM-42688.

result = ICM42688P_Init(&icmp42688p_handle, &sensorConfig);

melanie_0-1690770138808.png

Could you shre some demo of I3C? 

Tags (1)
0 Kudos
1 Solution
4,984 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @melanie ,

    地址待会我私信你。

   因为我们现在讨论的很多东西不便在公众论坛,我建议你到官网建一个case,这样我们可以一对一邮件形式去讨论比较好,最后问题解决了,方案贴这个帖子就可以了。

  你到这个链接:

https://www.nxp.com/support/support:SUPPORTHOME

  create a ticket.

  然后问题简单描述下,内容里面写@kerry zhou

 case号在这个帖子也告诉我下。

Best Regards,

Kerry

View solution in original post

0 Kudos
30 Replies
1,515 Views
melanie
Contributor III

Hi @kerryzhou 

thanks for you reply

Now I use MIMXRT685-EVK board and ICM-42688.

Master( MIMXRT685-EVK) can assign dynamic address successsfully.

the code is written with reference to AN12796, not use I3Cdemo from directly.

I want use some codes related with  ICM42688 from the demo. but ICM42688 is initialized failed. 

you need to check the code used pins, whether it matches your board

 

which pins are cheked?is the master connected to the sensor pins?

I think I am right. becasue I can read who_am_i of ICM-42688.

Could you give me more ideas?

0 Kudos
1,494 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @melanie ,

  mimxrt685-aud-evk sdk contains the :master_read_sensor_icm42688p, which can do the 42688 operation directly.

   Do you use that demo, from your description, you use your own demo.

  I think you can use the RT685aud demo directly, just need to do the modification, eg, xip FCB, copy it with the EVK sdk, then you can check, whether the pin is the same as the EVK in the code, I mean, I3C, in my memory, it is the same.

   So, please tell me your used code detail situation.

  If you are convenient, you even can share your project.

  Please also share your printf log.

 I think, it's better to use the RT685AUD SDK code directly.

  Now, your icm42688 is externally connected? Can you also share the hardware connection photo?

 

Best Regards,

Kerry

 

0 Kudos
1,453 Views
melanie
Contributor III

Hi @kerryzhou ,

I use demo master_read_sensor_icm42688p from mimxrt685-aud-evk sdk first.

but the master can't assign dynamic address successfully. 

melanie_2-1690793456597.png

 

melanie_0-1690793220401.png

from the above pictures,  we can find the code fail when the code runs to the position of the red circle.

I use the logic analyzer to capture the timing sequence.

melanie_3-1690793834250.pngmelanie_4-1690793905915.png

melanie_5-1690795313531.png

sorry I can't share  hardware connection photo, but I think it is right.  VDDIO=VDD=1.8v

 

0 Kudos
1,424 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @melanie ,

  Which I3C pin you are using in the EVK? I will try the EVK to connect the AUD-EVK sensor.

  Will give you updated information after I finished the testing.

Best Regards,

Kerry

0 Kudos
1,397 Views
melanie
Contributor III

Hi @kerryzhou 

Any update?

Best Regards,

Melanie

0 Kudos
1,382 Views
kerryzhou
NXP TechSupport
NXP TechSupport

刚看到你之前的帖子,原来您是去年就搞这个了。

还请给我点时间,我做个全面测试,先测AUD-EVK, 然后移植EVK。

稍等下,任何更新我第一时间告诉你!

0 Kudos
1,308 Views
melanie
Contributor III

是的,我去年搞到一半休产假了。现在又接着搞了。

我是根据你回复,将EVK的Flash.h flash.c 替换掉AUD-EVK的。

谢谢

0 Kudos
1,292 Views
kerryzhou
NXP TechSupport
NXP TechSupport

好的,看来咱俩是完全同步的节奏。

你现在用的ICM42688模组是自己做的还是买的现成的?

首先要保证你的模块能工作。

我刚才直接测试了下AUD-EVK, 是能够直接工作的。

kerryzhou_0-1690881282258.png

下面我看看,修改下硬件,还有软件代码匹配到EVK。

你目前那边是只有MIMXRT685-EVK板子,没有AUD-EVK,所以想把你的模块加到EVK上,是吗?

 

0 Kudos
1,255 Views
melanie
Contributor III

哈哈哈,非常巧

买的ICM42688 EVB,我只有MIMXRT685-EVK板子。

我直接把AUD-EVK的demo运行在EVK,I3C通信都做不到。

参考AN12796写代码可以实现I3C 动态地址分配,以及读取ICM42688的ID,将AUD-EVK中ICM42688的初始化代码移植过去,发现无法运行。捕捉时序图,master发送save的动态地址,slave没有响应

0 Kudos
1,291 Views
melanie
Contributor III

Hi @kerryzhou 

I use I3C pins shown in below picture.

Port 2

melanie_0-1690796040488.png

I check the timing sequence, the frequency of clock is 4.167MHz when I use the demo code directy.

Best Regards,

Melanie

0 Kudos