tests-mbed_hal-rtc_reset: Add ack from the device after each command is executed
RTC reset test was failing when board has been just powered and RTC reset test was executed for the first time (issue has been detected on CI). In such case RTC initialization takes more time than in futher rtc_init calls. This has impact on green-tea communication. Commands send by host immediately after init command (write, read) were not handled on the device side and no response to the host was provided.
To fix this problem test communication flow has been modified. Device sends ack to the host after RTC init is done. Host sends further RTC commands when ack from the device has been received.

Edit:
There are still some communication issues on the CI. Add ack from the device after each executed command. Increase test timeout and wait after reset.
ls
1 parent a1d92e5 commit c437e9d2c6cf8ed46e2556d01cd8ad59c648e77f
@Przemyslaw Stekiel Przemyslaw Stekiel authored on 7 Mar 2018
Bartek Szatkowski committed on 25 May 2018
Showing 2 changed files
View
TESTS/host_tests/rtc_reset.py
View
TESTS/mbed_hal/rtc_reset/main.cpp