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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
2,105 次查看
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.

标签 (1)
0 项奖励
回复
1 解答
1,933 次查看
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 项奖励
回复
3 回复数
1,933 次查看
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 项奖励
回复
1,933 次查看
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 项奖励
回复
1,934 次查看
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 项奖励
回复