Hi, I want to write into flash on an STM32WB15 mcu. I have this code, where i write two 32 bit variable into the flash. void Write_Flash_Data(uint32_t new_value1, uint32_t new_value2) {
HAL_StatusTypeDef status;
HAL_FLASH_Unlock(); // Unlo...
I finally was able to detecte where is the Haurdfault comed from:After writing, the main loop calls MX_APPE_Process(); the tries to start a task, but the index is pointing to a place where there is no task:After calling that, the program goes to Har...
I wa trying to solve the problem, and in an other forum they suggested that the issue is maybe that an interrupt interrupts the flash write, causing an error. But it did not solved the issue. The Fault analizer states this: