Skip to main content
Associate II
February 10, 2025
Solved

How to map OCTOSPIM to port G on STM32U5Axxx

  • February 10, 2025
  • 2 replies
  • 665 views

I'm new to STM32CubeMX and have difficulties finding out how to map all OCTOSPIM_P2 signals to Port G. I can manually map some signals to Port G (CS, IO[7:4], DQS), but can't figure out how to map the rest. 

 

Any help most welcome!

Best answer by KDJEM.1

Hello @MikeStrom,

 

I recommend you to refer to the STM32U5A datasheet and precisely Table 27. STM32U5Axxx pin/ball definitions and check whether you are able to map all OCTOSPIM signals to port G or not??

For example,  OCTOSPIM_P1_CLK signal is not available on port G.

Also you can used search method to find the availability of signal on different pins as shown in the below figure

KDJEM1_0-1739193320167.png

 

I hope this help you.

Thank you.

Kaouthar

 

 

2 replies

KDJEM.1
KDJEM.1Best answer
Technical Moderator
February 10, 2025

Hello @MikeStrom,

 

I recommend you to refer to the STM32U5A datasheet and precisely Table 27. STM32U5Axxx pin/ball definitions and check whether you are able to map all OCTOSPIM signals to port G or not??

For example,  OCTOSPIM_P1_CLK signal is not available on port G.

Also you can used search method to find the availability of signal on different pins as shown in the below figure

KDJEM1_0-1739193320167.png

 

I hope this help you.

Thank you.

Kaouthar

 

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
MikeStromAuthor
Associate II
February 10, 2025

Thanks for the feedback @KDJEM.1

It appears that it is not possible when reading Table 27. However, that means that the text in para 3.28 is a bit misleading:

Screen Shot 2025-02-10 at 9.27.19 PM.png

Since we consequently are forced to run the entire CPU on 1V8, is it correct that we can run the OSPI clock at 93MHz in both SDR and DDR mode, effectively reaching 93MT/s and 186MT/s with 8 lanes? It looks possible to me from the data sheet, but I might have overlooked something. 

Thanks!

Tesla DeLorean
Guru
February 10, 2025

>>effectively reaching 93MT/s and 186MT/s with 8 lanes?

Some how I think that's probably super optimistic, and ignores achievable burst lengths, overhead and latency.

In OCTOSPIM nomenclature I think full I/O matrix means mapping of high/low banking. Perhaps allowing for interchange of CLK, NCS, DQS, IO's from P1 to/from P2

Although I don't see a OCTOSPIM CLK for either bank on GPIO-G

Can VCCIO be 3V3 if the rest of the MCU is at 1V8 ?

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..