cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L4P5RG two OSPI with multiplexed pin not working

Hi :

I have a custom board, the mcu is STM32L4P5RG, I also connect Flash W25Q128(OSPI1) and APS6404L(OSPI2) to it.

But I can't reset them and hal status always return HAL_ERROR. Can someone help me?

The hardware schematic(Sch.png),Clock configuration(Clock.png),OSPI configuration(OSPI1.png, OSPI2.png),Reset code(Code.png)  are as below:

I also attach my project.

Sch.pngClock.pngOSPI1.pngOSPI2.pngCode.png

11 REPLIES 11

Hi @Alex - APMemory :

thank you for you reply.

Hi :

Finally, I can reset both OSPI device. It need send more data to ensure reset successfully. Just change HAL_OSPI_ADDRESS_NONE to HAL_OSPI_ADDRESS_1_LINE will fix this.

I think it is something related to Errata sheets.