STM32U5G9J-DK2 application example "Fx_NoR_Write_Read_File" is not working
I encountered an issue with the "Fx_NoR_Write_Read_File" application example. Upon running the application, it consistently triggers an error that redirects control flow to the Error_Handler() function within the app_filex.c file.
Note that STM32U5G9J-DK2 is a brand new board.
Application example location:
../STM32Cube/Repository/STM32Cube_FW_U5_V1.5.0/Projects/STM32U5G9J-DK2/Applications/FileX/Fx_NoR_Write_Read_FileEntering to app_filex.c function Error_Handler() here.
nor_xspi_status = fx_media_format(&nor_xspi_flash_disk, // nor_xspi_flash_disk pointer
fx_stm32_levelx_nor_driver, // Driver entry
(VOID *)NOR_DEFAULT_DRIVER, // Device info pointer
(UCHAR *) fx_nor_xspi_media_memory, // Media buffer pointer
sizeof(fx_nor_xspi_media_memory), // Media buffer size
FX_NOR_XSPI_VOLUME_NAME, // Volume Name
FX_NOR_XSPI_NUMBER_OF_FATS, // Number of FATs
32, // Directory Entries
FX_NOR_XSPI_HIDDEN_SECTORS, // Hidden sectors
LX_STM32_XSPI_FLASH_SIZE / FX_NOR_XSPI_SECTOR_SIZE, // Total sectors
FX_NOR_XSPI_SECTOR_SIZE, // Sector size
8, // Sectors per cluster
1, // Heads
1); // Sectors per track
/* Check the format nor_xspi_status */
if (nor_xspi_status != FX_SUCCESS)
{
Error_Handler();
}Could you please help me on this
