I2C Not working in Dual core

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

I2C Not working in Dual core

1,511 Views
Prasanth_C
Contributor II

@nxp Hello, I have a K3 series controller. When I use the I2C in the K344 controller, it works great. However, when I use the Dual Core K324 controller, the I2C does not work, not even the clock is not generate. However, when I check the GPIO, it works correctly. I'm using the same RTD for  both of them controller.

0 Kudos
Reply
5 Replies

1,385 Views
Prasanth_C
Contributor II

@VaneB hi, i shared my project for your reference 

0 Kudos
Reply

1,491 Views
Prasanth_C
Contributor II

yeah thanks for your reply, I used the same settings and code for both of them controller, including the same clock (FIRC), mode (Standard mode), and baud rate. As a result, you can see that there is a difference between the non-working and working code. The lpi2c_irq.c file interrupt is not enabled in meaning that the specific instance of irq is not enabled, but the working code is enabled.
Note : code and configuration both same. 

i just wanted to know is there any differences between single(k344) core and dual core(k324,k322) controller , and one more thing i checked with k322 also its not working but however if a use gpio its working fine.(k324 controller i done bit banking method it works but your RTD not working i use RTD 3 ) .

0 Kudos
Reply

1,495 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Prasanth_C 

Could you please provide more details about the changes between the code for the S32K344 device and the S32K324? Can you see if there is any change in SDA and SCL? When you flash the code, does it cause any error?

 

B.R.

VaneB

0 Kudos
Reply

1,489 Views
Prasanth_C
Contributor II

@VaneB yeah thanks for your reply, I used the same settings and code for both of them controller, including the same clock (FIRC), mode (Standard mode), and baud rate. As a result, you can see that there is a difference between the non-working and working code. The lpi2c_irq.c file interrupt is not enabled in meaning that the specific instance of irq is not enabled, but the working code is enabled.
Note : code and configuration both same. 

i just wanted to know is there any differences between single(k344) core and dual core(k324,k322) controller , and one more thing i checked with k322 also its not working but however if a use gpio its working fine.( in k324 controller i done bit banking method it works but your RTD not working i use RTD 3 ) .

i used instance 1 pins ptd 14 and ptd 13.

regards,

Prasanth C

0 Kudos
Reply

1,480 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Prasanth_C 

If it is possible, could you share your I2C project? This is to realize a deep analysis of the configurations. According to this statement: "The lpi2c_irq.c file interrupt is not enabled in meaning that the specific instance of irq is not enabled". It looks to be a problem with the configuration. 

0 Kudos
Reply