Commit Graph

28030 Commits (a327210fd0b4ea76ab4c234fb36cb1f990f19e05)

Author SHA1 Message Date
Arto Kinnunen 9f3c053626 Merge commit '4daaaf126d9dfbfcbe638753573139d95442da1f' into mbed-os-5.15
* commit '4daaaf126d9dfbfcbe638753573139d95442da1f':
  Squashed 'features/nanostack/coap-service/' changes from e5e0c138e6..5aa54b8e62
2020-04-16 11:42:16 +03:00
Arto Kinnunen 4daaaf126d Squashed 'features/nanostack/coap-service/' changes from e5e0c138e6..5aa54b8e62
5aa54b8e62 Merge pull request #127 from ARMmbed/sync_with_mbedos
6fe78412d2 Follow Mbed OS coding style
2b708be451 trace group defiined for shared_rng
d4c2caca41 more error handling added for ctr and hmac
cace1e9c22 Added missing optimizations based on mbedtls/baremetal.h config
2cc7442ba5 Added new global rng, needed for MbedTLS optimisations
f861157576 Prepare for upcoming MbedTLS changes

git-subtree-dir: features/nanostack/coap-service
git-subtree-split: 5aa54b8e622ec2b44bdf323cc02bd1cfc5ffd904
2020-04-16 11:37:16 +03:00
Arto Kinnunen 04dacfaac3
Merge pull request #12766 from mikaleppanen/wisun_stats
Add Wi-SUN statistics interface
2020-04-15 15:55:00 +03:00
Arto Kinnunen 714708d842
Merge pull request #12774 from liugang-gavin/feature-wisun
Feature wisun
2020-04-15 12:27:13 +03:00
Mika Leppänen f28b8cbdf0 Added Wi-SUN statistics interface
Added network and MAC statistics to Wi-SUN interface.
2020-04-14 10:04:44 +03:00
Martin Kojtal 565ab14981
Merge pull request #12780 from kyle-cypress/pr/cypress-remove-sbsyskit
Cypress: Remove CYSBSYSKIT_01 from 5.15
2020-04-09 20:53:24 +02:00
Kyle Kearney 6554e3951e Revert "Backport #12603: Add CYSBSYSKIT_01"
This reverts commit 4e6692b529.
There are issues with wifi connectivity on this target that mean
it is not ready to ship with 5.15.2.
2020-04-08 14:14:11 -07:00
Martin Kojtal 757f14b807
Merge pull request #12776 from JarkkoPaso/update_stm32_emac_ethernet_driver
Update stm32 emac ethernet driver
2020-04-08 18:35:32 +02:00
Martin Kojtal 64b10f450d
Merge pull request #12767 from Patater/update-to-tls-2.21.0
Upgrade to Mbed TLS 2.21.0 and Mbed Crypto 3.1.0
2020-04-08 15:19:01 +02:00
Martin Kojtal 3db7cd42da
Merge pull request #12771 from kyle-cypress/pr/cypress-backport-whd-assert
Cypress: Partial backport of #12769
2020-04-08 15:18:31 +02:00
Arto Kinnunen 38f9a09f12 Update STM32 EMAC driver based on review
-Fix len type
-Use ETH_RX_BUF_SIZE instead of hard-coded value 1500
2020-04-08 14:11:50 +03:00
Arto Kinnunen 6d2bc4f144 Update STM32 EMAC driver - limit RX frame length
DISCO_F769NI EMAC driver may return ethernet packet with illegal
length when driver is under heavy load. In one case, the received
bytes indicate frame length of 53 bytes but advertised data length
was 65518 bytes. In another case EMAC driver variable
`EthHandle.RxFrameInfos.length` contained value 0xFFFF FFFC.

As a work-around accept only 1-1500 bytes long ethernet packets.
2020-04-08 14:11:21 +03:00
Gavin Liu cfc63e3933 targets:MIMXRT1050: Add LPSPI4 support
Add LPSPI4 PIN configurations.

Signed-off-by: fred.li <fred.li@arm.com>
Signed-off-by: Gavin Liu <gang.liu@nxp.com>
2020-04-08 18:05:11 +08:00
Gavin Liu 40090c9bc9 targets:MIMXRT1050: Update link file for application
For the application(firmware) booted by bootloader(OTA),
the image doesn't need the "flash_config" and "ivt" header.
So update the link file to support both kinds of application
(firmware) booted by bootROM and bootloader.

In default, the compilation will get the image with
"flash_config" and "ivt" header, for example the bootloader
compiling.

When compiling the OTA application image, please add the
line as below in the mbed_app.json file.

	"target.macros_add" : ["MBED_APP_COMPILE"]

This will remove the "flash_config" and "ivt" header in the
final image.

Signed-off-by: Gavin Liu <gang.liu@nxp.com>
2020-04-08 17:01:07 +08:00
Gavin Liu 5d3b11baf1 targets:MIMXRT1050: Add QSPI Flash FLASHIAP support
Update the flash driver to support both Hyper Flash
and QSPI Flash.

In addition, the static function cannot be linked to
SRAM even defined by AT_QUICKACCESS_SECTION_CODE macro.
So remove all "static" modifier for the FLASHIAP
functions.

Signed-off-by: Gavin Liu <gang.liu@nxp.com>
2020-04-08 17:01:07 +08:00
Gavin Liu e84699bb65 targets:TARGET_IMX: Fix the memset issue for FLASHIAP
The memset function from c library will be linked in flash
space, it's risk for FLASHIAP. So I wrote flexspi_memset
to replace the memset for IMX FLASHIAP, and put the function
into targets/.../TARGET_IMX/flash_api.c file. All IMX Soc
platforms can declare it as extern and use in their Soc
flexspi driver files.

Signed-off-by: Gavin Liu <gang.liu@nxp.com>
2020-04-08 17:01:07 +08:00
Gavin Liu 5a01e3eee2 targets:TARGET_IMX: Fix the flash init risk
The flash access may fail when implementing flash
initialization. So there is risk for interrupt handler
which linked in flash space.

Add the critical section to avoid the risk.

Signed-off-by: Gavin Liu <gang.liu@nxp.com>
2020-04-08 17:01:07 +08:00
Gavin Liu 9f0206c90c targets:MIMXRT1050: Add QSPI Flash boot support
NXP MIMXRT1050 EVK can support Hyper Flash or QSPI Flash with
small hardware reworks. Modify the XIP file to support boot
from the two kinds of Flash device. The Hyper Flash should be
the default device and defined in tartgets.json with the macro
"HYPERFLASH_BOOT". To select the QSPI Flash, just remove the
macro with the below line in any overriding json file.
	"target.macros_remove" : ["HYPERFLASH_BOOT"]

Signed-off-by: Gavin Liu <gang.liu@nxp.com>
2020-04-08 17:01:07 +08:00
Martin Kojtal 067d7eb166
Merge pull request #12724 from RyoheiHagimoto/renesas_bl_515
RZ_A1H and GR_LYCHEE: Enable bootloader support (Mbed OS 5.15)
2020-04-08 10:05:44 +02:00
Martin Kojtal 82fc228bdf
Merge pull request #12717 from 0xc0170/fix_sleep_stm32f4
Add fix for STM32F4 hardfault in sleep mode
2020-04-08 08:57:57 +02:00
Martin Kojtal 9929ddd038
Merge pull request #12723 from AnttiKauppila/mbedtls_fixes5.15
Mbedtls fixes for 5.15.2
2020-04-08 08:57:12 +02:00
Martin Kojtal eaeb983a9e
Merge pull request #12650 from kivaisan/cellular_alt1250_mbedos_5_15
Cellular: ALT1250 PPP cellular driver for mbed-os 5.15
2020-04-08 08:56:30 +02:00
midd d55117f2aa WHD: Remove an assert from get_rssi()
This assert in WhdSTAInterface.cpp causes rssi greentea test to fail
on Cypress parts. This is because the rssi GT test expects the negative
test case to return 0 and not assert.
2020-04-07 12:25:18 -07:00
Darryl Green 65e91244fa crypto: Use updated ECC curve macros 2020-04-07 11:30:31 +01:00
Jaeden Amero 7ed3f9c998 crypto: Update the service for Mbed Crypto 3.x
Update Mbed OS's PSA Crypto service to work with Mbed Crypto 3.x.

- psa_asymmetric_verify() is now called psa_verify_hash().
- psa_asymmetric_sign() is now called psa_sign_hash().

Compatibilty wrappers are provided via crypto_compat.h for source-level
backwards compatibility.
2020-04-07 10:22:00 +01:00
Jaeden Amero 8eef39b8f1 crypto: Upgrade to Mbed Crypto 3.1.0 2020-04-07 10:11:16 +01:00
Jaeden Amero ec898fb1fa tls: Upgrade to Mbed TLS 2.20.0 2020-04-07 09:57:37 +01:00
Martin Kojtal e1d7b5a8cf
Merge pull request #12753 from kyle-cypress/pr/cypress-5.15-backport
Cypress: Backport PRs from 6.0 to 5.15.2
2020-04-07 10:49:20 +02:00
Martin Kojtal 41e1c2da5b
Merge pull request #12727 from ARMmbed/mergify/bp/mbed-os-5.15/pr-12693
USBMSD security updates (bp #12693)
2020-04-07 09:44:29 +02:00
Ryan Morse fa6bfb26eb Backport #12701: Custom BT Firmware for CYW9P62S1_43012EVB_01 2020-04-02 15:04:24 -07:00
Dustin Crossman 4e6692b529 Backport #12603: Add CYSBSYSKIT_01 2020-04-02 15:02:44 -07:00
midd be4dd8ee23 Backport #12492: Update psoc6cm0p to version 1.1.1.
This version is built with PSoC 6 Peripheral Driver Library (PDL) 1.4.1
2020-04-02 14:59:54 -07:00
Dustin Crossman ca47da6018 Backport #12422: Cypress Asset Update
- Update psoc6pdl to version 1.4.1.2240
- Update psoc6 core_lib to version 1.1.1.11109.
- Update psoc6hal to 1.1.1.11145.
- Store RTC century and RTC state information in persistent BREG register.
2020-04-02 14:58:48 -07:00
Dustin Crossman a15ed110a6 Backport #12421: Cypress target reorganization
- Remove CY8CMOD_062_4343W and merge into CY8CPROTO_062_4343W.
- Remove CY8CMOD_062S2_43012 and merge into CY8CKIT_062S2_43012.
- Remove CY8CMOD_062S3_4343W and merge into CY8CPROTO_062S3_4343W.
- Removed CY8CMODs from targets.json.
- Removed unnecessary PSOC6Code.complete post binary hook from cypress targets.
2020-04-02 14:56:36 -07:00
midd 8199e25f24 Backport #12394: Fix Cypress 1M SDIO + other minor bugs
- Remove wounding for the hardware CRYPTO block. The PSoC 6 MPN CYW9P62S1_43012EVB_01 was revised
  to add the hardware crypto block.
- Add missing error checks for emac power up.
- Add a multiplied by 2 in the SDIO clock divider calculation to account for internal UDB divider.
  Note: Fixes issues with intermittent WiFi firmware load failures on CY8CKIT_062_WIFI_BT,
  CYW943012P6EVB_01, CYW9P62S1_43012EVB_01, CYW9P62S1_43438EVB_01.
2020-04-02 14:49:22 -07:00
Shuopeng Deng a0ee701d83 Backport #12097: Cypress: Fix IAR Warnings
fix 'enumerated type mixed with another type' IAR warnings
fix 'statement is unreachable' IAR warning
2020-04-02 14:30:46 -07:00
YARB(Cypress) 738ec19183 Backport #12052: Fix for ARM issue 11859.
1. Clear UART events before enabling
2. Reset device before return from test case
2020-04-02 14:29:45 -07:00
YARB(Cypress) 63583ff6b1 Backport #12038: Remove qspi_frequency() call.
cy_qspi_frequency is not implemented.
This change is made because for compatibility
reason with upcoming cy_hal changes.
2020-04-02 14:28:02 -07:00
Shuopeng Deng 880af5d8ae Backport #12019: rework cypress lptimer hal
Changed set_match api to use an absolute ticks rather than delayed tick to match api name.
Added api set_delay to delay by a specific amount of ticks. Removed unused set_time api.
Simplified the logic for computing interrupts match value for cascading counters.
Fixed an issue when incorrect base time would be read when trying to set match values.
2020-04-02 14:27:32 -07:00
Kimmo Vaisanen d65b82da9d Cellular: ALT1250 PPP cellular driver for mbed-os 5.15
This commit introduces Altair ALT1250 PPP mode cellular driver for mbed-os 5.15 -branch.
2020-04-02 13:08:27 +03:00
Martin Kojtal 978db96468
Merge pull request #12485 from artokin/nanostack_for_mbedos_5_15_branch
Nanostack release for Mbed OS 5.15
2020-04-02 10:33:56 +02:00
Martin Kojtal 41273e3e22
Merge pull request #12653 from jarlamsa/differing_eusize-5_15
Fix issue when TDBStore has varying erase sizes between areas. (Backport)
2020-04-02 09:48:03 +02:00
Martin Kojtal c5c211388c
Merge pull request #12726 from artokin/stm32f4_sleep_solution
feature-wisun: Add fix for STM32F4 hardfault in sleep mode
2020-04-01 11:32:06 +02:00
RyoheiHagimoto 103faf9007 RZ_A1H and GR_LYCHEE: Enable bootloader support (Mbed OS 5.15) 2020-04-01 17:55:21 +09:00
Antti Kauppila 9c328114c5 Licence updated 2020-03-31 16:15:44 +03:00
Antti Kauppila 5bdc7314f4 more error handling added for ctr and hmac 2020-03-31 16:04:54 +03:00
Maciej Bocianski 95bb2a8e05 update USBMSD::memoryWrite implementation
Fix prevents unaligned USB transfers

(cherry picked from commit 1ffb4d7356)
2020-03-31 09:15:50 +00:00
Maciej Bocianski a277db1309 update USBMSD::memoryRead implementation
Fix protects underlaying block device from out-of-bound reads

(cherry picked from commit 89e67d3136)
2020-03-31 09:15:48 +00:00
Maciej Bocianski a0e35d2694 update USBMSD::infoTransfer implementation
Fix protects underlaying block device from out-of-bound read/writes
 - prevents the host from setting block device addres larger then block device size
 - prevents the host from setting wrong read/write lenght

(cherry picked from commit ac105f5a18)
2020-03-31 09:15:47 +00:00
Marcelo Salazar 1aa999ed0a Add workaround for F429 hardfault 2020-03-31 09:38:25 +03:00