Skip to content

Release candidate for mbed-os-5.10.1 #8341

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 202 commits into from
Oct 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
202 commits
Select commit Hold shift + click to select a range
3f26ee0
MIMXRT1050_EVK: Update SPI HAL driver
mmahadevan108 Aug 27, 2018
9f61351
Switch the IPv4 parser to the one recently introduced in libservice. …
Taiki-San Aug 27, 2018
8c677fc
SImplify linkerscirpt usage
theotherjimmy Aug 30, 2018
ce1ea56
Fix TCPSocket::accept()
Sep 5, 2018
98021cb
STM32L4 : code cleanup in MSI SetSysClock
jeromecoutant Aug 9, 2018
d88d19e
Added ARM Permissive Binary License to MTS bootloaders
Aug 17, 2018
6bcfdb9
Fixed: @44,18: unused variable 'tid' [-Wunused-variable]
Aug 27, 2018
d656be8
Fixed: comparison between signed and unsigned integer expressions
Aug 27, 2018
5e55fdf
Change mbedtls_platform_context parameter to NULL
Sep 3, 2018
a3c3f7a
LoRaWAN: Memory overrun correction
Sep 4, 2018
a8aeea1
NXP: Update serial driver's parity handling
mmahadevan108 Sep 5, 2018
33d04b0
FileBase: Fix unsetting of default when destroyed
kjbracey Sep 10, 2018
8c3a350
Spelling fixes and general readability improvements
bridadan Sep 10, 2018
e70f3b5
Copy edit readme.md
Sep 11, 2018
c0f99a4
Fix link issue for mbed-cloud-client-example with ARM toolchain.
fredlee12001 Aug 22, 2018
f362753
missing onDataSent calblack for cordio
paul-szczepanek-arm Sep 4, 2018
cadfb7e
missing overload
paul-szczepanek-arm Sep 4, 2018
287c750
cellular unittests ported to googletest framework
Aug 30, 2018
3945ea6
Old Cellular UNITTESTS removed
Aug 31, 2018
eff5f39
Small improvements for test cases
Sep 5, 2018
fc97b2a
Rebased & fixed
Sep 9, 2018
0d3cc36
Corrected device_has_add flags for bluepill_f103c8 target
cesarvandevelde Aug 4, 2018
25d50d5
Updated pinmap to fix CAN and enable UART hardware flow control
cesarvandevelde Aug 31, 2018
7f4aedc
Revert file permissions
cesarvandevelde Sep 6, 2018
b483778
Revert file permissions
cesarvandevelde Sep 6, 2018
39a8d6e
netsocket: Fix compiler warning
juhaylinen Aug 24, 2018
a3d59a9
`mbed dm`: Remove references to internal script from help
theotherjimmy Sep 12, 2018
e0f4637
STM: Fix us_ticker timestamp after deep sleep
Sep 14, 2018
3db611c
Clean up include paths.
tkem Aug 27, 2018
5ac200a
Fix issues with LowPowerTickerWrapper
ccli8 Aug 21, 2018
3413b3e
Align to CMSIS defines for Non-secure
Sep 6, 2018
2ad5851
Add consistent ADuCM3029 System return codes and remove duplicate codes
Aug 29, 2018
a97bfae
Apply consistent system return code to adi_system_EnableRetention()
Aug 29, 2018
8bd9cfb
Added greentea tests for network interface status and connect/disconnect
Aug 13, 2018
3236fee
Lora: Fix ADRAckReq
Sep 10, 2018
41d23a8
Add bootloader image for Nucleo F207ZG
Sep 17, 2018
3b233c5
Rename F207ZG bootloader binary
Sep 17, 2018
b6b331f
add auto-naming of unit test suites
lorjala Sep 17, 2018
2c8550b
update test file generator
lorjala Sep 17, 2018
e49523b
remove test suite names from cellular tests
lorjala Sep 19, 2018
6b11e99
LoRaWAN: Refactoring compliance test code
Sep 11, 2018
b66a4f6
Fix Bug : IAR heap memory problem
Aug 29, 2018
8a8f673
Stack size change to 1K in IAR Linker Script.
Aug 29, 2018
063118c
Update mbed-cloud-sdk in requirements.txt
Sep 18, 2018
ffa46b1
LoRa: Stop processing MAC commands if command id is unknown
Aug 30, 2018
668a10e
Update to NuMaker-PFM-M2351 V1.3 board
ccli8 Sep 4, 2018
765cee5
Fix EFM32 pwmout hal function pwmout_period
MikeDK Sep 5, 2018
66bf5c4
Remove the unstable SYNCHRONOUS_DNS_CACHE testcase
Sep 18, 2018
1fb99b7
Py3 support back. Reverted accidentially in icetea changes rebase
Sep 19, 2018
557f38e
Move exception in two lines that traceback looks better
Sep 19, 2018
b57c9d3
Check that TEST_APPS folder exists
Sep 19, 2018
31193db
Move exception earlier
Sep 20, 2018
0c15c30
qspi_hal_test refactoring
maciejbocianski Aug 29, 2018
71f473a
qspi_hal_test add DPI and QPI support
maciejbocianski Aug 29, 2018
325ad81
qspi_hal_test - randomize flash RW addres
maciejbocianski Aug 29, 2018
05062be
qspi_hal_test - remove unused variables
maciejbocianski Aug 30, 2018
51cac63
fix qspi address sending for nrf52
maciejbocianski Aug 30, 2018
f3fee59
qspi_hal_test - adjust used memory sector count
maciejbocianski Aug 31, 2018
b6a7cf5
Clarify test configuration in Socket/Networking test document
Sep 10, 2018
e7d7b0d
Lora: Fix sticky MAC command retransmission
Sep 12, 2018
e1b57ef
specify mbed-cli version requirement
studavekar Sep 13, 2018
413ee53
STM32: fix wrong LSE config in serial_baud function
bcostm Sep 19, 2018
a0c2518
Fix spurious us_ticker/lp_ticker interrupts
ccli8 Aug 8, 2018
e884ce9
Fix lp_ticker_free cannot pass speed test
ccli8 Aug 14, 2018
78cbc0d
Synchronize us_ticker to lp_ticker
ccli8 Aug 14, 2018
203e87b
Fix Greentea test common_tickers failed
ccli8 Aug 14, 2018
92cb4fe
Hotfix for PR #7778
stevew817 Sep 6, 2018
a518ff9
Supply default test config for TB_SENSE_1 as well
stevew817 Sep 7, 2018
62a55a6
Remove IAR assembler macros containing quotes
kjbracey Sep 20, 2018
814ff08
fix athandler unit tests and declaration conflict
lorjala Sep 19, 2018
2bd1f64
replace missing types
lorjala Sep 21, 2018
38c7abf
Support Nuvoton's NuMaker-IoT-M487 board
ccli8 Sep 10, 2018
c59d20f
Add missing mbedtls_device.h for NUMAKER_IOT_M487
ccli8 Sep 11, 2018
8e37c21
Create MCU_M480 for inheritance by M487 targets
ccli8 Sep 18, 2018
a060089
Cellular: Fix APN authentication before context activation
Sep 13, 2018
fe385ba
Cellular: Implement APN authentication for BG96
Sep 13, 2018
85a6a07
Cellular: Disable AT+CGAUTH on HE910 and BC95
Sep 17, 2018
3855077
Add documentation about icetea testcases
Sep 11, 2018
ddceb65
Replace macros with config options
c1728p9 Sep 12, 2018
119246d
add UNITTESTS folder to exclude patterns in doxygen_options.json
lorjala Sep 21, 2018
353c4fd
platform: error: fix bogus usage of memset()
TeroJaasko Sep 7, 2018
9919ca6
Add link to README.md
Aug 28, 2018
665c98f
Add GH link to README.md
Aug 28, 2018
8f806f8
Handle NVStore tests in a low memory environment
Aug 9, 2018
f681e54
update UNITTESTS/README.md
lorjala Sep 21, 2018
ad248ca
Fix STDIO_UART error
ccli8 Sep 5, 2018
38b0df0
fix whitelist generation (set correct address type)
paul-szczepanek-arm Sep 5, 2018
cdadf63
Word-sized input to GPCRC is only valid for 32-bit polynomial
stevew817 Sep 6, 2018
e02872f
Apply @kjbracey-arm's comments
stevew817 Sep 22, 2018
f9c91c1
Fix for issue #8155 (NRF52832: time stops after 35 minutes)
mprse Sep 18, 2018
42e309e
LPC1768: Enable RTC
mmahadevan108 Sep 5, 2018
2ca243d
STM32: Disabling of IRQs shared by multiple events
mattbrown015 Sep 7, 2018
366ad09
Changed the reported SNR from unsigned to signed. Internally and logi…
EnsilicaEdd Sep 7, 2018
7fcf9cc
SM32F3 correct analogin_read
jeromecoutant Sep 14, 2018
523edf0
Cellular: Fix cellular network unit test
Sep 24, 2018
82ba631
Cellular: Fix cellular util unit test
Sep 24, 2018
31236f1
Fix pin mode mapping between input pull mode/direction and I/O mode
ccli8 Aug 30, 2018
605a72c
add coverage filtering
lorjala Sep 17, 2018
cb80c49
Unit tests: improve argument checking in coverage.py
lorjala Sep 18, 2018
2bbf033
unittests: improved coverage for UDPSocket and TCPSocket
michalpasztamobica Sep 12, 2018
46b529a
unittests: Check NULL pointer scenario in TCPSocket::recvfrom
michalpasztamobica Sep 12, 2018
77fc6a0
unittests: InternetSocket class coverage improved.
michalpasztamobica Sep 13, 2018
54ee25c
unittests: Added NetworkInterface unit tests
michalpasztamobica Sep 13, 2018
43ca738
unittests: Add TCPServer unit tests
michalpasztamobica Sep 13, 2018
6c012fc
unittests: Add tests for NetworkStack class.
michalpasztamobica Sep 14, 2018
5b659c8
Fix TCPSocket::accept() unittest.
Sep 17, 2018
3664339
Use SocketAddr that actually has IP bytes in UDP test
Sep 21, 2018
f8f67e2
Add TRNG API test
theamirocohen May 30, 2018
1aa1682
Fix lisence and style
theamirocohen May 30, 2018
bced8d9
Repalce compression libs for license issues
theamirocohen Jun 4, 2018
91d0c1b
Fix var declaration problem
theamirocohen Jun 4, 2018
2c43d41
Fixing PR comments
theamirocohen Jul 9, 2018
e9dc151
Reduce Debug prints
theamirocohen Jul 10, 2018
42d6d7d
Erase debug prints
theamirocohen Jul 10, 2018
9a4087c
Fix IAR issues
theamirocohen Jul 12, 2018
7140bae
Fix Compilation problems
theamirocohen Jul 12, 2018
df1c9b9
Fix pithy library
theamirocohen Jul 15, 2018
11cca75
Fix messages
theamirocohen Aug 5, 2018
e39e964
Fix TRNG test to use reset from python script and not from code
Jul 26, 2018
b31b0fa
Remove NVstore unused mechanism
theamirocohen Aug 6, 2018
3ad5eca
Fix trng_len loop
theamirocohen Aug 9, 2018
59d2587
Adding complete buffer print in case of failure.
Sep 5, 2018
aa01c2e
Fix print error
theamirocohen Sep 25, 2018
50d73e5
rtl8195am lib updates
M-ichae-l Sep 6, 2018
0c3ef4f
"gpio_api.c" update
M-ichae-l Sep 6, 2018
16b34ca
travis: add license check for gnu library license
0xc0170 Aug 28, 2018
ec18321
skip the flashsim test if enough memory cannot be allocated for it.
aashishc1988 Aug 3, 2018
4a33a5f
MIMXRT1050_EVK: Fix the PWM Hal driver
mmahadevan108 Aug 30, 2018
e1e87dc
Update Manifest tool version
adbridge Sep 25, 2018
a08a42c
Declares gt netsocket test case buffers as static
Sep 14, 2018
0531c6d
Testing with ESP8266's AT firmware v1.7 takes more time
Sep 14, 2018
d07e3e7
Increases stack size for threads used in gt netsocket tcp test cases
Sep 14, 2018
ae65a2a
Align writes to blockdevice write size in MBRBlockDevice
Sep 26, 2018
45e90dd
Add back examples updated for mbed-os-5.10
adbridge Sep 25, 2018
ac1f9d1
Restricted nfc example to two targets
Sep 26, 2018
2bbfc4f
Removed trailing slashes in NFC examples URL
Sep 26, 2018
16b1063
Replace storage example targets from K64F to K82F
Sep 27, 2018
0bdfc35
Remove block device example in the short term
Sep 28, 2018
3fd8a31
Removed mbed-os-example-nfc-EEPROM from examples.json
Sep 28, 2018
3d7f997
Added PC2 pin to ADC pin map
Aug 30, 2018
8d995f3
STM32 RTC : Start LSI clock asap
jeromecoutant Sep 11, 2018
af35849
STM32 RTC with LSI : stop reset registers during init
jeromecoutant Sep 11, 2018
235aea0
STM32 RTC : remove not necessary macro
jeromecoutant Sep 11, 2018
918820c
Cellular: state machine and easycellular now return error fast if sim…
Sep 4, 2018
8732fdb
Modified version mismatch msg to be warning instead of error
Aug 24, 2018
040f4fe
Cleanup SPI constructor and add destructor
Sep 11, 2018
c43f9dd
use forced_reset_timeout as delay after reset
studavekar Oct 2, 2018
f40c5ee
NUCLEO_L4R5ZI: add all board files
bcostm Jul 20, 2018
0c75711
NUCLEO_L4R5ZI: update mbed_rtx.h
bcostm Jul 20, 2018
430f6fb
NUCLEO_L4R5ZI: update targets.json
bcostm Jul 20, 2018
a60399c
NUCLEO_L4R5ZI: update iar and sw4stm32 exporters
bcostm Jul 20, 2018
41356a9
NUCLEO_L4R5ZI: add missing timer freeze macro
bcostm Jul 23, 2018
f6feb9f
NUCLEO_L4R5ZI: enable bootloader
bcostm Jul 23, 2018
b5b3276
NUCLEO_L4R5ZI: remove PWM_5 pins as already used by us_ticker
bcostm Jul 24, 2018
f6d4acc
NUCLEO_L4R5ZI: change _ALTx pins
bcostm Jul 24, 2018
7242150
NUCLEO_L4R5ZI: set IAR linker stack size to 1KB
bcostm Jul 25, 2018
c61595f
NUCLEO_L4R5ZI: remove IAR exporter
bcostm Aug 27, 2018
b858482
Add `overhead_size` element to get the overhead of stats
Sep 10, 2018
9d81960
fix using an invalid cccd index
paul-szczepanek-arm Oct 3, 2018
7577ff5
Added thread safety info to FatFs/LittleFs
Sep 13, 2018
4a35dcb
tests-mbed_hal-sleep: finish UART transmission before sleep test
mprse Sep 26, 2018
12a0446
tests-mbed_hal-sleep: add message with failure details
mprse Sep 30, 2018
0afe053
STM32L496 : wrong ADC init
jeromecoutant Sep 13, 2018
b70d23a
Lorawan unittests
Sep 9, 2018
474b652
More lorawan unit tests added
Sep 10, 2018
ed8ebf3
LorawanInterface unit test added
Sep 11, 2018
b1c62a9
Unit test for LorawanInterface
Sep 11, 2018
323ea12
LoraPhy and regions unit test skeletons added
Sep 11, 2018
07d2ce6
LoRa regions unittested, stubs licences revisited
Sep 14, 2018
1f24d72
LoRaPHY unittested, small fixed done during tests
Sep 19, 2018
41d0648
LoRaMacCrypto unittested
Sep 20, 2018
8bed43e
LoRaWANStack unit tested
Sep 23, 2018
18a1e66
LoRaMac unittested
Sep 24, 2018
04c1641
cmake Paths corrected
Sep 24, 2018
dbe2b15
equeue_stub updated and code fixed accordingly
Sep 27, 2018
55b5d6c
Added LPC1769 template file for MCUXpresso
Aug 28, 2018
1c5b343
Fix typos
Aug 28, 2018
c3fcec2
STM32L072 : ADC internal channels correction
jeromecoutant Sep 12, 2018
357e126
STM32L0 internal channel ADC_TEMP
jeromecoutant Sep 12, 2018
3d0acbc
STM32 LPTICKER with LPTIM : Fix tickless and lp wrapper
jeromecoutant Sep 19, 2018
db7b228
STM32 LPTICKER with RTC : Fix tickless and lp wrapper
jeromecoutant Sep 21, 2018
75eab8b
STM32 LPTICKER : set default LPTICKER_DELAY_TICKS to 1
jeromecoutant Sep 21, 2018
e47117a
replace malloc with cirdio buffer allocation
paul-szczepanek-arm Sep 27, 2018
fe09b91
check WsfBufAlloc
paul-szczepanek-arm Sep 27, 2018
637fba6
moved SimpleEventQueue
paul-szczepanek-arm Sep 27, 2018
98ddcc1
removed unusused header
paul-szczepanek-arm Sep 27, 2018
92434ac
change namespace
paul-szczepanek-arm Sep 27, 2018
3f2b888
fix namespace errors
paul-szczepanek-arm Sep 27, 2018
120f0e9
remove pointless cast
paul-szczepanek-arm Sep 27, 2018
d074321
assert instead of error
paul-szczepanek-arm Sep 27, 2018
eb76a24
Disable MBEDTLS_SHA256_ALT on STM targets.
Oct 2, 2018
964b77c
Rename device option STCLK_OFF_DURING_SLEEP
c1728p9 Sep 12, 2018
360ba9e
Added nanostack mac tester and testcases
Aug 13, 2018
7e2bc49
Renamed MAC tester config
Sep 10, 2018
05e202f
Nanostack MAC testcases: removed running tests directly
Sep 23, 2018
2d20f1f
Nanostack MAC tester: changed mbed_trace_array to mbed_print_array
Sep 24, 2018
9536584
Enabled trace, added KW24D default driver
Sep 27, 2018
b015264
mac_commands.cpp: fix wait command
Sep 27, 2018
3d226ea
Skip the Nanostack MAC tester
Oct 1, 2018
cb545f1
Nanostack MAC tester: updated README.md
Oct 1, 2018
7b13cea
Reduce heap size on stm32f207
Sep 26, 2018
763f0f4
Update Mbed version block
adbridge Oct 8, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -267,3 +267,4 @@ matrix:
script:
- echo 'Checking that there is no GPL licence text in code'
- ! git grep -q --ignore-case "gnu general public";
- ! git grep -q --ignore-case "gnu library general public";
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ We have a [developer website](https://os.mbed.com) for asking questions, engagin
## Getting started for contributors

We also have a [contributing and publishing guide](https://os.mbed.com/contributing/) that covers licensing, contributor agreements and style guidelines.

## Documentation

For more information about Mbed OS, please see [our published documentation](https://os.mbed.com/docs/latest). It includes published Doxygen for our APIs, step-by-step tutorials, porting information and background reference materials about our architecture and tools.

To contribute to this documentation, please see the [mbed-os-5-docs repo](https://github.com/ARMmbed/mbed-os-5-docs).
13 changes: 6 additions & 7 deletions TESTS/host_tests/system_reset.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ class SystemResetTest(BaseHostTest):
def __init__(self):
super(SystemResetTest, self).__init__()
self.reset = False
cycle_s = self.get_config_item('program_cycle_s')
self.program_cycle_s = cycle_s if cycle_s is not None else DEFAULT_CYCLE_PERIOD

self.test_steps_sequence = self.test_steps()
# Advance the coroutine to it's first yield statement.
self.test_steps_sequence.send(None)
Expand All @@ -61,16 +58,18 @@ def test_steps(self):
"""Reset the device and check the status
"""
system_reset = yield

self.reset = False

wait_after_reset = self.get_config_item('forced_reset_timeout')
wait_after_reset = wait_after_reset if wait_after_reset is not None else DEFAULT_CYCLE_PERIOD

self.send_kv(MSG_KEY_DEVICE_RESET, MSG_VALUE_DUMMY)
time.sleep(self.program_cycle_s)
time.sleep(wait_after_reset)
self.send_kv(MSG_KEY_SYNC, MSG_VALUE_DUMMY)

system_reset = yield

if self.reset == False:
raise RuntimeError('Platform did not reset as expected.')

# The sequence is correct -- test passed.
yield True
yield True
145 changes: 145 additions & 0 deletions TESTS/host_tests/trng_reset.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
"""
Copyright (c) 2018 ARM Limited
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""

"""
This script is the host script for trng test sequence, it send the
step signaling sequence and receive and transmit data to the device after
reset if necesarry (default loading and storing mechanism while reseting the device
is NVstore, in case NVstore isn't enabled we'll use current infrastructure,
for more details see main.cpp file)
"""

import time
from mbed_host_tests import BaseHostTest
from mbed_host_tests.host_tests_runner.host_test_default import DefaultTestSelector
from time import sleep

DEFAULT_CYCLE_PERIOD = 1.0
MSG_VALUE_DUMMY = '0'
MSG_TRNG_READY = 'ready'
MSG_TRNG_BUFFER = 'buffer'
MSG_TRNG_TEST_STEP1 = 'check_step1'
MSG_TRNG_TEST_STEP2 = 'check_step2'
MSG_KEY_SYNC = '__sync'
MSG_KEY_RESET_COMPLETE = 'reset_complete'
MSG_KEY_TEST_SUITE_ENDED = 'Test_suite_ended'
MSG_KEY_EXIT = 'exit'

class TRNGResetTest(BaseHostTest):
"""Test for the TRNG API.
"""

def __init__(self):
super(TRNGResetTest, self).__init__()
self.did_reset = False
self.ready = False
self.suite_ended = False
self.buffer = 0
self.test_steps_sequence = self.test_steps()
# Advance the coroutine to it's first yield statement.
self.test_steps_sequence.send(None)

#define callback functions for msg handling
def setup(self):
self.register_callback(MSG_TRNG_READY, self.cb_device_ready)
self.register_callback(MSG_TRNG_BUFFER, self.cb_trng_buffer)
self.register_callback(MSG_KEY_TEST_SUITE_ENDED, self.cb_device_test_suit_ended)
self.register_callback(MSG_KEY_RESET_COMPLETE, self.cb_reset_complete)

#receive sent data from device before reset
def cb_trng_buffer(self, key, value, timestamp):
"""Acknowledge device rebooted correctly and feed the test execution
"""
self.buffer = value

try:
if self.test_steps_sequence.send(value):
self.notify_complete(True)
except (StopIteration, RuntimeError) as exc:
self.notify_complete(False)

def cb_device_ready(self, key, value, timestamp):
"""Acknowledge device rebooted correctly and feed the test execution
"""
self.ready = True

try:
if self.test_steps_sequence.send(value):
self.notify_complete(True)
except (StopIteration, RuntimeError) as exc:
self.notify_complete(False)

def cb_reset_complete(self, key, value, timestamp):
"""Acknowledge reset complete
"""
self.did_reset = True

try:
if self.test_steps_sequence.send(value):
self.notify_complete(True)
except (StopIteration, RuntimeError) as exc:
self.notify_complete(False)

def cb_device_test_suit_ended(self, key, value, timestamp):
"""Acknowledge device finished a test step correctly and feed the test execution
"""
self.suite_ended = True

try:
if self.test_steps_sequence.send(value):
self.notify_complete(True)
except (StopIteration, RuntimeError) as exc:
self.notify_complete(False)

#define test steps and actions
def test_steps(self):
"""Test step 1
"""
wait_for_communication = yield

self.ready = False
self.did_reset = False
self.suite_ended = False
self.send_kv(MSG_TRNG_TEST_STEP1, MSG_VALUE_DUMMY)
wait_for_communication = yield
if self.buffer == 0:
raise RuntimeError('Phase 1: No buffer received.')

self.reset()

"""Test step 2 (After reset)
"""
wait_for_communication = yield
if self.did_reset == False:
raise RuntimeError('Phase 1: Platform did not reset as expected.')

self.send_kv(MSG_KEY_SYNC, MSG_VALUE_DUMMY)

wait_for_communication = yield

if self.ready == False:
raise RuntimeError('Phase 1: Platform not ready as expected.')

self.send_kv(MSG_TRNG_TEST_STEP2, self.buffer)

wait_for_communication = yield

if self.suite_ended == False:
raise RuntimeError('Test failed.')

self.send_kv(MSG_KEY_EXIT, MSG_VALUE_DUMMY)

# The sequence is correct -- test passed.
yield
5 changes: 4 additions & 1 deletion TESTS/mbed_hal/common_tickers/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,11 +473,14 @@ void ticker_speed_test(void)

/* ---- Test fire_interrupt function. ---- */
counter = NUM_OF_CALLS;
/* Disable ticker interrupt which would interfere with speed test */
core_util_critical_section_enter();
start = us_ticker_read();
while (counter--) {
intf->fire_interrupt();
}
stop = us_ticker_read();
core_util_critical_section_exit();

TEST_ASSERT(diff_us(start, stop, us_ticker_info) < (NUM_OF_CALLS * (MAX_FUNC_EXEC_TIME_US + DELTA_FUNC_EXEC_TIME_US)));

Expand Down Expand Up @@ -569,7 +572,7 @@ utest::v1::status_t lp_ticker_teardown(const Case *const source, const size_t pa

utest::v1::status_t test_setup(const size_t number_of_cases)
{
GREENTEA_SETUP(30, "default_auto");
GREENTEA_SETUP(80, "default_auto");
return verbose_test_setup_handler(number_of_cases);
}

Expand Down
Loading