Memory mapped record object issue

Hmm, I seem to be on the latest version according to alr toolchain --select

Ah! good spot, thank you..based on my understanding it’s the representation clause that’s the final arbiter for this and things like Object_Size but could be wrong

So maybe you’re already aware of this but this is a tricky one on this mcu. By design (feature/bug?) it only deals with 32-bit accesses on the APB buses which the peripherals are attached to. Any other access is silently converted to a 32-bit access by cloning the byte or half-word across the full 32 range:

This can cause some really bizarre behaviour when the compiler issues byte or half-word accesses cause the end effect is basically to override the contents of a register. I’ve had this issue in the past and it was somewhat hard to diagnose.
Was really keen to understand a bit more about using that when passing references of objects. Would you mind elaborating on that for a bit more, please?

Makes total sense, I guess beneficial for documentation purposes too.

Thanks very much for looking into it, much appreciated. :folded_hands: