So I have a buffer:
uint32_t buff[2];
buff[0] = 12;
buff[1] = 13;
...
I can write this to the flash memory with the method:
HAL_FLASH_Program(TYPEPROGRAM_WORD, (uint32_t)(startAddress+(i*4)), *buff)
The definition of HAL_FLASH_Program
is:
HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t Address, uint64_t Data)
That works perfectly. Now is there a way I can store chars instead or ints?