STM32WB - IPCC - Hard Faullt
Hello,
I am working on an STM32WB project where I need to erase and write to the flash memory. I have utilized the flash_driver.c files that I found in the STM32WB examples. I tried to integrate these into my project (which does not use FreeRTOS or BLE - though I had to enable BLE in CubeMX to satisfy flash_driver.c dependencies).
However, I encounter a hard fault when calling the uint32_t FD_EraseSectors(uint32_t FirstSector, uint32_t NbrOfSectors) function. The crash occurs specifically at the following line:
shci_send(SHCI_OPCODE_C2_FLASH_ERASE_ACTIVITY, 1, local_buffer, p_rsp);
I am unsure how to debug this issue. Could you please provide some guidance or advice on how to resolve this problem?
Thank you.
