I have modified the BSP from Demo provided on official web to work for now only with one UART (UART0) and everything works fine when the UART is opened with
boardDEFAULT_UART_BAUD
. (default baud is 9600).
When change the default baud (to 19200) and I try to change baudrate right after
FreeRTOS_open()
with
xReturned = FreeRTOS_ioctl( xUARTPort, ioctlSET_SPEED, (void *) 9600 );
the communication doesn’t work anymore on any baud rate (19200 nor 9600).
Am I doing something wrong here?
xUARTPort = FreeRTOS_open( boardUART_0, ( uint32_t ) cmdPARAMTER_NOT_USED );
xReturned = FreeRTOS_ioctl( xUARTPort , ioctlSET_SPEED, (void *) 9600 );