Atomic access of data for XMC4500

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
For XMC4500, is read or write of uint32_t, uint6_t or uint8_t type of data atomic? how about accessing element of a struct of mixed data types, is the access atomic?

struct status_t {
uint8_t status1;
uint16_t satus2;
}
0 Likes
4 Replies
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
Hi,

So sorry no ideal regarding the meaning of data atomic.
0 Likes
Not applicable
I can reformulate the question. For basic data types of variables (int8, int16, int32, float, char, etc) and elements of basic data types of structs, is a read of variable or a write of a variable ( or element ) is completed in a single operation in assembly code (after compiling).
0 Likes
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
For this you have to check on the ARM M4 instruction sets manual.
0 Likes
Not applicable
I found it out in deassembly code.
0 Likes