Hard Fault exception is occurring while programming in FAST mode for saving data in stm32G0 Memory
Hi community,
I am observing Hardfault exception when trying to program internal flash of stm32g030k6t6 MCU in FAST mode . is there anyother FLASH registers i need to enable ?
I have attached the code here
static void write_data_to_application(void)
{
//uint32_t *flash_address = (uint32_t *)FLASH_USER_END_ADDR ;
uint32_t flash_address = 0x08007C00 ;
HAL_StatusTypeDef status = HAL_OK;
HAL_FLASH_Unlock();
status = HAL_FLASH_Program(FLASH_TYPEPROGRAM_FAST, (uint32_t)flash_address, (uint64_t)0xDEAD1731);
HAL_FLASH_Lock();
}Thanks
Narendra C
