Skip to main content
Graduate
October 24, 2024
Solved

STM32H5 Error: Unable to get core ID when using read operation custom external loader

  • October 24, 2024
  • 2 replies
  • 2576 views

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

Screenshot 2024-10-24 155648.png

 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.

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    Exit path for Write() should enable Memory Mapped Mode

    2 replies

    Graduate II
    October 24, 2024

    Will need to drop out of Memory Mapped mode to erase, write and wait for completion,  and then switch back to Memory Mapped mode for the tools to Read/Verify the content.

    SilexmanAuthor
    Graduate
    October 25, 2024

    Hello , thank you for the reply. I am using HAL_XSPI_Abort(&hospi1); to exit from memory mapped mode so the code I am running look like this 

    	if (CSP_QUADSPI_Init() != HAL_OK) {
    		Error_Handler();
    	}
    	if (CSP_QSPI_EnableMemoryMappedMode() != HAL_OK) {
    		Error_Handler();
    	}
    	HAL_XSPI_Abort(&hospi1);

    the disconnect problem is clear but of course I can't see the data with read memorry fiture on stm32cubeide. if I comment the HAL_XSPI_Abort(&hospi1);, the disconnect problem occurs again after I use the read memory fiture on stm32cubeide.

    Graduate II
    October 25, 2024

    Exit path for Write() should enable Memory Mapped Mode

    Graduate II
    October 24, 2024

    Describe the specific parts involved here and the pin usage that connects them.

    SilexmanAuthor
    Graduate
    October 25, 2024

    Hello, thank you for the reply. I am using two W25Q128JVPIQ connected with STM32H573IIT3Q. the pin connections are :
    FLASH 1,2 CLK -> PA3

    FLASH 1,2 IO0 -> PF8

    FLASH 1,2 IO1->PF9

    FLASH 1,2 IO2 -> PF7

    FLASH 1,2 IO3 -> PF6

    FLASH 1 NCS -> PB10
    FLASH 2 NCS -> PB6

    But for now, I am trying to make an external loader for FLASH 1