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,109件の閲覧回数
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,937件の閲覧回数
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,937件の閲覧回数
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,937件の閲覧回数
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,938件の閲覧回数
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 件の賞賛
返信