cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_UART_RECEIVE function not working with Huskylens

AmirImran
Associate II

I want NUCLEO-U083RC board able to receive data from Huskylens for colour/object recognition project. I did manage to run a demo code but still can't receive data from Huskylens. I have use HAL_UART_RECEIVE and HAL_UART_RECEIVE_IT function and still got no output from Huskylens.

Code I'm currently using:

AmirImran_1-1742196122267.pngAmirImran_2-1742196157431.pngAmirImran_3-1742196203640.png

AmirImran_4-1742196228063.png

 

11 REPLIES 11

As suggested a number of times, have you probed on the STM32's pins to see what (if anything) is actually arriving there?

And have you tested that you can receive from a PC terminal ?

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

@Karl Yamashita wrote:

Again, you can't use USART2 as the ST-Link VCP is connected to the same pins.   


Indeed.

@AmirImran see here and here and here for further explanation of why that won't work.

 

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.