Is it possible to access the same i2c of i.MX8M Mini by A53 and M4?

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

Is it possible to access the same i2c of i.MX8M Mini by A53 and M4?

Jump to solution
2,091 Views
m_c
Senior Contributor I

Is it possible to access the same i2c of i.MX8M Mini by A53 and M4?

For example, A53 Linux access the device with address 0x1a on i2c1. After A53 access done, then M4 access 0x1a on i2c1.

Labels (1)
0 Kudos
Reply
1 Solution
1,919 Views
b36401
NXP Employee
NXP Employee

It is not recommended to access the same i2c with 2 different device drivers.
It is better to write an application that runs on A53 core and asks M4 one to send or receive data via i2c when it is required.

View solution in original post

0 Kudos
Reply
3 Replies
1,919 Views
tse-hsienlin
Contributor I

Hi Victor,

One more question, is it OK for access the different I2C devicess via the same I2C bus in A53 core & M4 core?

For example. one M4 application is access I2C address (0x74) on I2C1 and one A53 application is access I2C addresses(0x51, 0x32) on I2C1.

0 Kudos
Reply
1,919 Views
b36401
NXP Employee
NXP Employee

It is not OK to access the same I2C bus with both cores at the same time.
However you can use some semaphores to share the bus.
I mean when one core will use the bus it should "deny" it for another core.

0 Kudos
Reply
1,920 Views
b36401
NXP Employee
NXP Employee

It is not recommended to access the same i2c with 2 different device drivers.
It is better to write an application that runs on A53 core and asks M4 one to send or receive data via i2c when it is required.

0 Kudos
Reply