2025-04-01 9:13 AM
Dear Community,
I have been trying to implement a BLE custom PCB that will implement an STM32WB5MMG for UART to BLE and an STM32H7.
The WB5 will manage the send and receive packets from to a mobile App to the H7 through UART, also it has an state machine for OTA updates.
This all works, I can set up everything, I can advertise, connect, send and receive data to the WB5, but the problem is that then sending or receiving through UART is not working, it just does not happen.
I am not using the HW_UART that the STM32_WPAN lib provides, I want to use the standart HAL_UART library, I enable the UART ITs in the NVIC, priority 0 (I am using the LPUART1 of the chip), but then nothing happens, even the blocking call HAL_UART_Transmit () does not work. I do not know what is happening, as the MX_LPUART1_UART_Init() goes good. Should I have something in mind for this?
I have checked all the available Examples and Apps in the WB5 FW Repo, but it just does not work (and I have experience with this, asi the H7 is working and I have implemented UART comms with STM32 multiple times in different projects).
Could it be that something has to be done specificaly?
MX_LPUART1_UART_Init() is done in the int main() and the while(1) just has MX_APPE_Process();
I am calling HAL_UART_Transmit_IT() from a task registered in APP_BLE_Init() as any other task, so everything is running from the BLE Sequencer.
Thank you so much in advance,
Best regards