2018-04-20 12:00 AM
Hi there,
I'm working on STM32F103 and a WiFi module SPWF01SA. I used the ST middleware and I can communicate with the WiFi module only without the Hardware Flow control.
I configured the USART1 with Flow Control using Cube32Mx
huart1.Instance = USART1;
huart1.Init.BaudRate = 115200;
huart1.Init.WordLength = UART_WORDLENGTH_8B;
huart1.Init.StopBits = UART_STOPBITS_1;
huart1.Init.Parity = UART_PARITY_NONE;
huart1.Init.Mode = UART_MODE_TX_RX;
huart1.Init.HwFlowCtl = UART_HWCONTROL_RTS;
huart1.Init.OverSampling = UART_OVERSAMPLING_16;�?�?�?�?�?�?�?�?
I copied this configuration from the example project. In fact this project use onlt the RTS pin.
I connected the WiFi CTS pin to the MCU RTS pin. and the WiFi RTS is unconnected.
The WiFi initialization works well until I send the command
status = SET_Configuration_Value(CONSOLE1_HWFC, 1);
After this command the WiFi module does not respond anymore.
Any suggestion?
Thanks for the help!
Federico
#hardware-flow-control #wifi-usart #spwf01