Skip to content

Commit 1e5a52a

Browse files
committed
[Nuvoton] Fix mbedmicro-rtos-mbed-systimer/Wake up from deep sleep failing
This test requires total latency (tot = h/w + s/w) (wakeup from deepsleep) be under 1ms. To check the issue, measure total latency on Nuvoton targets: TARGET EXP(us) EXP+TOL(us) ACT(us) NANO130 42000 43000 42939 NUC472 42000 43000 42236 M453 42000 43000 43274 M487 42000 43000 42877 M2351 42000 43000 43213 Checking h/w spec, h/w latency (wakeup time from normal power-down mode) on M487/M2351 is just 1us (n/a on other targets). S/W latency plays the major part here. S/W latency relies on system performance. On Nuvoton targets, 'LPTICKER_DELAY_TICKS' possibly complicates the test. Anyway, to pass the test, add extra 1ms latency (deep-sleep-latency) in targets.json for Nuvoton targets.
1 parent 492d10c commit 1e5a52a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

targets/targets.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7442,6 +7442,7 @@
74427442
"bootloader_supported": true,
74437443
"overrides": {
74447444
"network-default-interface-type": "ETHERNET",
7445+
"deep-sleep-latency": 1,
74457446
"tickless-from-us-ticker": true
74467447
}
74477448
},
@@ -7572,6 +7573,7 @@
75727573
"device_name": "M453VG6AE",
75737574
"bootloader_supported": true,
75747575
"overrides": {
7576+
"deep-sleep-latency": 1,
75757577
"tickless-from-us-ticker": true
75767578
}
75777579
},
@@ -7639,6 +7641,7 @@
76397641
"release_versions": ["5"],
76407642
"device_name": "NANO130KE3BN",
76417643
"overrides": {
7644+
"deep-sleep-latency": 1,
76427645
"tickless-from-us-ticker": true
76437646
}
76447647
},
@@ -8000,6 +8003,7 @@
80008003
"bootloader_supported": true,
80018004
"overrides": {
80028005
"network-default-interface-type": "ETHERNET",
8006+
"deep-sleep-latency": 1,
80038007
"tickless-from-us-ticker": true
80048008
}
80058009
},
@@ -8210,6 +8214,7 @@
82108214
}
82118215
},
82128216
"overrides": {
8217+
"deep-sleep-latency": 1,
82138218
"mpu-rom-end": "0x1fffffff"
82148219
},
82158220
"inherits": ["Target"],

0 commit comments

Comments
 (0)