STM32H5 Error: Unable to get core ID when using read operation custom external loader
I am trying to make a custom external loader for a qspi nor flash. the erase sector and write operation is success but after I tried the read operation the operation is fail the device is disconnected and showing this message

I have tried to run a program like this demo project , the program is working normally and I can read the data . buat after I comment the write section :
if (CSP_QSPI_WriteMemory(buffer_test, var * MEMORY_SECTOR_SIZE,
sizeof(buffer_test)) != HAL_OK) {
Error_Handler();
}and read the memorry, the device is disonnected and I have restart the device if I want to connect again. any one know why ?, thank you.
