Skip to main content
Associate
May 12, 2026
Question

[STM32U545] OSPI write only

  • May 12, 2026
  • 5 replies
  • 190 views

Hello,

I'm working on a projet where I need to drive 4 (or 2 x 4) GPIO at the same time with high speed on the STM32U545RE.

I'm trying to use the DualQuad SPI (with OSPI) but I can't have the clock working...

At first I tried to write a code with a send only type of frame (with no instruction and no address) but nothing was working.

Now I tried to use the example code from a STM32L5 but nothing seem to be working either.

 

Can you if someone already tried to do that ?

 

BR,

Loïc

5 replies

KDJEM.1
Technical Moderator
May 12, 2026

Hello @Loïc1 and welcome to the community,

 

Could you please give more details about the use case.

Which memory are you using?

Could you please share your configuration?

I recommend you to look at these examples:

 

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.
Loïc1Author
Associate
May 12, 2026

Hi @KDJEM.1  Thank you for your quick answer.

 

The only thing I can say about the use case is that I don't use any kind of memory, I have a NUCLEO-U545REQ and I need to drive at high speed rate 4 I/O (or 8 I/O) at the same time.

I need to have a clock at 40MHz, and the other I/O at the same speed or faster.

I though the OSPI was the best option to do that but the problem is I need to use the QSPI (or OSPI) as a custom parallel serializer, and for that I need to use a send only system, with no opcode of anykind, only data.

 

Thank you,

Loïc

KDJEM.1
Technical Moderator
May 12, 2026

Hello @Loïc1 ;

 

I recommend you to look at OCTOSPI examples and AN5050 and get inspired to configure your project.

Do you need a fast slave interface with high throughput?, you can use a PSSI interface.

 

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.
Loïc1Author
Associate
May 13, 2026

Hello, @KDJEM.1 .

 

I tried to do what you say but nothing is working.

In my environnement, I've remove all the autopolling and other thing that makes a read operation to only make a write with DMA.

It is running but nothing comes out at the clock...

 

I've look to PSSI, it is very interesting because it is almost what I need. The PSSI can send and receive data at high speed but it needs a clock input, and in my application I need to have a clock output. Do you have any other possibilities ?

 

BR,

Loïc

KDJEM.1
Technical Moderator
May 13, 2026

Hello @Loïc1 ;

 

-> At first I tried to write a code with a send only type of frame (with no instruction and no address) but nothing was working.

Do you only send data phase?

When in regular-command protocol, the OCTOSPI communicates with the external device using commands. Each command can include the following phases:
• Instruction phase
• Address phase
• Alternate-byte phase
• Dummy-cycle phase
• Data phase
Any of these phases can be configured to be skipped but, in case of single-phase command, the only use case supported is instruction-phase-only.

What about chip select signal, does their level change?

 

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.
Loïc1Author
Associate
May 13, 2026

@KDJEM.1 

Yes I only send data phase, without instruction phase, address phase, alternate-byte phase, dummy-cycle phase.

I would like to skip every phase to send only the data and don't disturb the chip that will receive the data.

The chip select signal don't change level, it is only 1 or 0.

 

Can the PSSI work without a PSSI_PDCK signal input from an external device ? Only with the pssi_hclk (AHB clock) in the STM32U545.

 

Thank you,

Loïc

KDJEM.1
Technical Moderator
May 13, 2026

Hello @Loïc1 ;

 

You cannot send only data phase.

KDJEM1_0-1778664183572.png

->Can the PSSI work without a PSSI_PDCK signal

No, please look at Overall FAQs for PSSI - STMicroelectronics Community

 

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.
Loïc1Author
Associate
May 13, 2026

Hello @KDJEM.1 ,

 

->You cannot send only data phase.

 

What about if I use the OCTOSPI_CCR.SIOO register to 1, can it make the instruction to be send only at the start of the application with the first send frame and after skip the instruction phase ?

Capture.PNG


->No, please look at Overall FAQs for PSSI - STMicroelectronics Community


Maybe with an RCC it will work don't you think ?

Capture1.PNG

 

Thank you,

Loïc

KDJEM.1
Technical Moderator
May 13, 2026

Hello @Loïc1 ;

 

As I mentioned perversely, in case of single-phase command, the only use case supported is instruction-phase-only.

For PSSI you can use RCC for PSSI_PDCK.

 

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.