Skip to main content
RWeil.5
Visitor II
March 31, 2023
Question

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

  • March 31, 2023
  • 1 reply
  • 1932 views

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

This topic has been closed for replies.

1 reply

Technical Moderator
April 3, 2023

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 "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL