Skip to content

Release candidate for mbed-os-5.14.2 #11894

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 257 commits into from
Nov 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
257 commits
Select commit Hold shift + click to select a range
9acdd53
Fixes IPv6 multicast join issue
Oct 10, 2019
9180610
Disable emac multicast filtering for unimplemented/unsupported/unwork…
Sep 23, 2019
0876d84
mbed_rtc_time.h lacks an include guard
Alex-EEE Oct 9, 2019
e28a6c5
Enable tickless for PSoC6 targets
Oct 4, 2019
67fbe49
stm32f4xx_hal_pcd.c@346,22: unused variable 'ep'
Oct 11, 2019
1309227
nrf5x - add missing gpio_set implementation
maciejbocianski Oct 11, 2019
1a2a351
nrf52 - fix i2c/twi driver
maciejbocianski Oct 11, 2019
fb35091
STMOD_CELLULAR: remove flow control support for DISCO_L4R9I
jeromecoutant Oct 4, 2019
efea334
STMOD_CELLULAR: update readme
jeromecoutant Oct 7, 2019
d8b3b5a
Increase NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS from a default of…
Oct 3, 2019
a7868da
Cellular: Change visibility of _is_connected as protected
Oct 4, 2019
5418d70
DISCO_H747I Dualcore support
ABOSTM Oct 14, 2019
7846c9f
SystemCoreClock should correspond to current core clock and not D1 cl…
ABOSTM Sep 30, 2019
bdb0082
Update HAL/LL EXTI to have default API applied on current core and no…
ABOSTM Sep 30, 2019
1e35172
Mbed patch of STM32cube for bootloader: use NVIC_FLASH_VECTOR_ADDRESS
ABOSTM Sep 27, 2019
72760d7
EFM32GG11_STK3701: add QSPIF component config
maciejbocianski Oct 4, 2019
0bc3d7c
Fix swapped BT pins on CYW943012P6EVB-01
Oct 7, 2019
87e138f
Fix swapped pins for CYW943012P6EVB-01 in cybsp_types
Oct 9, 2019
b76394d
USBDevice: add documentation on USB suspend/resume to enter deep sleep
hugueskamba Oct 4, 2019
7425838
Add FLASHIAP to GR-PEACH component
d-kato Oct 16, 2019
1a27863
Fix multiple definitions of GR-LYCHEE
d-kato Oct 16, 2019
2ea642a
NRF52840_DK: enables FLASHIAP for the device
Oct 16, 2019
d92adcd
Clearing UART TC Flag prevents deep sleep, so do not clear it
LMESTM Oct 15, 2019
64be6a7
Update Target Cypress Specific Cordio BT Driver to keep Host MCU acti…
MukundGitHub Oct 7, 2019
67fdf6c
Address ARM Code review feedback.
MukundGitHub Oct 16, 2019
9ab2227
Add bootloader support for Seeed Arch-MAX
toyowata Oct 17, 2019
060e8cf
FUTURE_SEQUANA: SPI HAL API fixes.
lrusinowicz Sep 30, 2019
ba39ce3
Initial addition of files to support CY8CKIT_064S2_4343W target
romanjoe Sep 6, 2019
a9eea6c
Added specific policy file for 2M device to expand slot sizes
romanjoe Oct 15, 2019
3b86b35
Introduce qspi_inst_t type for QSPI instructions
Aug 29, 2019
a69a2ef
QSPIFBlockDevice: fix type on the namespace mbed
0xc0170 Oct 14, 2019
4917bfa
QSPIFBlockDevice: Fix incomplete propagation of qspi_inst_t
Oct 14, 2019
aab40e0
Change qspi_inst_t typdef to int
Oct 15, 2019
6b1a21b
Update STM driver changes for clarity
Oct 3, 2019
a114cd3
Restore old qspi_alt_size_t values as compatibility macros
Oct 15, 2019
2b3ee26
Report errors returned by _qspi_configure_format
Sep 30, 2019
6003dbe
Reuse existing error for _qspi_configure_format
Oct 1, 2019
b9d824d
Avoid stale mutex in QSPIFBlockDevice::read
Oct 14, 2019
ab16796
Fix for missing os_cb_section -Added the os_cb_section stub to remove…
rajkan01 Oct 16, 2019
fee2101
fixed astyle issue
rajkan01 Oct 18, 2019
bd2c0b2
Remove not used code lines
Sep 11, 2019
b20b591
Add silent option in test.py also
Sep 11, 2019
24a434e
Remove --extra-verbose-notifications because not in use anywhere
Sep 11, 2019
9bc3745
Cleaned up Mbed LWIP configurations
Sep 27, 2019
8360765
Fix build issue
Oct 11, 2019
665eee8
fix apn check
mudassar-ublox Oct 9, 2019
4ab3fb2
STM32 TRNG clock configuration
jeromecoutant Oct 14, 2019
4d9c888
TARGET_STM: remove warning and fix typo on SPI
ABOSTM Oct 18, 2019
1400e0f
Fix Quectel M26 context hang
iliapenev Oct 20, 2019
7bb54f5
Move script to check for floats and make it Python 2 compatible.
hugueskamba Sep 5, 2019
b6f5046
Fix enum type to align with psa-arch-tests
jainvikas8 Oct 2, 2019
db38d48
Changed mbed gpio-port api to match gpio api
ShuopengDeng Oct 10, 2019
d1fe414
cy port api: fix styling
0xc0170 Oct 21, 2019
9370046
QSPI: document use of QSPI_NO_INST
Oct 15, 2019
096847b
STM32F767ZI - I2C FastModePlus not properly enabled
ABOSTM Oct 10, 2019
2da2322
STM32F767ZI - I2C FastModePlus not properly enabled 2/2
ABOSTM Oct 15, 2019
23784cb
Add support for nRF52 Watchdog
manchoz Oct 11, 2019
df95fb0
Fix timeout limits
manchoz Oct 14, 2019
688e436
Remove default conf macro because typo in nRF SDK
manchoz Oct 14, 2019
a42ff32
Fix overflow calculation for reload_value.
manchoz Oct 15, 2019
401c692
Add SPDX identifier
manchoz Oct 21, 2019
ad0689d
iar export for TT_M3HQ and TT_M4G9
ThunderSoft123 Oct 22, 2019
b0498dc
MCU_NRF52840: Switches to correct Product Anomaly Notification macro
Oct 17, 2019
0c81b46
Update BT Firmware to version 128.
MukundGitHub Oct 11, 2019
7789238
STM32 EMAC: move from TARGET_STM_EMAC to TARGET_STM
jeromecoutant Oct 7, 2019
43910e6
STM32: remove unused TARGET_STM_EMAC additional directory
jeromecoutant Oct 7, 2019
c9590ae
Avoid compilation if target doesn't support EMAC
jeromecoutant Oct 7, 2019
891b0a9
minimal_printf: Fix high level C functions that print to the console
hugueskamba Oct 22, 2019
a77464d
minimal-printf: Fix handling of the two character sequence %%
hugueskamba Oct 22, 2019
9a7d69c
DeviceKey: Fix random key doesn't generate on MBEDTLS_ENTROPY_HARDWAR…
ccli8 Oct 22, 2019
66e8133
Allow WhdAccessPoint scan result with extended parameters
cydriftcloud Sep 3, 2019
de2678d
M2351: Change TRNG security attribute to secure
ccli8 Oct 1, 2019
68448a9
M2351: Update BSP/crypto driver
ccli8 Oct 2, 2019
df8b416
NUVOTON: Fix BSP/MKROM header
ccli8 Oct 1, 2019
d7f6301
NUVOTON: Re-implement __PC() with toolchain built-in
ccli8 Oct 2, 2019
cd89efc
NUVOTON: Re-implement TRNG HAL with TRNG H/W
ccli8 Oct 1, 2019
83c3544
M2351: Update default secure image/gateway library
ccli8 Oct 15, 2019
4075d41
nxp LPC55S69: fix i2c pin mapping
maciejbocianski Oct 23, 2019
f50e7b1
Clean up ARM toolchain heap+stack setup in targets
kjbracey Oct 15, 2019
b654b76
Add synchronization and switching between SoftAP/STA
cydriftcloud Sep 8, 2019
5f96d6e
Simplify pull request template
adbridge Sep 25, 2019
2b78c1a
Add test results section
adbridge Sep 25, 2019
aa0c795
Add addional guidance
adbridge Sep 25, 2019
fa3aaf4
Improve formatting
adbridge Sep 25, 2019
06515c3
Add clarity to description and reword tests options
adbridge Sep 26, 2019
a4f7186
Clarify release note section requirements
adbridge Sep 26, 2019
47cec09
M2351: Change base target name 'NU_PFM_M2351_CM' to 'NU_PFM_M2351'
ccli8 Oct 25, 2019
64f9b59
Update the internal kvstore size to from 7k to 65K for device that us…
cypress-midd Oct 23, 2019
818a652
MIDDLEWARE-2134: Fix spurious link up/down when AP IP address range c…
cydriftcloud Oct 25, 2019
4f83b57
hal qspi test: fix frequency setting test
maciejbocianski Oct 4, 2019
e7d1a90
hal qspi test: adjust min frequency for EFM32GG11
maciejbocianski Oct 4, 2019
c10127a
EXAMPLES: add test key for remaining examples
Oct 16, 2019
6576208
EXAMPLES: update examples.json file
Oct 16, 2019
19f802c
EXAMPLES: add list amd Symlink functions
Oct 16, 2019
283a0af
EXAMPLES: improve examples.py cli help messages
Oct 16, 2019
a6bb82a
EXAMPLES: update examples_lib.py - add logging function - update clon…
Oct 16, 2019
9870891
EXAMPLES: update export_repos function
Oct 16, 2019
f4d287f
EXAMPLES: update build_repo function
Oct 16, 2019
4292281
EXAMPLES: update console output format
Oct 16, 2019
42b9b61
EXAMPLES: update comments and fix bugs
Oct 16, 2019
e5942e6
EXAMPLES: temporarily turn off the complie test for sub example
Oct 17, 2019
668db82
EXAMPLES: add README file
Oct 17, 2019
9f18373
EXAMPLES: remove default build profiles
Oct 18, 2019
3042da2
Edit README.md
Oct 18, 2019
6458bf0
EXAMPLES: fix a typo in the path
Oct 21, 2019
1424d96
EXAMPLES: temporarily turn off build for NFC examples
Oct 25, 2019
9b123b8
Handle legacy process event first on connection complete
desmond-blue Oct 21, 2019
b4bddf6
fpga i2c test: limit tested peripherals
maciejbocianski Oct 24, 2019
fef3fd2
Allow OS_THREAD_LIBSPACE_NUM as a macro
Sep 26, 2019
268e956
FlashIAP: Get erase value from HAL instead of hardcoding it
mnaberez Oct 26, 2019
f5481f0
Test: Fix the reset_reason host test in the CI
Oct 23, 2019
bda1074
NRF52: fix i2c timeouts
maciejbocianski Oct 23, 2019
7ae3510
NRF52: fix i2c byte read/write implementation
maciejbocianski Oct 23, 2019
586ce90
Cellular: Added write_hex_string to AT handler
Oct 17, 2019
c4ac78b
Added CYW9P62S1_43012EVB_01 board Notes: - CRC and TRNG are disabled …
cy-opm Sep 26, 2019
aa83d23
GREENTEA: init trace if trace is enabled in json
jeromecoutant Oct 16, 2019
14ac203
Add option to use CCMRAM on F303xE.
Sep 19, 2019
7461a7a
Increase STM32 default deep sleep latency to 4ms
LMESTM Oct 29, 2019
3cb734d
Add FLASHIAP component to DISCO_H747
Oct 3, 2019
03745c8
DISCO_H747I - define default storage (TDB_INTERNAL)
Oct 3, 2019
62f1b0c
Add default TDBStore location for DISCO_H747I (end of BANK1)
Oct 4, 2019
132e769
Fix for the H747 flash driver / cache cleaning
Oct 30, 2019
bf60bc5
Cypress: fix gpio mode none
Oct 24, 2019
bf3dda3
STM32 QSPI: Use defines for setting address size
LMESTM Oct 28, 2019
0dd7e85
USB-Cypress: Lock sleep when USB is initialized
hugueskamba Oct 16, 2019
ff06d19
Update CM0P pre-built images to release 1.0.0.35
cy-opm Oct 29, 2019
9a7a781
Display full path of generated coverage output from unittests.
Oct 29, 2019
b16c2f0
IOTBTOOL-377: Fix scatter file include path online
mark-edgeworth Oct 23, 2019
de8e2b5
Fix for issue #11769 (Cypress: PWM FPGA test wrong assert)
mprse Oct 30, 2019
5bceee8
Nuvoton: Add analogin_free
ccli8 Oct 31, 2019
d15ba69
Nuvoton: Add i2c_free
ccli8 Oct 31, 2019
57eb745
NANO130: Remove unnecessary synchronization in analog-in HAL
ccli8 Oct 31, 2019
66ae04f
TEST: add atecc608a example to compilation test
Sep 12, 2019
0fc8e9d
TEST: update example.json file
Sep 16, 2019
6ae70e8
TEST: turn on sub examples build test
Nov 1, 2019
129c0a9
updated cellular context flags and cid in ublox-api
mudassar-ublox Oct 22, 2019
c5fbea7
Add API to get ipv6 link local address.
Aug 2, 2019
a7054d7
UDPSOCKET_ECHOTEST change to tolerate duplicate packets
Oct 16, 2019
a191a60
NSAPI DNS query IP version check for non LWIP stacks.
tymoteuszblochmobica Aug 29, 2019
b840576
Baremetal profile fixes
Oct 14, 2019
d31a139
Unittests fixed
Nov 1, 2019
527ffa1
Ensure modem echo is off
Oct 21, 2019
0bb3691
Remove extra GCC arquements.
Oct 30, 2019
4a8ee7e
Add enough stubs to allow drivers/* to compile.
Oct 30, 2019
fea3fd4
Add empty unittest to generate zero baseline for untested files.
Oct 30, 2019
5fecf6a
Add storage related files to baseline unittest.
Oct 30, 2019
94d9093
Add some functionality to atomic stubs
Oct 31, 2019
6532f25
Add unittest for HeapBlockDevice and change some MBED_ASSERTS to errors.
Oct 31, 2019
957ed97
IOTSTOR-953: Fix address calculations from SlicingBlockDevice
Nov 1, 2019
90b7cc4
Add moduletest for SlicingBlockDevice
Nov 1, 2019
1a90105
Remove usage of Mbed TLS internal function from DeviceKey.
Nov 1, 2019
4f86135
Remove linefeeds from debug prints
Nov 4, 2019
d842762
Remove commented-out code
Nov 4, 2019
ba19dfb
Update common libraries
cy-opm Nov 1, 2019
2b40bcb
Update CMSIS pack index json for STM32H7xx family
Oct 18, 2019
5d15568
DISCO_H747I - MBED_ROM & device name definition
Oct 31, 2019
d41e183
NUCLEO_H743ZI2 - MBED ROM, FlashIAP
Oct 31, 2019
2c55471
Review fixes for STM32H7 target.json
jeromecoutant Nov 4, 2019
a6277fb
DISCO_H743ZI/ZI2 - mbed_ram_start/size
Nov 5, 2019
13fa66e
LPC55S69: fix serial_set_flow_control
maciejbocianski Oct 30, 2019
73cfcb5
equeue: avoid non-standard bit shifts
kjbracey Oct 31, 2019
b0e9fd7
Test equeue_cancel returns
kjbracey Oct 31, 2019
a82fa7f
Test event IDs going negative
kjbracey Oct 31, 2019
4acfe63
Fix ARM issue 11795: - Cypress: SPI FPGA test: tester always respond …
Nov 5, 2019
9f44aba
Updated targets.json file to go along with pr-11770
cy-opm Nov 5, 2019
ea6f6ae
SecureStore: Add member initializers for inc_handle_t
Nov 4, 2019
814793e
Cellular: Baud rate setting for tls greentea tests
Nov 6, 2019
0291651
Cellular: Baud rate setting for UDPSOCKET_ECHOTES_BURST greentea test
Nov 6, 2019
542db6c
Fix missing mbed_get_a9_tick_irq in non-RTOS build
d-kato Nov 6, 2019
b5ccf51
serial_putc waits for the transmission to complete
d-kato Nov 6, 2019
eb9b6fd
Moved transmission completion wait to hal_deepsleep
d-kato Nov 7, 2019
ab10fef
F7 ST CUBE V1.10.0 => V1.15.0
jeromecoutant Oct 16, 2019
e400e18
STM32F7 updates for new driver version
jeromecoutant Oct 31, 2019
db146ff
STM32F7 refactor common files
jeromecoutant Oct 18, 2019
6fa685a
STM32F7 MBEDTLS AES_ALT update for new HAL
jeromecoutant Oct 18, 2019
dafc9d9
STM32F7 ARM SCT file update to define correct RAM_SIZE
jeromecoutant Oct 18, 2019
c7e6be5
STM32F7 targets.json cleaning
jeromecoutant Oct 31, 2019
7eb6ed6
STM32F7 HAL CRYPT patch to add missing UNLOCK
jeromecoutant Nov 5, 2019
eb1d5c7
Cypress: Add implementation of free() for gpio i2c analogin: #11830
Nov 6, 2019
aabf0af
Added call to delete the security database object upon SM reset. This…
AGlass0fMilk Nov 6, 2019
f273fce
IOTBTOOL-333: Fix SimpleQueue build failure on py3
mark-edgeworth Nov 6, 2019
0dae909
Add sender address and port verification to UDPSOCKET_ECHOTEST
Nov 7, 2019
9270361
Fix flag checks to allow disabling unsecure tests
Nov 7, 2019
376bc4b
TESTS: turn off blinky log compare test due to example changed
Nov 6, 2019
d7f961e
TLSSOCKET_HANDSHAKE_INVALID test skip if DNS AAA record not available…
tymoteuszblochmobica Nov 6, 2019
da91fbb
USBMSD: implement MODE SENSE (10) command
sandeepmistry Nov 5, 2019
b44d708
DISCO STM32H747I ETHERNET support, but disabled.
jeromecoutant Oct 3, 2019
6685025
Add PSA auto-generated files to components
jainvikas8 Oct 14, 2019
41ce06c
Remove auto-generation for non-secure PSA targets.
jainvikas8 Nov 7, 2019
d9eb75b
PSA release script changes.
jainvikas8 Nov 8, 2019
8d01531
Documentation update for tools/psa
jainvikas8 Nov 8, 2019
04d8544
Fix ethernet memory handling issues on CM3DS
kapi90 Nov 11, 2019
c753a81
Fix ethernet memory handling issues on CM3DS
kapi90 Nov 11, 2019
2d0cff8
Fix ethernet memory handling issues on CM3DS
kapi90 Nov 11, 2019
6bb6ebc
Move WHD from being a Target to being a Component
cy-opm Nov 6, 2019
fd4b53c
Update WHD to v1.50
cy-opm Nov 6, 2019
c02f822
MCU_LPC11U35_501: fix MCU inheritance
0xc0170 Nov 6, 2019
49eb67b
ATHandler build warning fixed
Nov 13, 2019
e15560f
Correct PB_6/PB_7 Serial AF mapping
amitchone Nov 12, 2019
fb3b9c1
Remove ITM Trace support from Arduino Nano 33 BLE
manchoz Nov 12, 2019
7176af9
Update reading/writing of status registers to conform to SFDP standard
Aug 30, 2019
9bd8c17
Reorder some functions
Aug 30, 2019
814fe6d
Update flash device reset to conform to SFDP standard
Aug 30, 2019
3136b1c
Enable 4-byte addressing when supported in accordance with the SFDP s…
Aug 30, 2019
f4c8b18
Clear block protection on non-SST flash devices
Aug 30, 2019
21a1e81
Move configuration of QSPI format to within commands where it is nece…
Aug 30, 2019
c0ea38c
Update SDFP erase detection to properly handle legacy erase instruction
Aug 30, 2019
4886cc2
Replace power function with bit shift
Aug 30, 2019
a48d88c
Streamline setting of instruction member variables
Aug 30, 2019
a8ac9ff
Add missing debug prints to command functions
Aug 30, 2019
a9a9a6c
Correct typos and formatting
Aug 30, 2019
835504d
Update QSPI format after enabling 4-byte addressing
Aug 30, 2019
f154227
Enable some of the kvstore tests for PSoC 6 MCUs
Sep 5, 2019
9451167
Remove redundant QSPI erase alignment
Sep 11, 2019
fcba02a
Generalize KVStore phase 1/2 test BlockDevice sizes
Sep 11, 2019
237db77
Enable TDBStore whitebox test on PSoC 6
Sep 11, 2019
fa2ef8b
Update QSPI test to reflect fixes in QSPIFBlockDevice
Sep 13, 2019
1647f21
Fix Astyle issues
Sep 19, 2019
8c82524
Remove hard-coded instruction ids from QSPI Tests
Sep 23, 2019
96bb654
QSPIF: Add back enable_fast_mode
Oct 18, 2019
b6b8ffb
Don't clear quad enable when clearing block protection
Oct 21, 2019
d70ad78
QSPIF: Centralize handling of vendor quirks
Oct 24, 2019
c40de05
QSPIF: Handle parts with extra config registers
Oct 24, 2019
3b80a9b
QSPIF: Handle fast mode enable via vendor quirks
Oct 24, 2019
649234e
Disable attempted 4-byte addressing for some boards
Nov 11, 2019
a66b602
General Block Device Test: Expand Thread Stack
Nov 12, 2019
a2b7345
Workaround to reset UARTE peripheral to be able to go into deep sleep
r-vlaar Oct 31, 2019
ce2800b
IOTSTOR-978: Skip a unstable testcase until fixed
Nov 15, 2019
1097ba7
LWIP::get_ipv6_addr fixed to avoid returning NULL even if only linklo…
tymoteuszblochmobica Oct 18, 2019
34395fe
Remove target dependency in ublox cellular APIs
Oct 21, 2019
fb98acb
Removed error directives
Oct 30, 2019
6ce51db
Nuvoton: Remove TRNG support
ccli8 Sep 26, 2019
75682b4
EFM32: Enable RESET_REASON and WATCHDOG for EFM32GG11_STK3701
amq Nov 11, 2019
4215e73
Switch to using mbed-trace for greentea test debug output
Nov 13, 2019
3148615
Cellular: Fix queue scheduling for bare metal
Nov 13, 2019
85154ae
TESTS: Add socket.set_timeout in udpsocket_echotest
Nov 14, 2019
e809e81
Update Mbed version block
adbridge Nov 18, 2019
f4e1e58
Merge commit 'd1c11200794856630650bfddc8a48c3087c6ee29' into HEAD
geky Oct 3, 2019
bdf9512
Merge commit '70cb12e72bef7a1f220b0e5f21457b6930d984b2' into littlefs…
geky Oct 3, 2019
2f29db0
"Update secure binaries for LPC55S69_S (ARMC6)"
adbridge Nov 19, 2019
b0fea78
"Update secure binaries for ARM_MUSCA_A1_S (ARMC6)"
adbridge Nov 19, 2019
424ade3
Revert "STM32F7 HAL CRYPT patch to add missing UNLOCK"
adbridge Nov 19, 2019
8831d70
Revert "STM32F7 targets.json cleaning"
adbridge Nov 19, 2019
345b6f0
Revert "STM32F7 ARM SCT file update to define correct RAM_SIZE"
adbridge Nov 19, 2019
d44be71
Revert "STM32F7 MBEDTLS AES_ALT update for new HAL"
adbridge Nov 19, 2019
f94ab8a
Revert "STM32F7 refactor common files"
adbridge Nov 19, 2019
0960359
Revert "STM32F7 updates for new driver version"
adbridge Nov 19, 2019
5700890
Revert "F7 ST CUBE V1.10.0 => V1.15.0"
adbridge Nov 19, 2019
8137aaf
Change wifi example to build only DISCO_L475VG_IOT01A
Nov 14, 2019
918a0f5
Revert "DISCO STM32H747I ETHERNET support, but disabled."
0xc0170 Nov 20, 2019
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 .astyleignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@
^TESTS/mbed_hal/trng/pithy
^TESTS/mbed_hal/trng/pithy
^tools
^UNITTESTS
54 changes: 40 additions & 14 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
### Description
<!--
For more information on the requirements for pull requests, please see [the contributing guidelines](https://os.mbed.com/docs/mbed-os/latest/contributing/workflow.html#pull-request-types).
-->
### Description (*required*)

<!--
Required
Add here detailed changes summary, testing results, dependencies
Good example: https://os.mbed.com/docs/mbed-os/latest/contributing/workflow.html (Pull request template)
-->
##### Summary of change (*What the change is for and why*)


### Pull request type
##### Documentation (*Details of any document updates required*)

----------------------------------------------------------------------------------------------------------------
### Pull request type (*required*)

<!--
Required
Expand All @@ -16,25 +23,44 @@
of them would change the meaning incorrectly. The only changes to be made are to add a description text under the
description heading and to add a 'x' to the correct box.
-->
[ ] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change
[] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

----------------------------------------------------------------------------------------------------------------
### Test results (*required*)

### Reviewers
<!--
Required
For example, add test results for new target
-->
[] No Tests required for this change (E.g docs only update)
[] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR


----------------------------------------------------------------------------------------------------------------
### Reviewers (*optional*)

<!--
Optional
Request additional reviewers with @username
-->

### Release Notes
----------------------------------------------------------------------------------------------------------------
### Release Notes (*required for feature/major PRs*)

<!--
Optional
In case of breaking changes, functionality changes or refactors, please add release notes here.
For more information, please see [the contributing guidelines](https://os.mbed.com/docs/mbed-os/latest/contributing/workflow.html#pull-request-types).
All 3 sections are compulsory for Major PR types. For Feature PRs only the summary section is required.
This section is automatically added to release notes. Please fill in each sub-section with sufficient detail for a user.
For more information, please see [the contributing guidelines](https://os.mbed.com/docs/mbed-os/latest/contributing/workflow.html#pull-request-types).
-->

##### Summary of changes

##### Impact of changes

##### Migration actions required



8 changes: 6 additions & 2 deletions TESTS/host_tests/reset_reason.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"""
import time
from mbed_host_tests import BaseHostTest
from mbed_host_tests.host_tests_runner.host_test_default import DefaultTestSelector

DEFAULT_SYNC_DELAY = 4.0

Expand All @@ -32,6 +31,7 @@
MSG_KEY_RESET_REASON = 'reason'
MSG_KEY_DEVICE_RESET = 'reset'
MSG_KEY_SYNC = '__sync'
MSG_KEY_RESET_COMPLETE = 'reset_complete'

RESET_REASONS = {
'POWER_ON': '0',
Expand Down Expand Up @@ -80,6 +80,7 @@ def setup(self):
self.register_callback(MSG_KEY_RESET_REASON_RAW, self.cb_reset_reason_raw)
self.register_callback(MSG_KEY_RESET_REASON, self.cb_reset_reason)
self.register_callback(MSG_KEY_DEVICE_RESET, self.cb_reset_reason)
self.register_callback(MSG_KEY_RESET_COMPLETE, self.cb_reset_reason)

def cb_device_ready(self, key, value, timestamp):
"""Request a raw value of the reset_reason register.
Expand Down Expand Up @@ -142,7 +143,10 @@ def test_steps(self):
__ignored_clear_ack = yield

# Reset the device using DAP.
self.reset_dut(DefaultTestSelector.RESET_TYPE_SW_RST)
self.reset()
__ignored_reset_ack = yield # 'reset_complete'
time.sleep(self.sync_delay)
self.send_kv(MSG_KEY_SYNC, MSG_VALUE_DUMMY)
reset_reason = yield
raise_if_different(RESET_REASONS['PIN_RESET'], reset_reason, 'Wrong reset reason. ')
self.send_kv(MSG_KEY_RESET_REASON, MSG_VALUE_RESET_REASON_CLEAR)
Expand Down
3 changes: 3 additions & 0 deletions TESTS/integration/COMMON/common_defines_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "mbed_trace.h"

#define TRACE_GROUP "GRNT"

#define ETHERNET 1
#define WIFI 2
Expand Down
25 changes: 13 additions & 12 deletions TESTS/integration/COMMON/download_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "unity/unity.h"
#include "greentea-client/test_env.h"
#include <string>
#include "common_defines_test.h"

#define MAX_THREADS 5

Expand Down Expand Up @@ -91,7 +92,7 @@ size_t download_test(NetworkInterface *interface, const unsigned char *data, siz
break;
}
ThisThread::sleep_for(1000);
printf("[NET-%d] Connection failed. Retry %d of %d\r\n", thread_id, tries, MAX_RETRIES);
tr_info("[NET-%d] Connection failed. Retry %d of %d", thread_id, tries, MAX_RETRIES);
}
TEST_ASSERT_EQUAL_INT_MESSAGE(0, result, "failed to connect");

Expand All @@ -109,7 +110,7 @@ size_t download_test(NetworkInterface *interface, const unsigned char *data, siz
} else {
TEST_ASSERT_MESSAGE(0, "wrong thread id");
}
printf("[NET-%d] Registered socket callback function\r\n", thread_id);
tr_info("[NET-%d] Registered socket callback function", thread_id);
event_fired[thread_id] = false;

/* setup request */
Expand All @@ -118,7 +119,7 @@ size_t download_test(NetworkInterface *interface, const unsigned char *data, siz
/* construct request */
size_t req_len = snprintf(request, REQ_BUF_SIZE - 1, req_template, dl_path, dl_host);
request[req_len] = 0;
printf("[NET-%d] Request header (%u): %s\r\n", thread_id, req_len, request);
tr_info("[NET-%d] Request header (%u): %s", thread_id, req_len, request);

/* send request to server */
result = tcpsocket.send(request, req_len);
Expand All @@ -128,7 +129,7 @@ size_t download_test(NetworkInterface *interface, const unsigned char *data, siz
char *receive_buffer = &g_receive_buffer[thread_id * RECV_BUF_SIZE];

tcpsocket.set_blocking(false);
printf("[NET-%d] Non-blocking socket mode set\r\n", thread_id);
tr_info("[NET-%d] Non-blocking socket mode set", thread_id);

size_t received_bytes = 0;
int body_index = -1;
Expand Down Expand Up @@ -164,7 +165,7 @@ size_t download_test(NetworkInterface *interface, const unsigned char *data, siz
if (body_index < 0) {
continue;
} else {
printf("[NET-%d] Found body index: %d\r\n", thread_id, body_index);
tr_info("[NET-%d] Found body index: %d", thread_id, body_index);

/* remove header before comparison */
memmove(receive_buffer, &receive_buffer[body_index + 4], result - body_index - 4);
Expand All @@ -184,9 +185,9 @@ size_t download_test(NetworkInterface *interface, const unsigned char *data, siz
speed = float(received_bytes) / timer.read();
percent = float(received_bytes) * 100 / float(data_length);
time_left = (data_length - received_bytes) / speed;
printf("[NET-%d] Received bytes: %u, (%.2f%%, %.2fKB/s, ETA: %02d:%02d:%02d)\r\n",
thread_id, received_bytes, percent, speed / 1024,
time_left / 3600, (time_left / 60) % 60, time_left % 60);
tr_info("[NET-%d] Received bytes: %u, (%.2f%%, %.2fKB/s, ETA: %02d:%02d:%02d)",
thread_id, received_bytes, percent, speed / 1024,
time_left / 3600, (time_left / 60) % 60, time_left % 60);
}
} while ((result > 0) && (received_bytes < data_length));
}
Expand All @@ -195,10 +196,10 @@ size_t download_test(NetworkInterface *interface, const unsigned char *data, siz

timer.stop();
float f_received_bytes = float(received_bytes);
printf("[NET-%d] Downloaded: %.2fKB (%.2fKB/s, %.2f secs)\r\n", thread_id,
f_received_bytes / 1024.,
f_received_bytes / (timer.read() * 1024.),
timer.read());
tr_info("[NET-%d] Downloaded: %.2fKB (%.2fKB/s, %.2f secs)", thread_id,
f_received_bytes / 1024.,
f_received_bytes / (timer.read() * 1024.),
timer.read());

return received_bytes;
}
Expand Down
9 changes: 5 additions & 4 deletions TESTS/integration/COMMON/file_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#include "mbed.h"
#include "unity/unity.h"
#include "common_defines_test.h"

void file_test_write(const char *file, size_t offset, const unsigned char *data, size_t data_length, size_t block_size)
{
Expand Down Expand Up @@ -57,8 +58,8 @@ void file_test_write(const char *file, size_t offset, const unsigned char *data,
TEST_ASSERT_EQUAL_INT_MESSAGE(0, result, "could not close file");

timer.stop();
printf("[FS] Wrote: \"%s\" %.2fKB (%.2fKB/s, %.2f secs)\r\n", file,
float(data_length) / 1024, float(data_length) / timer.read() / 1024, timer.read());
tr_info("[FS] Wrote: \"%s\" %.2fKB (%.2fKB/s, %.2f secs)", file,
float(data_length) / 1024, float(data_length) / timer.read() / 1024, timer.read());
}

void file_test_read(const char *file, size_t offset, const unsigned char *data, size_t data_length, size_t block_size)
Expand Down Expand Up @@ -99,7 +100,7 @@ void file_test_read(const char *file, size_t offset, const unsigned char *data,

free(buffer);

printf("[FS] Read : \"%s\" %.2fKB (%.2fKB/s, %.2f secs)\r\n", file,
float(data_length) / 1024, float(data_length) / timer.read() / 1024, timer.read());
tr_info("[FS] Read : \"%s\" %.2fKB (%.2fKB/s, %.2f secs)", file,
float(data_length) / 1024, float(data_length) / timer.read() / 1024, timer.read());
}

6 changes: 3 additions & 3 deletions TESTS/integration/net-single/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ static control_t setup_network(const size_t call_count)
if (err == NSAPI_ERROR_OK) {
break;
} else {
printf("[ERROR] Connecting to network. Retrying %d of %d.\r\n", tries, MAX_RETRIES);
tr_error("[ERROR] Connecting to network. Retrying %d of %d.", tries, MAX_RETRIES);
}
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, err);
printf("[NET] IP address is '%s'\n", interface->get_ip_address());
printf("[NET] MAC address is '%s'\n", interface->get_mac_address());
tr_info("[NET] IP address is '%s'", interface->get_ip_address());
tr_info("[NET] MAC address is '%s'", interface->get_mac_address());
return CaseNext;
}

Expand Down
6 changes: 3 additions & 3 deletions TESTS/integration/net-threaded/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ static control_t setup_network(const size_t call_count)
if (err == NSAPI_ERROR_OK) {
break;
} else {
printf("[ERROR] Connecting to network. Retrying %d of %d.\r\n", tries, MAX_RETRIES);
tr_error("[ERROR] Connecting to network. Retrying %d of %d.", tries, MAX_RETRIES);
}
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, err);
printf("[NET] IP address is '%s'\n", net->get_ip_address());
printf("[NET] MAC address is '%s'\n", net->get_mac_address());
tr_info("[NET] IP address is '%s'", net->get_ip_address());
tr_info("[NET] MAC address is '%s'", net->get_mac_address());
return CaseNext;
}

Expand Down
8 changes: 4 additions & 4 deletions TESTS/integration/stress-net-fs/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ static control_t setup_network(const size_t call_count)
if (err == NSAPI_ERROR_OK) {
break;
} else {
printf("[ERROR] Connecting to network. Retrying %d of %d...\r\n", tries, MAX_RETRIES);
tr_error("[ERROR] Connecting to network. Retrying %d of %d...", tries, MAX_RETRIES);
}
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, err);
printf("[NET] IP address is '%s'\n", interface->get_ip_address());
printf("[NET] MAC address is '%s'\n", interface->get_mac_address());
tr_info("[NET] IP address is '%s'", interface->get_ip_address());
tr_info("[NET] MAC address is '%s'", interface->get_mac_address());
return CaseNext;
}

Expand Down Expand Up @@ -205,7 +205,7 @@ void test_malloc()

void *bufferTest = NULL;
TEST_ASSERT_MESSAGE(size > 0, "Size must not be zero for test");
printf("Allocating %d bytes", (int)size);
tr_info("Allocating %d bytes", (int)size);
bufferTest = malloc(size);
TEST_ASSERT(bufferTest != NULL);
free(bufferTest);
Expand Down
3 changes: 2 additions & 1 deletion TESTS/mbed_drivers/flashiap/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ void flashiap_cross_sector_program_test()
TEST_ASSERT_EQUAL_INT32(0, ret);

uint32_t page_size = flash_device.get_page_size();
uint8_t erase_value = flash_device.get_erase_value();

// Erase last two sectors
uint32_t address = flash_device.get_flash_start() + flash_device.get_flash_size();
Expand Down Expand Up @@ -170,7 +171,7 @@ void flashiap_cross_sector_program_test()
data[i] = rand() % 256;
}
for (uint32_t i = prog_size; i < aligned_prog_size; i++) {
data[i] = 0xFF;
data[i] = erase_value;
}

ret = flash_device.program(data, address, prog_size);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@
#define QSPI_SECTOR_COUNT 1024 // for MX25R3235F
#endif

#define QSPI_MIN_FREQUENCY 2000000

#endif // MBED_QSPI_FLASH_CONFIG_H
2 changes: 1 addition & 1 deletion TESTS/mbed_hal/qspi/flash_configs/flash_configs.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
#include "S25FL512S_config.h"

#elif defined(TARGET_CYW9P62S1_43012EVB_01)
#include "S25FS128S_config.h"
#include "S25FS512S_config.h"

#elif defined(TARGET_CY8CPROTO_064_SB)
#include "S25FL128S_config.h"
Expand Down
10 changes: 6 additions & 4 deletions TESTS/mbed_hal/qspi/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ using namespace utest::v1;



#ifndef QSPI_MIN_FREQUENCY
#define QSPI_MIN_FREQUENCY 1000000
#endif

// max write size is usually page size
#define DATA_SIZE_256 (QSPI_PAGE_SIZE)
Expand Down Expand Up @@ -82,6 +84,7 @@ static uint32_t gen_flash_address()
{
srand(ticker_read(get_us_ticker_data()));
uint32_t address = (((uint32_t)rand()) % QSPI_SECTOR_COUNT) * QSPI_SECTOR_SIZE;
address &= 0xFFFFFF; // Ensure address is within 24 bits so as to not have to deal with 4-byte addressing
return address;
}

Expand Down Expand Up @@ -344,18 +347,17 @@ void qspi_frequency_test(void)
ret = qspi_init(&qspi.handle, QPIN_0, QPIN_1, QPIN_2, QPIN_3, QSCK, QCSN, freq, 0);
TEST_ASSERT_EQUAL(QSPI_STATUS_OK, ret);

do {
while (ret == QSPI_STATUS_OK && freq >= QSPI_MIN_FREQUENCY) {
// check if the memory is working properly
qspi.cmd.configure(MODE_1_1_1, ADDR_SIZE_24, ALT_SIZE_8);

ret = qspi_frequency(&qspi.handle, freq);
flash_init(qspi);
_qspi_write_read_test(qspi, WRITE_1_1_1, ADDR_SIZE_24, ALT_SIZE_8, WRITE_SINGLE, READ_1_1_1, ADDR_SIZE_24, ALT_SIZE_8, READ_SINGLE, TEST_REPEAT_SINGLE, DATA_SIZE_256, TEST_FLASH_ADDRESS);

utest_printf("frequency setting %d [Hz] - OK\r\n", freq);

freq /= 2;
ret = qspi_frequency(&qspi.handle, freq);
} while (ret == QSPI_STATUS_OK && freq >= QSPI_MIN_FREQUENCY);
}

qspi_free(&qspi.handle);
}
Expand Down
Loading