2380304_en-US

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

2380304_en-US

2380304_en-US

LDREX/STREX/CLREX on S32K3 - seems to work in SRAM?

I asked a question a little bit back - https://community.nxp.com/t5/S32K/Understanding-Atomics-i-e-STREX-LDREX-on-S32K3/m-p/2356118 - and the answer seemed to imply that I could not rely on the behavior of LDREX/STREX/CLREX even when I was only using it on a single core to prevent conflicts between things like ISRs/IRQs conflicting with the main thread if the memory being checked was in SRAM.

Having done some testing though, it appears to work as I expect - could I get confirmation from the design team that LDREX/STREX/CLREX is not expected to deconflict accesses from a single core? I know that it won't prevent things like exclusive accesses between the DMA and the cortex-m7 core, but what about the core with itself?

Re: LDREX/STREX/CLREX on S32K3 - seems to work in SRAM?

Hi @kscz,

I have tested it as well, and based on the results, I reopened the discussion.
I will get back to you as soon as I have an update.


Regards,

Daniel

Re: LDREX/STREX/CLREX on S32K3 - seems to work in SRAM?

Hello @kscz,

I have received confirmation that the behavior in SRAM is the same as in TCM. I have updated my previous answer accordingly. Thank you for pointing this out.


BR, Daniel

标记 (1)
无评分
版本历史
最后更新:
‎06-19-2026 03:28 AM
更新人: