Hello Feng, Thanks for the reference project. The error occurs on line 385 of sf_uart_comms.c. The framework checks the result of the write request immediately and (since data transfer takes time to complete) returns an error. The simplest fix is to insert timeout value of 1 instead of TX_NO_WAIT as the last argument. When writing with TX_NO_WAIT, you can expect the data to be still written, even though it returns an error. If you do not check the return value for this function, it should run fine also. Regards
↧