Solved
Two OSPI usage in STM32U599
Hello,
Is it possible to use two OSPI with below configuration. I can make this configuration in cubeMx but whiel debugging ospi1 is not working after ospi2 initialize.





Hello,
Is it possible to use two OSPI with below configuration. I can make this configuration in cubeMx but whiel debugging ospi1 is not working after ospi2 initialize.





Hello, my code was like (cubeMX created that)
sOspiManagerCfg.ClkPort = 1;
sOspiManagerCfg.NCSPort = 1;
sOspiManagerCfg.IOLowPort = HAL_OSPIM_IOPORT_1_LOW;
if (HAL_OSPIM_Config(&hospi1, &sOspiManagerCfg, HAL_OSPI_TIMEOUT_DEFAULT_VALUE) != HAL_OK)
{
Error_Handler();
}
sOspiManagerCfg.ClkPort = 2;
sOspiManagerCfg.NCSPort = 2;
sOspiManagerCfg.IOLowPort = HAL_OSPIM_IOPORT_1_HIGH;
if (HAL_OSPIM_Config(&hospi2, &sOspiManagerCfg, HAL_OSPI_TIMEOUT_DEFAULT_VALUE) != HAL_OK)
{
Error_Handler();
}I added only sOspiManagerCfg.IOHighPort = HAL_OSPIM_IOPORT_1_HIGH; to OSPI1 init like below
sOspiManagerCfg.ClkPort = 1;
sOspiManagerCfg.NCSPort = 1;
sOspiManagerCfg.IOLowPort = HAL_OSPIM_IOPORT_1_LOW;
sOspiManagerCfg.IOHighPort = HAL_OSPIM_IOPORT_1_HIGH;
if (HAL_OSPIM_Config(&hospi1, &sOspiManagerCfg, HAL_OSPI_TIMEOUT_DEFAULT_VALUE) != HAL_OK)
{
Error_Handler();
}and it works fine .
Thanks
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.