Commit Graph

26840 Commits (b0e9fd7438386ea40950a5b51dcde0aa066b52df)

Author SHA1 Message Date
Maciej Bocianski bda1074f70 NRF52: fix i2c timeouts
add tick to us conversion
2019-11-18 15:42:08 +00:00
Filip Jagodzinski f5481f0876 Test: Fix the reset_reason host test in the CI
Use a BaseHostTestAbstract.reset() method instead of
BaseHostTestAbstract.reset_dut() for more consistent behavior with
various platforms in the CI.

In contrast to a local setup, the reset_dut() method flashes the binary
again after performing the reset in a remote setup (RaaS). This was not
intentional in reset_reason tests. Moreover, this led to a different
behavior (a different reset_reason) for different flashing methods which
are target specific.
2019-11-18 15:42:08 +00:00
Mike Naberezny 268e956c30 FlashIAP: Get erase value from HAL instead of hardcoding it 2019-11-18 15:42:08 +00:00
Ari Parkkila fef3fd2ea0 Allow OS_THREAD_LIBSPACE_NUM as a macro 2019-11-18 15:42:08 +00:00
Maciej Bocianski b4bddf67ed fpga i2c test: limit tested peripherals
Due to lack of i2c_free function switching between peripherals
cause i2c tests failures on some targets.
For now limit testing to single peripheral.
2019-11-18 15:42:08 +00:00
desmond.chen 9b123b8d70 Handle legacy process event first on connection complete 2019-11-18 15:42:08 +00:00
Qinghao Shi 1424d964fc EXAMPLES: temporarily turn off build for NFC examples 2019-11-18 15:42:08 +00:00
Qinghao Shi 6458bf0468 EXAMPLES: fix a typo in the path 2019-11-18 15:42:08 +00:00
Amanda Butler 3042da2dd0 Edit README.md
Edit file, mostly for formatting and grammar.
2019-11-18 15:42:08 +00:00
Qinghao Shi 9f183738ff EXAMPLES: remove default build profiles 2019-11-18 15:42:08 +00:00
Qinghao Shi 668db82480 EXAMPLES: add README file 2019-11-18 15:42:08 +00:00
Qinghao Shi e5942e621d EXAMPLES: temporarily turn off the complie test for sub example 2019-11-18 15:42:08 +00:00
Qinghao Shi 42b9b61f88 EXAMPLES: update comments and fix bugs 2019-11-18 15:42:08 +00:00
Qinghao Shi 4292281553 EXAMPLES: update console output format 2019-11-18 15:42:08 +00:00
Qinghao Shi f4d287ffd5 EXAMPLES: update build_repo function 2019-11-18 15:42:08 +00:00
Qinghao Shi 9870891d13 EXAMPLES: update export_repos function 2019-11-18 15:42:08 +00:00
Qinghao Shi a6bb82abdb EXAMPLES: update examples_lib.py - add logging function - update clone function - update deploy function - update source function - add symlink function 2019-11-18 15:42:08 +00:00
Qinghao Shi 283a0af58b EXAMPLES: improve examples.py cli help messages 2019-11-18 15:42:08 +00:00
Qinghao Shi 19f802c7e6 EXAMPLES: add list amd Symlink functions 2019-11-18 15:42:08 +00:00
Qinghao Shi 65762081c3 EXAMPLES: update examples.json file
- remove "mbed" and "test-repo-source" key
 - add "sub-repo-example" key as an indicator if an example has sub examples
 - add "subs" key to sotre sub examples names
2019-11-18 15:42:08 +00:00
Qinghao Shi c10127a73c EXAMPLES: add test key for remaining examples 2019-11-18 15:42:08 +00:00
Maciej Bocianski e7d1a90cc4 hal qspi test: adjust min frequency for EFM32GG11
according to the driver limitations
2019-11-18 15:42:08 +00:00
Maciej Bocianski 4f83b577e4 hal qspi test: fix frequency setting test
Prevent setting frequency below QSPI_MIN_FREQUENCY
2019-11-18 15:42:08 +00:00
Lei Zhang 818a652e86 MIDDLEWARE-2134: Fix spurious link up/down when AP IP address range changes
Fixed additional link down/up events in whd_wifi_link_state_change_handler by checking additional condition during the transition.
2019-11-18 15:42:08 +00:00
midd 64f9b596bf Update the internal kvstore size to from 7k to 65K for device that use the internal flash for kvstore 2019-11-18 15:42:08 +00:00
Chun-Chieh Li 47cec095b1 M2351: Change base target name 'NU_PFM_M2351_CM' to 'NU_PFM_M2351'
This is to meet platform name 'NU_PFM_M2351' registered in mbed-os-tools. This tool
uses the platform name as a key to search platform related properties in targets.json.
For example, the property 'forced_reset_timeout' is critical for Greentea test.
2019-11-18 15:42:08 +00:00
Anna Bridge a4f718607d Clarify release note section requirements 2019-11-18 15:42:08 +00:00
Anna Bridge 06515c34d0 Add clarity to description and reword tests options 2019-11-18 15:42:08 +00:00
Anna Bridge fa3aaf4dc8 Improve formatting
Made required/optional italic and removed a couple of superfluous lines
2019-11-18 15:42:08 +00:00
Anna Bridge aa0c795f92 Add addional guidance 2019-11-18 15:42:08 +00:00
Anna Bridge 2b78c1a10b Add test results section
Also add section separators
2019-11-18 15:42:08 +00:00
adbridge 5f96d6e9cf Simplify pull request template
Condense multiple options into the main three and summarise what
can go into those 3 types.

Add a test results section.

Add compulsory sections to Release Notes.
2019-11-18 15:42:08 +00:00
Lei Zhang b654b76a3c Add synchronization and switching between SoftAP/STA
- A shared mutex is added for synchronization
- ScopedMutexLock is used to to protect
  - SoftAP: start, stop
  - STA: scan, join, disconnect
- Fix switching issue between SoftAP and STA mode for primary interface
  - Avoid reinit primary interface by getting mapping the current interface to the other one which is already on
  - In concurrent mode, STA is the default if it is up, otherwise SoftAP is default.
  - For non-concurrent mode, the most recent started interface is set as default.
2019-11-18 15:42:08 +00:00
Kevin Bracey f50e7b1da3 Clean up ARM toolchain heap+stack setup in targets
ARM Compiler 6.13 testing revealed linker errors pointing out
conflicting use of `__user_setup_stackheap` and
`__user_initial_stackheap` in some targets. Remove the unwanted
`__user_initial_stackheap` from the targets - the setup is
centralised in the common platform code.

Looking into this, a number of other issues were highlighted

* Almost all targets had `__initial_sp` hardcoded in assembler,
  rather than getting it from the scatter file. This was behind
  issue #11313. Fix this generally.
* A few targets' `__initial_sp` values did not match the scatter
  file layout, in some cases meaning they were overlapping heap
  space. They now all use the area reserved in the scatter file.
  If any problems are seen, then there is an error in the
  scatter file.
* A number of targets were reserving unneeded space for heap and
  stack in their startup assembler, on top of the space reserved in
  the scatter file, so wasting a few K. A couple were using that
  space for the stack, rather than the space in the scatter file.

To clarify expected behaviour:

* Each scatter file contains empty regions `ARM_LIB_HEAP` and
  `ARM_LIB_STACK` to reserve space. `ARM_LIB_STACK` is sized
  by the macro `MBED_BOOT_STACK_SIZE`, which is set by the tools.
  `ARM_LIB_HEAP` is generally the space left over after static
  RAM and stack.
* The address of the end of `ARM_LIB_STACK` is written into the
  vector table and on reset the CPU sets MSP to that address.
* The common platform code in Mbed OS provides `__user_setup_stackheap`
  for the ARM library. The ARM library calls this during startup, and
  it calls `__mbed_user_setup_stackheap`.
* The default weak definition of `__mbed_user_setup_stackheap` does not
  modify SP, so we remain on the boot stack, and the heap is set to
  the region described by `ARM_LIB_HEAP`. If `ARM_LIB_HEAP` doesn't
  exist, then the heap is the space from the end of the used data in
  `RW_IRAM1` to the start of `ARM_LIB_STACK`.
* Targets can override `__mbed_user_setup_stackheap` if they want.
  Currently only Renesas (ARMv7-A class) devices do.
* If microlib is in use, then it doesn't call `__user_setup_stackheap`.
  Instead it just finds and uses `ARM_LIB_STACK` and `ARM_LIB_HEAP`
  itself.
2019-11-18 15:42:08 +00:00
Maciej Bocianski 4075d417a2 nxp LPC55S69: fix i2c pin mapping 2019-11-18 15:42:08 +00:00
Chun-Chieh Li 83c354432d M2351: Update default secure image/gateway library
Update for change of TRNG security attribute
2019-11-18 15:42:08 +00:00
Chun-Chieh Li cd89efc604 NUVOTON: Re-implement TRNG HAL with TRNG H/W
Targets supporting TRNG H/W:

-   NU_PFM_M2351_*
-   NUMAKER_IOT_M263A
2019-11-18 15:42:08 +00:00
Chun-Chieh Li d7f630108c NUVOTON: Re-implement __PC() with toolchain built-in
Re-implement __PC() by replacing BSP assembly with toolchain built-in.
2019-11-18 15:42:08 +00:00
Chun-Chieh Li df8b41617a NUVOTON: Fix BSP/MKROM header
Related targets:
-   NU_PFM_M2351_*
-   NUMAKER_IOT_M263A
2019-11-18 15:42:08 +00:00
Chun-Chieh Li 68448a9bb1 M2351: Update BSP/crypto driver 2019-11-18 15:42:08 +00:00
Chun-Chieh Li de2678d7f8 M2351: Change TRNG security attribute to secure 2019-11-18 15:42:08 +00:00
Lei Zhang 66e8133ddb Allow WhdAccessPoint scan result with extended parameters
- Add WhdAccessPoint to include additional WHD scan info
- To save memory, only move assignment is supported for WhdAccessPoint
- Add scan_whd to scan for WhdAccessPoint
- Set set_blocking(false) to unsupported by return NSAPI_ERROR_UNSUPPORTED
2019-11-18 15:42:08 +00:00
Chun-Chieh Li 9a7d69cc03 DeviceKey: Fix random key doesn't generate on MBEDTLS_ENTROPY_HARDWARE_ALT
Originally, when DEVICE_TRNG is defined, MBEDTLS_ENTROPY_HARDWARE_ALT will also be defined
accordingly to provide entropy source. This is fine for targets supporting TRNG. However, for
targets without TRNG, it is also possible to provide non-TRNG entropy source solution via the
define MBEDTLS_ENTROPY_HARDWARE_ALT. Related discussion can be found at:

https://github.com/ARMmbed/mbed-os/issues/11680
2019-11-18 15:42:08 +00:00
Hugues Kamba a77464d596 minimal-printf: Fix handling of the two character sequence %%
The two character sequence %% is used in standard implementations of
printf to print a single %. This is because % is essentially printf's
escape character for format specifiers and as \% cannot work printf
uses %%.
Therefore to be compatible with string buffers containing
%%, minimal-printf also needs to only print a single %.
2019-11-18 15:42:08 +00:00
Hugues Kamba 891b0a93e4 minimal_printf: Fix high level C functions that print to the console
Ensure the file descriptor stdout is passed to `fputc` when the high
level C functions to print to the console are referenced.
This issue fixed only affected binaries built with the ARM toolchain.
2019-11-18 15:42:08 +00:00
jeromecoutant c9590ae131 Avoid compilation if target doesn't support EMAC 2019-11-18 15:42:08 +00:00
jeromecoutant 43910e6188 STM32: remove unused TARGET_STM_EMAC additional directory 2019-11-18 15:42:08 +00:00
jeromecoutant 77892384e9 STM32 EMAC: move from TARGET_STM_EMAC to TARGET_STM 2019-11-18 15:42:08 +00:00
Mukund Ghonasgi 0c81b46ce7 Update BT Firmware to version 128.
Fixes issues in BT firmware operation in low power mode.
2019-11-18 15:42:08 +00:00
Veijo Pesonen b0498dc3db MCU_NRF52840: Switches to correct Product Anomaly Notification macro 2019-11-18 15:42:08 +00:00