Other Parts Discussed in Thread: SYSCONFIG
请问我在syscfg里修改了波特率之后会出现错误,请问应该如何修改串口的波特率呢?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
sysconfig是用来进行硬件相关的配置,波特率不支持在sysconfig中修改,可以在初始化代码中进行配置
/* Create a UART with data processing off. */ UART_Params_init(&uartParams); uartParams.writeDataMode = UART_DATA_BINARY; uartParams.readDataMode = UART_DATA_BINARY; uartParams.readReturnMode = UART_RETURN_FULL; uartParams.baudRate = 115200;
sysconfig中的波特率配置可能会引起歧义,未来的版本中会考虑修改它
参考里面的UART_PRINT或者System_printf:https://dev.ti.com/tirex/explore/node?node=AFP7qrknctNrPgCKeGadww__fc2e6sr__LATEST