2022-06-10 04:32 AM
I purchased a STEVAL-STWINKT1B development board and inside it has the STR485 chip for RS485 communication.
I tried using the cube mx and configured it appropriately (see image 1 attached), enabled uart2, RS485 flowcontrol and then checked that the pins on the board schematic matched.
Then this I simply tried to send the data on the uart to see if I could see the A and B signals coming off the chip with the oscilloscope change, but nothing seems to happen.
this is the code i used to send the message on the UART:
while (1)
{
uint8_t *prova="0123456789";
HAL_UART_Transmit(&huart2, prova, 10, 100);
HAL_Delay(3000);
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
}
how can I solve this problem?
Solved! Go to Solution.
2022-06-10 08:47 AM
Just checking...
Paul
2022-06-10 08:47 AM
Just checking...
Paul