Commit Graph

27539 Commits (240758db42aaa42b2abd50daea5033c3cc7e80dc)

Author SHA1 Message Date
fred.li fc8ae6fb18 All timer will not correct with 40M Clock, set back to 160M 2019-11-19 12:08:05 +08:00
fred.li 18fa28db77 Disable UNISOC Reconnect patch, Optimize workaround for LWIP issue 2019-11-19 12:08:05 +08:00
fred.li 88cf7df286 1, Restrict access to 1st 4K of flash
2, Merge UNISOC change for auto reconnect patch
2019-11-19 12:08:05 +08:00
fred.li 0a2d843e15 Fix SystemReset Hang issue 2019-11-19 12:08:05 +08:00
fred.li bf4f1b18ba Skip clock setting, keep all code running with 40M 2019-11-19 12:08:04 +08:00
fred.li 08ef03492f reset I2C_WAKEUP_EN bit with Clock reset 2019-11-19 12:08:04 +08:00
fred.li ee2f7ce6bb Vector Table should accordng to application offset 2019-11-19 12:08:04 +08:00
Osamu Koizumi 0c8196168a Avoid setting clock parameter twice 2019-11-19 12:08:04 +08:00
fred.li 33f59b426f Fix for PDMC Timer stopped working issue 2019-11-19 12:08:03 +08:00
Hugues Kamba dfae4e72bd DISCO_L475VG_IOT01A: Fix baremetal profile Greentea tests
The build was missing the `"qspif"` lib to sucessefully build
2019-11-18 14:32:20 +00:00
Jarkko Paso 12d4497ab7 Merge commit '0b6ccc5816e44df9fe89c476514cb7043dfb483b'
* commit '0b6ccc5816e44df9fe89c476514cb7043dfb483b':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 0824752..9b3e144
2019-11-18 15:08:32 +02:00
Jarkko Paso 0b6ccc5816 Squashed 'features/nanostack/sal-stack-nanostack/' changes from 0824752..9b3e144
9b3e144 Removed kde_helper test files
451ac95 Merge branch 'release_internal' into release_external
d9976cf Merge branch 'master' into release_internal
0a6fb58 RPL parent update handle update
59b145b Fixed Ifdown / UP sequence and and discovery state set own hop to 0xff.
9103d68 Fixed dwell time, clock drift and timing accuracy values
56831ad Wi-sun BBR Slaac Ula support fix
add63fe Modified advertisiement trickle handling to remove congestion
7683bef Added storing of all MAC frame counters to NVM
b8a4f8d MAC ACK handler update:
ba09c34 Added adaptation layer TX queue size statistic
2fe2a6c MAC update:
6d288ce MAC security update:
c870b76 Added skipping of fragment length to EAP-TLS protocol and other improvements
561280b Wi-sun Discovery update:
5b153f4 DHCPv6 Client and Server update
ab849c6 Corrected skipping of other elements than KDEs on EAPOL key frames
61ebe10 Removed RPL version number increment.
b423c46 RPL parent select update
7d2f967 Corrected setting of test GTK on supplicant
454faf6 Do not balck list neighbour if link fail to ARO.
8120b37 Wi-sun RPL candidate accept update
ebe0dad fixed bbr for ULA prefix to real prefix change
bb42fad Added Network size setup for certificate test
9a7849b Fixed uninitilized fixed channel use case for test purpose.
bca8b0f Disabled check for certificate valid from field
2a5ae7c Fixed eapol target selection sort algorithm
9b283cb Fixed FHSS configuration API
76089cb Fixed ASYNCH message send for fixed channel setup.
0c94982 When starting bootstrap clear candidate parent list
6c25cf5 Dynamic min lifetime for temporary neighbour.
0b7c87a Retry timeout based on NW size is set after receiving identity
7ec9ef1 Corrected supplicant and controller authentication result causes
f5a00a0 Fixed DHCPv6 prefix update case
e06c8b2 Nanostack: sync with mbed os
ffe9351 Refactored the EAPOL target scanning
0880162 Added target EUI-64 to authentication result callback
c110c19 Added tx failure cause to initial EAPOL-key security protocol

git-subtree-dir: features/nanostack/sal-stack-nanostack
git-subtree-split: 9b3e144f5b519955837117a544168f06192b16a0
2019-11-18 15:08:32 +02:00
Arun S dc7178f176 Modified LwIP stack and LwIP mbed-os wrapper to support sending IPv6
UDP packets when IPv4 and IPv6 dual mode stack is enabled and the IPv6
packet is sent over link-local inerface.
2019-11-18 17:18:50 +05:30
Jussi Siponen 1c4a5b9d87 Change wifi example to build only DISCO_L475VG_IOT01A
Currently mbed-os-example-blinky and mbed-os-example-wifi are built for each and every target in Mbed OS. This will change that only DISCO_L475VG_IOT01A is built for mbed-os-example-wifi. DISCO_L475VG_IOT01A was chosen as its one of the wi-fi supported boards and having integrated wi-fi.
2019-11-18 13:46:50 +02:00
amq 3eaa3e0325
Add fat_chan defines in storage unit tests cmake 2019-11-17 12:10:57 +01:00
Martin Kojtal 2e96145b76
Merge pull request #11871 from AriParkkila/test-udpechotest-timeout
TESTS: Add socket.set_timeout in udpsocket_echotest
2019-11-16 07:55:53 +01:00
Martin Kojtal cb54f5065f
Merge pull request #11859 from kivaisan/fix_cellular_baremetal_scheduling
Cellular: Fix queue scheduling for bare metal
2019-11-16 07:55:36 +01:00
Martin Kojtal ee46d03a6c
Merge pull request #11861 from trowbridgec/update-ep-agora-target
Replace calls to printf() with mbed-trace in netsocket tests
2019-11-16 07:54:27 +01:00
Ryan Morse 722a6eb27c Sync to WHD 1.60 release 2019-11-15 11:42:17 -08:00
Martin Kojtal 60a470a7ef
Merge pull request #11844 from amq/patch-1
EFM32: Enable RESET_REASON and WATCHDOG for EFM32GG11_STK3701
2019-11-15 18:34:06 +01:00
Martin Kojtal 97a7466e54
Merge pull request #11841 from AriParkkila/wifi-reorder
WiFi: Re-order Greentea tests with minor fixes
2019-11-15 18:33:11 +01:00
Martin Kojtal 30145b1393
Merge pull request #11736 from OpenNuvoton/nuvoton_remove_trng
Nuvoton: Remove TRNG support
2019-11-15 18:29:14 +01:00
Martin Kojtal 7b79157a4d
Merge pull request #11580 from wajahat-ublox/ubx_modems_custom_boards
Remove target dependency in ublox cellular APIs
2019-11-15 18:26:54 +01:00
RAJKUMAR KANAGARAJ 0e4d9d9a6a Removed the nanostack lib service and mbed-trace fea ipv6 to false to remove dependency issue on greentea test for bare metal with ARM toolchain 2019-11-15 09:19:16 -08:00
Chris Trowbridge a1edbb9099 Switch to using mbed-trace for greentea test debug output 2019-11-15 11:18:13 -05:00
Anna Bridge 7cfa6faa5b
Merge pull request #11714 from tymoteuszblochmobica/linklocal
LWIP::get_ipv6_addr for link-local only
2019-11-15 12:32:54 +00:00
Anna Bridge 6bc2831247
Merge pull request #11869 from ARMmbed/IOTSTOR-978
IOTSTOR-978: Skip a unstable testcase until fixed
2019-11-15 12:29:25 +00:00
Przemyslaw Stekiel 48b02af144 Fix for Cypress GPIO driver 2019-11-15 10:10:29 +01:00
Seppo Takalo af0708ca48 IOTSTOR-978: Skip a unstable testcase until fixed 2019-11-15 10:38:32 +02:00
Tymoteusz Bloch 6514433b68 LWIP::get_ipv6_addr fixed to avoid returning NULL even if only linklocal adress exits. 2019-11-14 17:19:54 +01:00
Ari Parkkila ed754434b7 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-14 06:04:37 -08:00
Martin Kojtal 699372421a
Merge pull request #11790 from 0xc0170/master-rob
nrf52: reset UARTE peripheral in serial_free
2019-11-14 10:42:08 +01:00
Alexandre Bourdiol 328862028d Remove Tickless from STM32F4 targets
Ticless on STM32 F4 boards causes SPI issue with following PR:
# 11682 Make FPGA tests to pass on CI targets (SPI, analogIn, PWM)

In asynch mode, using interrupts, SPI hardware detect an RX overrun.
Our understanding is that lpticker wrapper latency
causes issue similar to #8714 and #9785,
specially with SPI asynch which use interrupts.
2019-11-14 09:29:56 +01:00
Martin Kojtal fd22997b60
Merge pull request #11559 from kjbracey-arm/crc
MbedCRC and CRC HAL revisions
2019-11-13 18:24:04 +01:00
Martin Kojtal 539779fa58
Merge pull request #11531 from kyle-cypress/pr/qspi-sfdp
Improve QSPIFBlockDevice conformance to SFDP
2019-11-13 17:55:36 +01:00
Martin Kojtal eab1c2e594
Merge pull request #11796 from hugueskamba/hk-add-minimal-console-to-retarget
mbed_retarget: Add a minimal console implementation to provide basic functionalities
2019-11-13 17:11:27 +01:00
amq 5ec0a911fa
Change "MBED_CONF_FAT" to MBED_CONF_FAT_CHAN" 2019-11-13 16:08:08 +01:00
amq 1b55cbe92d
Change library name from "fat" to "fat_chan" 2019-11-13 15:51:55 +01:00
Martin Kojtal 249d35c873
Merge pull request #11848 from manchoz/arduino_nano33ble_itm
Remove ITM Trace support from Arduino Nano 33 BLE
2019-11-13 15:17:16 +01:00
Martin Kojtal 5291228c00
Merge pull request #11850 from amitchone/amitchone-patch-1
Correct PB_6/PB_7 Serial AF mapping
2019-11-13 14:59:56 +01:00
Martin Kojtal d496ab567b
Merge pull request #11854 from AnttiKauppila/athandler_warn_fix
ATHandler build warning fixed
2019-11-13 14:59:35 +01:00
Kimmo Vaisanen deadcee06c 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-13 14:51:14 +02:00
Kevin Bracey 8811972201 Adjust code for MbedCRC changes
* Make mbed_error use bitwise MbedCRC call rather than local
  implementation.
* Remove use of POLY_32BIT_REV_ANSI from LittleFS.
* Move some MbedCRC instances closer to use - construction cost is
  trivial, and visibility aids compiler optimisation.
2019-11-13 14:31:49 +02:00
Kevin Bracey 3939c992d4 Revise MbedCRC template
* Use compile-time detection of hardware CRC capability, so unneeded
  code and tables do not go into the image.
* Add global JSON config option to allow choice between no tables,
  16-entry tables or 256-entry tables for software CRC. Default set
  to 16-entry, reducing ROM size from previous 256-entry.
* Allow manual override in template parameter to force software or
  bitwise CRC for a particular instance.
* Micro-optimisations, particularly use of `RBIT` instruction and
  optimising bitwise computation using inline assembler.

Incompatible changes:

* Remove special-case "POLY_32BIT_REV_ANSI" - users can use standard
  POLY_32BIT_ANSI, which now uses the same 16-entry tables by default,
  or can use hardware acceleration, which was disabled for
  POLY_32BIT_REV_ANSI. MbedCRC<POLY_32BIT_ANSI, 32, CrcMode::TABLE> can
  be used to force software like POLY_32BIT_REV_ANSI.
* The precomputed table for POLY_16BIT_IBM had errors - this has been
  corrected, but software CRC results will be different from the previous
  software calculation.
* < 8-bit CRC results are no longer are shifted up in the output value,
  but placed in the lowest bits, like other sizes. This means that code
  performing the SD command CRC will now need to use `(crc << 1) | 1`,
  rather than `crc | 1`.
2019-11-13 14:31:49 +02:00
Kevin Bracey 1f94428a56 Update HAL CRC API
* Change "is supported" check to be a macro, so it can be done at
  compile-time.
* Eliminate weird shift on 7-bit CRCs.
* Add support for 32-bit CRCs and reversals to TMPM3HQ.
2019-11-13 14:31:49 +02:00
Chun-Chieh Li aae04b2516 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-13 18:01:24 +08:00
Martin Kojtal f1848f9e6d
Merge pull request #11828 from 0xc0170/fix_11652
MCU_LPC11U35_501: fix MCU inheritance
2019-11-13 11:00:15 +01:00
Antti Kauppila 8aac93a593 ATHandler build warning fixed 2019-11-13 09:38:02 +02:00
Kyle Kearney 0103e3a06a 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-12 15:41:12 -08:00
Kyle Kearney 96cfc7393d 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-12 12:26:26 -08:00