Commit Graph

24193 Commits (mbed-os-5.12)

Author SHA1 Message Date
Kevin Bracey 94bca9f516 Tools: Add "Cortex-M33E" option
There was a gap in our pattern - we didn't offer M33 with DSP Extension
but no floating-point.
2019-05-03 12:24:48 +01:00
Kevin Bracey ebab23ccef Correct some CPU selections in tools
* For ARMC6, core types `Cortex-M4` and `Cortex-M7` did not explicitly
  add `--fpu=none`, so it defaulted to assuming FPU present. This would
  cause a compilation error if the target's cmsis.h had `__FPU_PRESENT`
  defined to 0.

* For GCC, `Cortex-M33FE` did not include `+dsp` in the architecture
  selection.

* For ARMC5 and ARMC6, `Cortex-M0+` did not pass `M0plus` to the
  non-Clang tools.
2019-05-03 12:24:48 +01:00
ccli8 bd74b469b7 Fix heap init error in rtos-less code
In rtos-less code, heap is defined by assuming one-region. Through weak-reference to
ARM_LIB_HEAP, heap definition is fixed if ARM_LIB_HEAP is defined.
2019-05-03 12:24:48 +01:00
Deepika d7e53cdd7c Add missing boot stack size memory from heap calculation 2019-05-03 12:24:48 +01:00
Deepika f8367b4f7c Update linker script for using SRAM1 and SRAM2 in ARM To have the flexibilty in application; to use any of the section (data/bss/heap) without updating linker script in every use case, following decisions are made: 1. Fixed size and small sections moved to SRAM2 (32K) Vectors Crash data Remaining section - RW / ZI 2. Large memory space should be used for variable sections RW/ZI Heap - (Minimum - 0x12000) Stack - At bottom 2019-05-03 12:24:48 +01:00
Oren Cohen 0c71ca0a8f Refactor PSA code generators
* Unify PSA generators
* Replace scanning for mbed_spm templates with json
* Make generate_source_files and parse_manifests common
* Make assert_int an internal function
* Use parse_manifests in pytests
* Update docs
2019-05-03 12:24:48 +01:00
Anna Bridge cfa7938a4d
Merge pull request #10469 from ARMmbed/release-candidate
Release candidate for mbed-os-5.12.2
2019-04-26 11:49:10 +01:00
adbridge a3e7416ff4 "Update secure binaries for LPC55S69_S" 2019-04-24 16:07:31 +01:00
adbridge 51b9a094b9 Merge branch 'release-candidate' of github.com:ARMmbed/mbed-os into release-candidate 2019-04-24 15:32:09 +01:00
Anna Bridge 45c177647d
Merge pull request #10467 from kfnta/release-candidate
Fix TF-M import commits order
2019-04-24 15:31:41 +01:00
Oren Cohen a6b8f633a6 Update commit sha's 2019-04-24 17:25:51 +03:00
Michael Schwarcz e3cd9dbb0d TF-M patch: Fix tfm_memory_check issue (TF-M issue #224)
- Add Secure/non-secure code and secure heap to memory check
- Link to bug tracking: https://developer.trustedfirmware.org/T224
2019-04-24 17:25:47 +03:00
Michael Schwarcz fd50f967d3 TF-M patch: Fix wrong check in tfm_spm_check_client_version (TF-M issue #236)
- Link to bug tracking: https://developer.trustedfirmware.org/T236

(cherry picked from commit 008bf1b2d1)
2019-04-24 17:25:43 +03:00
Michael Schwarcz e4fbe203f1 TF-M patch: Fix tfm_psa_call_venner wrong argument type (TF-M issue #241)
- Link to bug tracking: https://developer.trustedfirmware.org/T241

(cherry picked from commit da01e3411f)
2019-04-24 17:25:40 +03:00
Michael Schwarcz 3915c544c2 TF-M patch: Fix fixed-size partitions stack size (TF-M issue #240)
- Link to bug tracking: https://developer.trustedfirmware.org/T240

(cherry picked from commit fc78640559)
2019-04-24 17:25:36 +03:00
Michael Schwarcz 82a8dc338a TF-M patch: Fix service handles not cleared issue (TF-M issue #230)
- Link to bug tracking: https://developer.trustedfirmware.org/T230

(cherry picked from commit 0c23e86989)
2019-04-24 17:25:32 +03:00
Michael Schwarcz fb2f96ca56 TF-M patch: General modifications
- Remove un-needed files
- Disable printf and uart
- Modify include paths
- Guard macros from mbed_lib with ifndef

(cherry picked from commit 1f30b52488)
(cherry picked from commit 71cd34df32)
2019-04-24 17:25:19 +03:00
Oren Cohen abd60fc341 [trusted-firmware-m]: Updated to 0101fd37
# Conflicts:
#	components/TARGET_PSA/TARGET_TFM/COMPONENT_NSPE/interface/src/tfm_ns_lock_rtx.c
2019-04-24 17:25:14 +03:00
Oren Cohen e53795189c Remove outdated patch 2019-04-24 17:24:34 +03:00
Oren Cohen 06f1a98326 Revert TF-M update PR 2019-04-24 17:20:10 +03:00
adbridge 2106e703e0 "Update secure binaries for FUTURE_SEQUANA_M0_PSA" 2019-04-24 14:21:53 +01:00
adbridge 0a5e610af5 "Update secure binaries for CY8CKIT_062_WIFI_BT_M0_PSA" 2019-04-24 14:09:26 +01:00
Lei Zhang 1e81845f85 PSOC6: Add WICED library build for ARMC6
- Also remove WICED library build for ARMC5
2019-04-24 13:53:18 +01:00
Hennadiy Kytsun 608a1f5400 CY8CKIT_062_WIFI_BT_PSA: mention tools/psa/release.py in README 2019-04-24 13:53:00 +01:00
Hennadiy Kytsun 81960509f2 PSOC6: remove __attribute__((constructor)) from SystemInit 2019-04-24 13:51:12 +01:00
Hennadiy Kytsun d9b0706163 FUTURE_SEQUANA: reuse supported_toolchains from TARGET_PSOC6 2019-04-24 13:50:58 +01:00
Hennadiy Kytsun 37e0c5ec8a PSOC6: add ARMC6 support (fix issue #9830)
Update PDL syslib driver to 2.30.
Update startup assembly and linker scripts.
2019-04-24 13:50:43 +01:00
Hennadiy Kytsun 2f29ce64d4 PSOC6: update version of PDL IPC driver 2019-04-24 13:50:31 +01:00
Hennadiy Kytsun d36b6708df PSOC6: update version of PDL flash driver
Flash driver 3.30:
Moved ipcWaitMessageStc structure to the RAM section called ".cy_sharedmem"
Added support Secure Boot devices
Moved CY_FLASH_EFFECTIVE_PAGE_SIZE to flash_api.c (the macro is Mbed specific).
2019-04-24 13:50:19 +01:00
Hennadiy Kytsun f96ae8b0c3 PSOC6: remove custom IPC configuration for PSA
* Update PDL startup driver to version 2.40
* Update linker scripts and startup assembly
* Remove custom IPC configuration from PSA initialization:
  use default IPC configuration provided by low-level startup code.
2019-04-24 13:50:06 +01:00
Hennadiy Kytsun cec01fd14b PSoC6: Remove TARGET_CY8C62XX CSP directory
GeneratedSource folders are BSP specific. No parts of the kit BSP can be reused
as generic chip support package. Remove TARGET_CY8C62XX directory,
and use flat BSP inheritance model:

MCU_PSOC6 -> MCU_PSOC6_M4 -> CY8CKIT_062_WIFI_BT
MCU_PSOC6 -> MCU_PSOC6_M0 -> CY8CKIT_062_WIFI_BT_M0
2019-04-24 13:49:54 +01:00
Oren Cohen 60aabaee8e Update commit sha's 2019-04-24 13:49:38 +01:00
Oren Cohen c84329a1c5 [trusted-firmware-m]: Updated to 0101fd37 2019-04-24 13:49:17 +01:00
Oren Cohen 39c1f6bfa0 Remove outdated patch 2019-04-24 13:48:02 +01:00
Michael Schwarcz 2fbbf5c326 TF-M patch: Fix tfm_ns_lock_init issue (TF-M issue #239)
- Link to bug tracking: https://developer.trustedfirmware.org/T239

(cherry picked from commit 5f2e4b3911)
2019-04-24 13:46:36 +01:00
Michael Schwarcz ce722f1253 TF-M patch: General modifications
- Remove un-needed files
- Disable printf and uart
- Modify include paths
- Guard macros from mbed_lib with ifndef

(cherry picked from commit 1f30b52488)
(cherry picked from commit 71cd34df32)
2019-04-24 13:44:46 +01:00
adbridge a4562e2009 Update Mbed version block 2019-04-24 13:39:20 +01:00
Mirela Chirica 651e4e2641 Cellular: Added BG96 handling for socket closing URC 2019-04-24 13:37:42 +01:00
Amanda Butler 5dfd29f177 Fix typos in BusInOut.h
Fix typos.
2019-04-24 13:37:42 +01:00
samgrove 76453bfd81 Update comments and improve readability for the BusInOut class 2019-04-24 13:37:42 +01:00
Kevin Bracey 2c67592432 Atmel SAMG55: Cortex-M4 -> Cortex-M4F
SAMG55 has FPU - change core in targets.json to use it.
2019-04-24 13:37:42 +01:00
Kevin Bracey adb07ef8d4 ARM MPS2: Cortex-M4 -> M4F & M7 -> M7FD
According to their cmsis.h, FPU is present, so change targets.json to
use it.

* ARM_MPS2_M4: already was Cortex-M4F
* ARM_MPS2_M7: Cortex-M7 -> M7FD
* FVP_MPS2_M4: Cortex-M4 -> M4F
* FVP_MPS2_M7: Cortex-M7 -> M7FD

If they do not in fact have FPU, then cmsis.h should be modified to set
`__FPU_PRESENT` to 0. This will currently cause compilation problems
with ARMC6, but I'll be submitting a fix for that.
2019-04-24 13:37:42 +01:00
j3hill 0663378d96 Update CMSIS pack manager to properly handle OSError 2019-04-24 13:37:42 +01:00
Kevin Bracey c5bfb6afc2 Networking: Fix some ARMC6 warnings
Some int-versus-long and signed-versus-unsigned format string
mismatches, and missing `class` keyword.
2019-04-24 13:37:42 +01:00
Deepika 96c0d8fb64 uARM - Move heap region after IRAM1
ARM_LIB_HEAP start is aligned to IRAM1 end, hence should be placed next to
RW_IRAM1 i.e. no other region in between.
2019-04-24 13:37:42 +01:00
Brian Daniels 42b1d7f28a Fixing default algorithms in cmsis pack index 2019-04-24 13:37:42 +01:00
Kevin Bracey ebc5e7ba17 i.MX RT1050: Reactivate data cache
Since commit 12c6b1bd8, the i.MX RT1050 has effectively had its data
cache disabled, as the SDRAM was marked Shareable; for the Cortex-M7,
shareable memory is not cached.

This was done to make the Ethernet driver work without any cache
maintenance code. This commit adds cache maintenance and memory barriers
to the Ethernet driver, and removes the Shareable attribute from the
SDRAM, so the data cache is used again.

Cache code in the base fsl_enet.c driver has not been activated - the
bulk of it is in higher-level Read and Write calls that we're not using,
and there is one flawed invalidate in its initialisation. Instead
imx_emac.cpp takes full cache responsibility.

This commit also marks the SDRAM as read/write-allocate. As the
Cortex-M7 has its "Dynamic read allocate mode" to automatically switch
back to read-allocate in cases where write allocate is working poorly
(eg large memset), this should result in a performance boost with no
downside.

Activating write-allocate is also an attempt to provoke any flaws in
cache maintenance - the Ethernet transmit buffers for example will be
more likely to have a little data in the cache that needs cleaning.
2019-04-24 13:37:42 +01:00
Michal Paszta 6d3c973040 ESP8266: Timeout if chip keeps returning errors
The ESP chip returns timeout, but keeps trying to connect, so we want to
keep track of time ourselves, instead of relying on the chip's timeout.
This fixes failing WIFI-CONNECT-SECURE-FAIL test.
2019-04-24 13:37:42 +01:00
Michal Paszta b3ef3db637 Perform disconnection regardless of the IP address 2019-04-24 13:37:42 +01:00
Leszek Rusinowicz 5118cdf887 FUTURE_SEQUANA: Fix flash_api bug introduced with e16d2d81d9
PDL Flash API requires that the data buffer is 32-bit aligned, otherwise
programming can hung. Buffer declared as uint8_t array is not always
properly aligned, e.g. with gcc 6 when -Os option is used.
2019-04-24 13:37:42 +01:00