Closed
Description
Description
- Type: Bug
- Priority: Minor
Bug
Target
MAX326xx
Toolchain:
All
The legacy serial port tests (MBED_37, MBED_38, MBED_A9) delete and instantiate a new serial object to change modes or serial parameters. The Maxim Integrated UART has a hardware FIFO. Putchar will return as soon as the character is in the FIFO. It may not have been transmitted on the wire, yet. The mbed hal API does not support destructors to clean up or block in. The test prints a message and immediately deletes the object and instantiates a new one. This causes the FIFO to be cleared and reinitialized before the message is completely transmitted. Delays should be inserted in the tests to allow for characters to be transmitted before deleting the object.