This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Reading a 32-bit floating point value from register

Hello,

I am using SEGGER Embedded Studio together with a nRF52832 and I am trying to read an EEprom register containing a 32-bit floating point value in four bytes (register address 0x10, 0x11, 0x12, 0x13).

I have seen examples of someone using a union function for this, but I can't figure out how to do it.

I can read each byte separately and combine them into a 32-bit integer value (uint32_t), but i don't think this helps me.

Any suggestions are very much appreciated.

Thanks.