Part Number:TMDS570LS31HDK
Hello,
I'm working on a project with shared data which I'm trying to protect through a mutex. I was initially doing so by enabling and disabling interrupts, but upon further reading I realized that it's not such an efficient method of doing so, and ARM provides special instructions for atomicity, mainly LDREX, STREX. In the related thread, there's a post with a link to an ARM application note explaining LDREX and STREX with an example for a mutex.
infocenter.arm.com/.../DHT0008A_arm_synchronization_primitives.pdf
The code snippet I'm looking at is the following:
I don't use assembly very much, but I tried integrating this into my project, unfortunately I am still getting build errors such as illegal symbols, illegal mnemonics, illegal operands... yeah, as you can tell, assembly is not my strong suit. Could someone help me out please and show me the correct syntax for this code in code composer?
Thanks!