Skip to main content
Mike Hooper
Associate III
November 27, 2017
Question

Using STM32F7 SAI in Slave RX mode, how does HAL configure the GPIO pin as input?

  • November 27, 2017
  • 1 reply
  • 462 views
Posted on November 27, 2017 at 15:24

I am using the SAI in my custom F7 board in slave RX mode. I am having trouble receiving SD from the audio codec. In debugging this issue I noticed that the HAL code generated by CubeMX does not have a configuration for the GPIO pin PE6 to be set as an INPUT. The only two settings are Alternate Function Push Pull, and Alternate Function Open Drain, both of which are outputs.

#define GPIO_MODE_AF_PP ((uint32_t)0x00000002U) /*!< Alternate Function Push Pull Mode */

#define GPIO_MODE_AF_OD ((uint32_t)0x00000012U) /*!< Alternate Function Open Drain Mode */

How does HAL configure PE6 as an INPUT pin?

    This topic has been closed for replies.

    1 reply

    Mike Hooper
    Associate III
    December 5, 2017
    Posted on December 05, 2017 at 15:35

    This was a hardware error. The code works properly.