cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L4R5 using OCTOSPI2 @LQFP100

Hu44
Associate

Is there any chance to use both OCTOSPI (as 2xQSPI) with a LQFP100 package? There is a OCTOSPIM_P2_NCS but no OCTOSPIM_P2_CLK and Multiplexed Mode is not possible (only on P/Q-variants). 

Thanks in advance!

 

1 ACCEPTED SOLUTION

Accepted Solutions

Dear @STOne-32,

Thank you very much for your quick response! 

Both solutions are a nice idea, particular the 2nd one for other problems too. But doing so there would be the need of using a kind of semaphore to divide the two accesses. That would be at to much parts in the software. So I have to chose a greater package, unfortunately.

It is a great pity not having a 2nd CLK there.

Thanks again

Hu44

 

 

View solution in original post

3 REPLIES 3

Not sure if concurrently, or in memory mapped. You might be able to use the OSPIM to redirect the Port vs Pin mapping for the clocks.

Could perhaps use an encoder or glue logic to change the CS distribution to multiple devices externally.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
STOne-32
ST Employee

Dear @Hu44 ,

Welcome in our STCommunity. As you mentioned this use case is supported by the P/Q variant and is more cost effective. on this device it is not possible to have both QSPI memories accessed since no second clock (OCTOSPIM_P2_CLK not available ) but there is a possible workaround :

connect both memories to the same clock OCTOSPIM_P1_CLK:

1. Dual-quad mode: software should select between both memories using FSEL bit

2.using different GPIOs (such PE10/PA3): in that case the software should configure the clock for the memory to be accessed (in AF OCTOSPIM_P1_CLK).

So the  software can switch between two memories by configuring the clock on the wanted one.

Hope it helps you .

STOne-32

 

 

 

Dear @STOne-32,

Thank you very much for your quick response! 

Both solutions are a nice idea, particular the 2nd one for other problems too. But doing so there would be the need of using a kind of semaphore to divide the two accesses. That would be at to much parts in the software. So I have to chose a greater package, unfortunately.

It is a great pity not having a 2nd CLK there.

Thanks again

Hu44