Commit Graph

26915 Commits (e809e81bca2adc78fc4ec36a35de7292d08ada0a)

Author SHA1 Message Date
adbridge e809e81bca Update Mbed version block 2019-11-18 16:25:21 +00:00
Ari Parkkila 85154ae76f TESTS: Add socket.set_timeout in udpsocket_echotest
Some packet loss may be expected/allowed with UDP.
Set socket timeout to continue testing if no response is received within a timeout.
2019-11-18 16:25:21 +00:00
Kimmo Vaisanen 31486159e8 Cellular: Fix queue scheduling for bare metal
For non-rtos build (bare metal) cellular event queue is now scheduled by shared event queue.
2019-11-18 16:25:21 +00:00
Chris Trowbridge 4215e7316d Switch to using mbed-trace for greentea test debug output 2019-11-18 16:25:21 +00:00
amq 75682b457b EFM32: Enable RESET_REASON and WATCHDOG for EFM32GG11_STK3701 2019-11-18 15:48:17 +00:00
Chun-Chieh Li 6ce51db76e Nuvoton: Remove TRNG support
These targets below just support PRNG, not real TRNG. They cannot annouce TRNG.

-   NUMAKER_PFM_NUC472
-   NUMAKER_PFM_M487
-   NUMAKER_IOT_M487

On targets without TRNG, to run mbedtls applications which require entropy source,
there are two alternatives to TRNG:

-   Custom entropy source:
    Define MBEDTLS_ENTROPY_HARDWARE_ALT and provide custom mbedtls_hardware_poll(...)
-   NV seed:
    1.  Define MBEDTLS_ENTROPY_NV_SEED
    2.  Define MBEDTLS_PLATFORM_NV_SEED_READ_MACRO/MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO and provide custom mbedtls_nv_seed_read(...)/mbedtls_nv_seed_write(...).
    3.  Don't define MBEDTLS_PSA_INJECT_ENTROPY. Meet mbedtls_psa_inject_entropy(...) undefined and then provide custom one, which must be compatible with mbedtls_nv_seed_read(...)/mbedtls_nv_seed_write(...) above.
    4.  For development, simulating partial provision process, inject entropy seed via mbedtls_psa_inject_entropy(...) pre-main.
2019-11-18 15:48:17 +00:00
Wajahat Abbas fb98acb5c4 Removed error directives 2019-11-18 15:48:17 +00:00
Wajahat Abbas 34395fe38c Remove target dependency in ublox cellular APIs 2019-11-18 15:48:17 +00:00
Tymoteusz Bloch 1097ba7bda LWIP::get_ipv6_addr fixed to avoid returning NULL even if only linklocal adress exits. 2019-11-18 15:48:17 +00:00
Seppo Takalo ce2800b01d IOTSTOR-978: Skip a unstable testcase until fixed 2019-11-18 15:48:17 +00:00
Rob Vlaar a2b7345348 Workaround to reset UARTE peripheral to be able to go into deep sleep 2019-11-18 15:48:17 +00:00
Kyle Kearney a66b602af6 General Block Device Test: Expand Thread Stack
The addition of trace logging during greentea tests pushes the multithreaded
read-write test beyond the limits of the stack it allocates for its threads.
The increase of 128 bytes was chosen by experimentation.
2019-11-18 15:48:17 +00:00
Kyle Kearney 649234e7e7 Disable attempted 4-byte addressing for some boards
4-byte addressing has been seen to cause failures on NORDIC
boards and with Macronix memories. Suppress the attempt to enable it
on that hardware (via vendor quirks and a target check) until either
the failure cause can be fixed or a more robust suppression mechanism
is implemented.
2019-11-18 15:48:17 +00:00
Kyle Kearney 3b80a9ba1e QSPIF: Handle fast mode enable via vendor quirks
Use a vendor id check to only perform this enable on devices which define the
 second configuration register where the fast mode enable bit lives.
Change _enable_fast_mode to use the standard status register reading and writing functions
2019-11-18 15:48:17 +00:00
Kyle Kearney c40de052d5 QSPIF: Handle parts with extra config registers
Default to 2 status registers, but update this value if necessary
 during vendor quirk handling for parts (currently only Macronix)
 which have one status register and two control registers. For the
 purposes of QSPIFBlockDevice, these are all considered status
 (or at least "status-like") registers because they are all written
 via the Write Status Register instruction.
Set the custom RDCR instruction for Macronix during quirk handling.
Update reading and writing of status registers to handle a variable
 number of status registers.
2019-11-18 15:48:17 +00:00
Kyle Kearney d70ad784a3 QSPIF: Centralize handling of vendor quirks
Introduce a separate function for handling alterations to device interaction
which are not covered by the SFDP tables and therefore require checking against
the vendor id.
2019-11-18 15:48:17 +00:00
Kyle Kearney b6b8ffb830 Don't clear quad enable when clearing block protection
QSPIFBlockDevice::_clear_block_protection() has logic to retain the
WIP and WEL bits in status register 1, but it failed to account for
the situation where the QE bit is also in status register 1.
In _sfdp_set_quad_enabled, note the status register and bit therein
for the quad enable, so that _clear_block_protection can retain it.
2019-11-18 15:48:17 +00:00
Kyle Kearney 96bb6541cb QSPIF: Add back enable_fast_mode
This function writes a "config" register to ensure that the flash part
is in high performance mode, not low-power mode. This is required at
by at least MX25R6435F in order to operate at frequencies > 33MHz
(for reference, DISCO_L475VG_IOT01A runs the QSPI interface at 80 MHz).
The config register that this writes does not appear to be covered by
the SFDP spec (JESD216D.01) so this remains the status quo of
unconditional execution, as has been done on master since #8352.
2019-11-18 15:48:17 +00:00
Kyle Kearney 8c82524517 Remove hard-coded instruction ids from QSPI Tests
Replace with macros from the test flash_config header, consistent with
how most commands are built in this test.
2019-11-18 15:48:17 +00:00
Kyle Kearney 1647f21b8d Fix Astyle issues 2019-11-18 15:48:17 +00:00
Matthew Macovsky fa2ef8be96 Update QSPI test to reflect fixes in QSPIFBlockDevice 2019-11-18 15:48:17 +00:00
Matthew Macovsky 237db778a9 Enable TDBStore whitebox test on PSoC 6 2019-11-18 15:48:17 +00:00
Matthew Macovsky fcba02a13f Generalize KVStore phase 1/2 test BlockDevice sizes 2019-11-18 15:48:17 +00:00
Matthew Macovsky 9451167bbb Remove redundant QSPI erase alignment 2019-11-18 15:48:17 +00:00
Matthew Macovsky f154227c03 Enable some of the kvstore tests for PSoC 6 MCUs 2019-11-18 15:48:17 +00:00
Matthew Macovsky 835504d30a Update QSPI format after enabling 4-byte addressing 2019-11-18 15:48:17 +00:00
Matthew Macovsky a9a9a6ca14 Correct typos and formatting 2019-11-18 15:48:17 +00:00
Matthew Macovsky a8ac9ffeae Add missing debug prints to command functions 2019-11-18 15:48:17 +00:00
Matthew Macovsky a48d88c1da Streamline setting of instruction member variables 2019-11-18 15:48:17 +00:00
Matthew Macovsky 4886cc2cbe Replace power function with bit shift 2019-11-18 15:48:17 +00:00
Matthew Macovsky c0ea38c079 Update SDFP erase detection to properly handle legacy erase instruction 2019-11-18 15:48:17 +00:00
Matthew Macovsky 21a1e81a68 Move configuration of QSPI format to within commands where it is necessary 2019-11-18 15:48:17 +00:00
Matthew Macovsky f4c8b18282 Clear block protection on non-SST flash devices 2019-11-18 15:48:17 +00:00
Matthew Macovsky 3136b1cc20 Enable 4-byte addressing when supported in accordance with the SFDP standard 2019-11-18 15:48:17 +00:00
Matthew Macovsky 814fe6d5b6 Update flash device reset to conform to SFDP standard 2019-11-18 15:48:17 +00:00
Matthew Macovsky 9bd8c17cdf Reorder some functions 2019-11-18 15:48:17 +00:00
Matthew Macovsky 7176af9b48 Update reading/writing of status registers to conform to SFDP standard 2019-11-18 15:48:17 +00:00
Giampaolo Mancini fb3b9c1b16 Remove ITM Trace support from Arduino Nano 33 BLE 2019-11-18 15:48:17 +00:00
Adam Mitchell e15560fa83 Correct PB_6/PB_7 Serial AF mapping 2019-11-18 15:48:17 +00:00
Antti Kauppila 49eb67bedb ATHandler build warning fixed 2019-11-18 15:48:17 +00:00
Martin Kojtal c02f8229d4 MCU_LPC11U35_501: fix MCU inheritance
This should fix #11652 issue
2019-11-18 15:48:17 +00:00
Ryan Morse fd4b53cdd4 Update WHD to v1.50 2019-11-18 15:48:17 +00:00
Ryan Morse 6bb6ebc8c4 Move WHD from being a Target to being a Component 2019-11-18 15:48:17 +00:00
Bence Kaposzta 2d0cff885c Fix ethernet memory handling issues on CM3DS
Signed-off-by: Bence Kaposzta <bence.kaposzta@arm.com>
2019-11-18 15:48:17 +00:00
Bence Kaposzta c753a81e45 Fix ethernet memory handling issues on CM3DS
Signed-off-by: Bence Kaposzta <bence.kaposzta@arm.com>
2019-11-18 15:48:17 +00:00
Bence Kaposzta 04d8544661 Fix ethernet memory handling issues on CM3DS
Signed-off-by: Bence Kaposzta <bence.kaposzta@arm.com>
2019-11-18 15:48:17 +00:00
Vikas Katariya 8d015318de Documentation update for tools/psa
Signed-off-by: Vikas Katariya <Vikas.Katariya@arm.com>
2019-11-18 15:48:17 +00:00
Vikas Katariya d9eb75bed7 PSA release script changes.
Since the offline build is made to auto-generate PSA related components
and services for Secure targets, we can change the output directory to
update the files in the respective locations.
TARGET_PSA
  --TARGET_MBED_SPM
    --COMPONENT_SPE
      psa_setup.c
  --TARGET_TFM
    --COMPONENT_SPE
      --inc
	tfm_partition_defs.inc
        tfm_partition_list.inc
        tfm_service_list.inc
        tfm_spm_signal_defs.h
  --services
    --inc
      autogen_sid.h
      mbed_spm_partitions.h

The release script is been modified to commit these files if there are
any changes detected when `--commit` argument is passed.
Cleaning of auto-generated is been removed as it uses the main directory
for its operations, but PSA auto-generation will work if any of the
service and application-based manifests are updated.

Signed-off-by: Vikas Katariya <Vikas.Katariya@arm.com>
2019-11-18 15:48:17 +00:00
Vikas Katariya 41ce06cf8c Remove auto-generation for non-secure PSA targets.
Only generate PSA headers/source related to components and services
when Secure build is initiated during compile time of PSA targets.
Let the Non-secure build rely on the checked-in files already present.

Signed-off-by: Vikas Katariya <Vikas.Katariya@arm.com>
2019-11-18 15:48:17 +00:00
Vikas Katariya 6685025ef0 Add PSA auto-generated files to components
To support online compiler build for PSA targets, some files are
auto-generated (LPC55S69_NS and ARM_MUSCA_A1_NS) by the script
from offline build system. Since these files are identical for these
V8-M targets it would be good to check them in to support online
compiler as they are COMPONENT_SPE and services related.

In folder: components/TARGET_PSA/
  --TARGET_MBED_SPM
    --COMPONENT_SPE
      psa_setup.c
  --TARGET_TFM
    --COMPONENT_SPE
      --inc
	tfm_partition_defs.inc
        tfm_partition_list.inc
        tfm_service_list.inc
        tfm_spm_signal_defs.h
  --services
    --inc
      autogen_sid.h
      mbed_spm_partitions.h

Signed-off-by: Vikas Katariya <Vikas.Katariya@arm.com>
2019-11-18 15:48:17 +00:00