when does UART write fail?
Posted: Wed Jun 18, 2014 3:37 am
In what case would UART serial driver fail to write some bytes out?
I've realized that sometimes after 10 seconds, sometimes after five minutes my chSequentialStreamWrite which uses SD3 would hang up. The thread was in WTQUEUE state indefinitely, so I've moved to chnWriteTimeout method instead and it now sometimes fails to write all 100 bytes at 115KB in 10 seconds. When would this happen? I am pretty sure only one thread is accessing SD3. Could I be exhausting any buffer? Should I increase SERIAL_BUFFERS_SIZE ?
ChibiOS 2.6.3
I've realized that sometimes after 10 seconds, sometimes after five minutes my chSequentialStreamWrite which uses SD3 would hang up. The thread was in WTQUEUE state indefinitely, so I've moved to chnWriteTimeout method instead and it now sometimes fails to write all 100 bytes at 115KB in 10 seconds. When would this happen? I am pretty sure only one thread is accessing SD3. Could I be exhausting any buffer? Should I increase SERIAL_BUFFERS_SIZE ?
ChibiOS 2.6.3