cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to interface with STM32WB on B-U585I-IOT02A

VCasa.3
Associate II

Hello,

I am trying to comunicate the STM32U5 of the board with the STM32WB module, as I need a star network (1 client with 5 servers), I could also use a mesh. To comunicate different nodes.

 

I am having trouble with it, as I just send basic "AT+BLE_RST=1" and I never get any response.

 

I have flashed the STM32WB with FUS and BLE stack using STM32CubeProgrammer wireless tab and then the BLE_AT_Server module application as noted here: https://github.com/STMicroelectronics/STM32CubeU5/tree/main/Projects/B-U585I-IOT02A/Applications/BLE/BLE_AT_Client

In the U5 I set the UART4 TX as blocking:

HAL_UART_Transmit(UARTx, buffer, length, 1000) != HAL_OK)

And RX with DMA:

__HAL_UART_ENABLE_IT(UARTx, UART_IT_IDLE);
HAL_UART_Receive_DMA(UARTx, stm32wb_rx_buffer, stm32wb_rx_buffer_size);

 

And expecting to get the answer on:

void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)

 

I have previous experience on doing this with H7s, F4s, L4s, but I do not know if is a problem with the GPDMA or what, here is the config:

VCasa3_0-1702673869786.png

DMA Channel 11 is used.

 

I also tryed setting the WAKE_UP Pin of the module High and Low with no luck.

 

Hope someone can give me any advice.

Thank you!

0 REPLIES 0