What is better as mutex on Cortex-M4 - Bitband or LDREX/STREX

The two options are available.

What is the difference in respect of "cost" "speed" and "complexity" for the two method?

When we need more than few mutexs like that, say 100, is the answer different?

Parents
  • Hi amiry,

    is there an example to use the bitband for the synchronization? I think the bitband would not be used for the synchronization because we could not know the previous value of the bitband target area although the bitband initiates a read-modify-write transaction (i.e. atomic access). The previous value would show the transaction had succeeded or failed.

    Best regards,
    Yasuhiko Koumoto.

Reply
  • Hi amiry,

    is there an example to use the bitband for the synchronization? I think the bitband would not be used for the synchronization because we could not know the previous value of the bitband target area although the bitband initiates a read-modify-write transaction (i.e. atomic access). The previous value would show the transaction had succeeded or failed.

    Best regards,
    Yasuhiko Koumoto.

Children
More questions in this forum