WiFi Initialization Issues on STM32H7B3I-DK along with TouchGFX and FreeRTOS
Title: Seeking Community Assistance: WiFi Initialization Issues on STM32H7B3I-DK with TouchGFX and FreeRTOS
Introduction:
I am currently facing challenges with initializing WiFi on the STM32H7B3I-DK board following the clock and weather example provided by STMicroelectronics. The main issue arises when attempting to initialize WiFi WIFI_Init() before starting the FreeRTOS kernel (`osKernelStart()`). This results in the program getting stuck in an infinite loop, possibly due to a semaphore-related function `wait_spi_tx_event()` defined in the `net_conf_es_wifi_spi` file. Furthermore, when trying to initialize WiFi within a task, I encounter `NET_ERROR_NO_MEMORY` errors during memory allocation (`malloc()`), even after increasing the heap size.
Problem Analysis:
1. Infinite Loop Issue: The program gets stuck in an infinite loop, likely due to WiFi initialization occurring before starting the TouchGFX task. This situation leads to problems with the semaphore related to SPI transmission (`spi_tx_sem`), which is referenced in the `wait_spi_tx_event()` function.
The SEM_WAIT is Defined in the DedicatedBufferVideoController File as shown.


2. Memory Allocation Errors: Despite increasing the heap size, attempting to initialize WiFi within a task results in memory allocation errors (`NET_ERROR_NO_MEMORY`). This indicates insufficient memory available for WiFi initialization and operation.


I am reaching out for assistance in resolving these WiFi initialization issues on the STM32H7B3I-DK board with TouchGFX and FreeRTOS (CMSIS V2).
Any advice, guidance, or assistance from community members or ST Employees would be highly appreciated.
Thank you for your support.
