AnsweredAssumed Answered

Saving a Float to BKP Register

Question asked by swenson.lisa on May 28, 2013
Latest reply on May 30, 2013 by swenson.lisa

I'm fairly new to the world of microcontrollers. I'm using the STM32F103ZG on the MCBSTM32E development board and am saving user-defined inputs to the BKP registers. Most inputs are positvie, small integers. However, I need to save a floating point input.

The BKP write function in the STM library, BKP_WriteBackupRegister, is configured to accept uint16_t and I'm pretty sure it's not as simple as creating a copy of that routine and declaring the Data parameter to be float.

What's the best way to save a float to a BKP register?

Thanks in advance,