Posix Message Queues on MPC5668G

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Posix Message Queues on MPC5668G

ソリューションへジャンプ
534件の閲覧回数
tim_09
Contributor II

Hello,

 

I'm trying to implement a bare metal code for the MPC5668G. Is it possible to use the Posix Message Queues on this controller or are there different methods to implement messages between the two cores?

 

Thanks and best regards

Tim

ラベル(1)
0 件の賞賛
1 解決策
439件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

both cores can access whole memory map, so data can be simply shared in RAM memory. You can allocate required amount of RAM in the linker file. If cache memory is enabled on e200z6 core, make sure that shared area is configured in MMU as cache inhibited to ensure data coherency.

It is also possible to use semaphores to ensure data coherency on application level (i.e. before a core can update or read memory coherently, it has to check the semaphore to see if other core is not already updating the memory).

It is also possible to use software interrupt to inform other core that required data are already present in shared memory.

Posix Message Queues - this is just software implementation. It depends which software (OS) you use...

Regards

Lukas

元の投稿で解決策を見る

0 件の賞賛
1 返信
440件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

both cores can access whole memory map, so data can be simply shared in RAM memory. You can allocate required amount of RAM in the linker file. If cache memory is enabled on e200z6 core, make sure that shared area is configured in MMU as cache inhibited to ensure data coherency.

It is also possible to use semaphores to ensure data coherency on application level (i.e. before a core can update or read memory coherently, it has to check the semaphore to see if other core is not already updating the memory).

It is also possible to use software interrupt to inform other core that required data are already present in shared memory.

Posix Message Queues - this is just software implementation. It depends which software (OS) you use...

Regards

Lukas

0 件の賞賛