I am having an error in flash programming.
flash.program((uint32_t)&data, FLASH_DATA_ADDRESS, sizeof(SensorData));
error is Cannot initialize a parameter of type ‘const void *’ with an rvalue of type ‘std::uint32_t’ (aka ‘unsigned int’)
program (const void *buffer, uint32_t addr, uint32_t size)
So you use diferent data type probably and that lead to the error Cannot initialize a parameter of type ‘const void *’ with an rvalue of type ‘std::uint32_t’ (aka ‘unsigned int’)