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?