cancel
Showing results for 
Search instead for 
Did you mean: 

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

Mike Hooper
Senior
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?

1 REPLY 1
Mike Hooper
Senior
Posted on December 05, 2017 at 15:35

This was a hardware error. The code works properly.