Skip to content

Fix Greentea test code with wakeup from deepsleep #7288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 21, 2018

Conversation

ccli8
Copy link
Contributor

@ccli8 ccli8 commented Jun 21, 2018

Description

This PR is to fix the same issue as #7224. Still take NUMAKER_PFM_NUC472 as an example: Its UART peripheral has 16-byte Tx FIFO. With baud rate set to 9600, flush Tx FIFO would take: 16 * 8 * 1000 / 9600 = 13.3 (ms). So set wait time to 20ms here for safe.

Pull request type

[X] Fix
[ ] Refactor
[ ] New target
[ ] Feature
[ ] Breaking change

Original wait time is not enough for UART to flush out before deepsleep on some targets.
@0xc0170
Copy link
Contributor

0xc0170 commented Jun 21, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Jun 21, 2018

Build : SUCCESS

Build number : 2410
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/7288/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Jun 21, 2018

@mbed-ci
Copy link

mbed-ci commented Jun 21, 2018

@cmonr cmonr merged commit ea73207 into ARMmbed:master Jun 21, 2018
@ccli8 ccli8 deleted the nuvoton_fix_greentea_wakeup branch June 22, 2018 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants