Unable to set up the ISM43340-M4G-L44-10CF WIFI Module on my STM32H7B3IDK board via SPI
I am trying to send and receive data from my STM32 board to the included WIFI module. However, the WIFI module doesn't seem to be responding. Instead, the only output I get are dots. Below, shows an excerpt of my code. I am trying to get the WIFI module to respond by sending its serial number.
int main(void)
{
/* USER CODE BEGIN 1 */
char uart_buf[50];
int uart_buf_len;
uint8_t TX_Data[] = "ZS\r";
uint8_t RX_Data[100];
/* USER CODE END 1 */
/* MCU Configuration--------------------------------------------------------*/
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();
/* USER CODE BEGIN Init */
/* USER CODE END Init */
/* Configure the system clock */
SystemClock_Config();
/* Configure the peripherals common clocks */
PeriphCommonClock_Config();
/* USER CODE BEGIN SysInit */
/* USER CODE END SysInit */
/* Initialize all configured peripherals */
MX_GPIO_Init();
MX_SPI2_Init();
MX_USART1_UART_Init();
/* USER CODE BEGIN 2 */
uart_buf_len = sprintf(uart_buf,"SPI WIFI Test Intialising...");
HAL_UART_Transmit(&huart1,(uint8_t *)uart_buf,uart_buf_len,1000);// Sending in normal mode
HAL_SPI_Transmit(&hspi2, TX_Data, sizeof(TX_Data), 5000);
HAL_SPI_Receive(&hspi2, RX_Data, sizeof(RX_Data), 5000);
HAL_UART_Transmit(&huart1,RX_Data,sizeof(RX_Data),5000);
/* USER CODE END 2 */
/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
{
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
}
/* USER CODE END 3 */
}Also, if anyone knows of some good resources or examples for interfacing the WIFI module via SPI or UART please let me know.
Thank you for your help.
