cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure Octospi for Single SPI mode using MX and HAL

RWeil.5
Associate

I have configured Octospi for Single SPI mode in CubeMX and am attempting to use HAL_OSPI_Transmit() to write 48 bits to my device (as I would using a basic SPI peripheral). But the code fails. The OSPI is in the HAL_OSPI_STATE_READY mode, but needs to be in HAL_OSPI_STATE_CMD_CFG. Could I be missing a configuration call, or perhaps the wrong HAL call?0693W00000bhIvYQAU.png

1 REPLY 1
FBL
ST Employee

Hello @Community member​ 

I suggest you check AN5050 section 5.2 for OCTOSPI/HSPI configuration for Regular-command protocol.

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.