S32R274 Spinlock abnormal

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

S32R274 Spinlock abnormal

1,588件の閲覧回数
yadi_zhang
Contributor I

I use the instruction lwarx & stwcx. implement the Spinlock function on S32R274。

After a lot of test whitch between Z4 core and Z70 core,I found Spinlock fails sometimes。Z4 core and Z7 core enter the protect area at the same time。

Spinlock variable value is share sram data which attribute is uncacheable。

0 件の賞賛
返信
2 返答(返信)

1,544件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

this was already discussed here:

https://community.nxp.com/thread/437523#comment-856994 

None of MPC57xx devices (S32R274 also belongs here) have the reservation logic implemented between cores. 

I'm afraid the only option is to use semaphores (SEMA42 module).

Regards,

Lukas

0 件の賞賛
返信

1,544件の閲覧回数
yadi_zhang
Contributor I

Hi Lukas

       I have seen your link,I thought S32R274 was different,but the result is not support,It‘s too bad.

      Thank you for your support!

0 件の賞賛
返信