Commit Graph

21075 Commits (ee57fd679ed09d9c45e4d44435ca33c6875e0c77)

Author SHA1 Message Date
Kari Haapalehto ee57fd679e Correct network status callbacks with Nanostack. Ethernet-tasklet needs to be registered for emac link state changes. Ethernet-tasklet will then handle ethernet cable connection/disconnection events. 2018-12-27 22:25:54 -06:00
jeromecoutant 114c917a4d STM32 : Add default deep sleep latency of 3 ms 2018-12-27 22:25:54 -06:00
Ron Eldor 789542168d Fix issues in CC310 cc_internal discovered by OTT
Return `MBEDTLS_ERR_ECP_INVALID_KEY` when Cryptocell returns
`CRYS_ECPKI_BUILD_KEY_INVALID_PRIV_KEY_SIZE_ERROR`
or `CRYS_ECPKI_BUILD_KEY_INVALID_PUBL_KEY_SIZE_ERROR`,
When the key size is invalid. Found by the "ECDSA zero private parameter"
tests.
2018-12-27 22:25:54 -06:00
Arto Kinnunen eef504f492 Sync with v1.0.0
Sync application and testcases with v1.0.0 of the master copy.
2018-12-27 22:25:54 -06:00
Jimmy Brisson 6dbdce49b0 Migrate old memap file handling into toolchains
### Description

This PR moves the old memap file handling required for differential
memap from within memap to the toolchain object. This has the
advantage that we can do the `mv <app>.map <app>.map.old` the moment
before it is overwritten by the linker. This should allow multiple
reruns of memap without modifying your build directory.

### Pull request type

    [ ] Fix
    [x] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Docs update
    [ ] Test update
    [ ] Breaking change
2018-12-27 22:25:54 -06:00
Teemu Kultala 270597783e cellular: registration status change unit test fix 2018-12-27 22:25:54 -06:00
Teemu Kultala 419ce3fc6d cellular: registration status change astyle fix 2018-12-27 22:25:54 -06:00
Teemu Kultala e4832fc8c3 cellular: registration status change fix 2018-12-27 22:25:54 -06:00
jeromecoutant 9fea2fb1d8 STM32 LPTICKER with LPTIM optimisation 2018-12-27 22:25:54 -06:00
Martin Kojtal 886b633a1a rtos: fix style in rtos wait
Found during editing copyright message
2018-12-27 22:25:54 -06:00
Martin Kojtal 182ddb702b rtos: fix copyright years 2018-12-27 22:25:54 -06:00
Martin Kojtal 2be98cafcc rtos: add spdx license 2018-12-27 22:25:54 -06:00
Martin Kojtal 41b56a4744 events: add spdx license 2018-12-27 22:25:54 -06:00
Martin Kojtal 17097a962b platform: add spdx license 2018-12-27 22:25:54 -06:00
Martin Kojtal cfd79596c8 hal: add spdx license 2018-12-27 22:25:54 -06:00
Martin Kojtal 9f31b4b718 drivers: add spdx license 2018-12-27 22:25:54 -06:00
Olli-Pekka Puolitaival 03e0a7062b Moving some examples testing from K64F to K66F 2018-12-27 22:25:54 -06:00
Cruz Monrreal 6a0a86538c
Merge pull request #9091 from ARMmbed/release-candidate
Release candidate for mbed-os-5.11.0-rc4
2018-12-13 12:05:50 -06:00
Jimmy Brisson 6ea826f0ae Enable stats reporting with a flag in targets.json
### Description

PR #8607 will cause problems for the NRF52832 and the NRF52840
in the online compiler starting with 5.10.2. This PR prevents this problem
by using a toggle in `targets.json` to enable these new defines for every
target except for the NRF52832 and NRF52840.

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Docs update
    [ ] Test update
    [ ] Breaking change
2018-12-13 15:33:38 +00:00
Russ Butler e09493e067 Disable MPU RT1050 due to memory map
Disable the MPU on the RT1050 since this target has a memory map that
is incompatible with the default MPU driver.
2018-12-13 15:33:38 +00:00
Martin Kojtal 2994c3f7db
Merge pull request #9064 from ARMmbed/release-candidate
Release candidate for mbed-os-5.11.0-rc3
2018-12-12 09:50:52 +01:00
Michal Paszta 56363775f2 ESP8266 send returns WOULD_BLOCK error when busy 2018-12-11 16:14:50 -06:00
Russ Butler 165af448fc Revert "Turn off MPU on targets failing OOB"
The cause of the pelion-enablement test failures for Nuvoton boards
is not caused by or related to the MPU so this patch re-enables the
MPU for these boards.

The cause of the  pelion-enablement test failures for the
UBLOX_C030_U201 has been identified and corrected so this patch
re-enables the MPU for this board.

This reverts commit b217c5fe4d.
2018-12-11 16:14:50 -06:00
Terence Zhang 7dd7471be6 Formatted via astyle. 2018-12-11 16:14:50 -06:00
Terence Zhang 7529535a26 Fix for the fault exception issue: https://github.com/ARMmbed/mbed-os-example-cellular/issues/112 2018-12-11 16:14:50 -06:00
Terence Zhang de70dae221 Fix the fault exception issue in socket_recvfrom with the null pointer parameter as SocketAddress *addr. 2018-12-11 16:14:50 -06:00
Kevin Bracey 81acc28c3f Rework MPU use option
Make the option positively named, and as it is a platform config
option make sure it only affects platform code.

HAL functions still remain available even if platform is told not
to use them.
2018-12-11 16:14:50 -06:00
Russ Butler 2463596779 Add a platform config to disable the MPU
Add the platform config DISABLE_MPU to allow the MPU to be disabled
from an application.
2018-12-11 16:14:50 -06:00
Veijo Pesonen c22ac0c279 Fixes namespace collision 2018-12-11 16:14:50 -06:00
Veijo Pesonen 7210b97c59 powers down the modem on disconnect 2018-12-11 16:14:50 -06:00
Veijo Pesonen 5799daef72 Fixes connect, and network-status logic 2018-12-11 16:14:50 -06:00
Veijo Pesonen fc548ec367 Fixes AT command timeout values from reset&connect 2018-12-11 16:14:50 -06:00
Veijo Pesonen c10d276928 Adds support for controlling HW reset of the modem from the driver
While connecting will run HW reset for the modem if reset wire is attached to a know pin.
2018-12-11 16:14:50 -06:00
David Saada 04377fa88e Fix a few SecureStore issues (following preliminary security review)
- Remove require integrity flag (authentication) - always authenticate
- Use RBP KV to store CMAC also in write once case
- Allow removing a key if reading it failed on RBP authentication error
- Disable SecureStore if user disables MBED TLS AES CTR or CMAC
2018-12-11 16:14:50 -06:00
Deepika ce08039c30 Add Serial + EventQueue dependency to ESP8266 2018-12-11 16:14:50 -06:00
Deepika 771b69e405 Components if using RTOS modules should be enabled only when RTOS is present
Build failures were observed when rtos is ignored with .mbedignored.
Components dependent on RTOS should be guarded with MBED_CONF_RTOS_PRESENT
2018-12-11 16:14:50 -06:00
Deepika 0b38cb85f8 Fix header files used in esp8266
"ns_types.h" results in build failure when networking feature is ignored with
.mbedignored. ESP8266 component should be enabled only when NSAPI is present.
2018-12-11 16:14:50 -06:00
Deepika ea96ee9534 Fix header files used in 802.15.4_RF
"ns_types.h" is not used, but included. Results in build failure when networking
feature is ignored with .mbedignored

"mbed_trace.h" not used.
2018-12-11 16:14:49 -06:00
Russ Butler 033218219c Add header to fix compile failures
Add the header platform/mbed_assert.h to fix build errors with
platform/mbed_mpu_mgmt.c.
2018-12-11 16:14:49 -06:00
Kevin Bracey 89d239e8e4 Test MPU is enabled by init 2018-12-11 16:14:49 -06:00
Kevin Bracey 243167e856 Use MBED_ASSERT in MPU manager
MPU lock under- or overflow is not a likely random runtime failure - it
will be a mismatched lock/unlock programming error, so should be
detected during development.  Make the checks asserts so they can be
left out from release builds.  MBED_ASSERT is also a bit smaller than
MBED_ERROR in develop builds.
2018-12-11 16:14:49 -06:00
Kevin Bracey 4d9f218ab2 Save ROM by specifying initial MPU state
We can omit the need for the "change MPU state" calls from simple images
by specifying the initial state at init.
2018-12-11 16:14:49 -06:00
Kevin Bracey bb4cb774a2 Exclude MPU manager code if MPU disabled
Save around 400 bytes from images using FlashIAP by omitting MPU manager
reference counting if DEVICE_MPU is 0.
2018-12-11 16:14:49 -06:00
Leszek Rusinowicz 784c80f9e9 FUTURE_SEQUANA deep sleep fixes: - fixed feature rename (from DEVICE_LOWPOWERTIMER to DEVICE_LPTICKER) in all missed places - disabled power manager callback for serial driver 2018-12-11 16:14:49 -06:00
Leszek Rusinowicz b66ebb7fa8 FUTURE_SEQUANA SPI fixes: - fix to allow using only a subset of pins for SPI communication - added missing conter increment in spi_master_block_write() 2018-12-11 16:14:49 -06:00
paul-szczepanek-arm 52b0f21720 remove noreturn error function to avoid compilation issues 2018-12-11 16:14:49 -06:00
paul-szczepanek-arm d9ec798f67 fixed ARM compilation problem caused by noreturn 2018-12-11 16:14:49 -06:00
paul-szczepanek-arm 70d588474e working ARM lib 2018-12-11 16:14:49 -06:00
paul-szczepanek-arm c972982205 working libs for GCC and IAR 2018-12-11 16:14:49 -06:00
Donatien Garnier 4a81acca8b Replace ARMCC libs 2018-12-11 16:14:49 -06:00