This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C1294NCPDT: Atomicity in write and read instructions in cortex M4?

Part Number: TM4C1294NCPDT

Hi,

I know this is a arm architecture related question and not for this forum, but still needed help!

IS write to a uint32_t and read from a uint32_t atomic?

Regards,

Apoorv

  • Hi,

    Reading a 32-bit memory location cannot be interrupt no matter how many wait states the memory access will take whether internal or external memory. Same for a 32-bit write to a memory. However, if you have a 32-bit read followed by a 32-bit write or vice versa then this read-write sequence can be interrupted.