Commit Graph

3 Commits (e3bde44b876bbb0051923a3fdf668cd06b51b5ad)

Author SHA1 Message Date
Laurent Meunier 05baf365dc Synchronize host and target for nc serial auto test
We're ensuring target and host start-up sync here in 2 ways:
1) adding a delay on host side to make sure the serial
initialization can happen before sending a character is sent to target
2) in case of serial_nc_rx_auto.py test, we're sending a
first character S which will trigger the move from rx+tx
to NC+rx.

This should  avoid any crossing case due to HSOT being faster than target or vice-versa
2016-06-03 09:32:13 +02:00
Laurent Meunier c35a6f65f2 Modify serial nc tests init part
During initialization phase of the 2 NC serial tests,
there is a character being sent from host to target,
based on MBED_HOSTTEST_START. The problem is that
the target firmware then creates a "new" serial on the
same serial interface. the new or should, or at least may,
induce a reset of the IP, so that the character sent by host
would be lost. So we're moving the new earlier.

the real testing part happens later, to check the next
character is not received or sent.
2016-06-03 09:32:13 +02:00
Brian Daniels f2ea9c51c7 Added tests that ensure correct handling of setting Serial pins to NC 2015-06-10 11:04:05 -05:00