cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX + MDK-ARM: using UART

balazs
Associate II
Posted on November 25, 2014 at 01:16

Hi All,

I'm just starting up on development for STM32 Cortex M0 and M4, trying to use the CubeMX with MDK ARM to develop a simple communication protocol over rs485.

However I could not find confirmations for my questions:

- should I use the HAL SDK?

- why my workbench does not support calls like: 

USART_SendData(USART2, 'X');

- where can I find detailed docs on the HAL SDK? (e.g. I still could not figure out the unit for the timeout parameter in the call HAL_UART_Receive - is that millis?)

Any recommendations welcome!

Thank you,

Balas

#hal #nucleo #usart #rs485
1 REPLY 1
Posted on January 13, 2015 at 14:14

Hi Balas,

Please find below answers to your questions:

- should I use the HAL SDK?

  • What do you mean by the HAL SDK ? STM32CubeMX ? if yes, you can use the HAL UART driver for RS485 vi the STM32CubeMX code generator or on a standalone example.

- why my workbench does not support calls like: 

USART_SendData(USART2, 'X');

  • The STM32CubeMx is used only for protocol initialization not for data transfer.

- where can I find detailed docs on the HAL SDK? (e.g. I still could not figure out the unit for the timeout parameter in the call HAL_UART_Receive - is that millis?)

Regards,

Heisenberg.