2023-03-31 09:44 AM
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?
2023-04-03 05:20 AM
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.