Commit Graph

118 Commits (mbed-os-5.12.4)

Author SHA1 Message Date
Volodymyr Medvid 6030b1411e PSOC6: simplify the mbed_sdk_init sequence 2019-05-17 15:38:41 +01:00
Volodymyr Medvid 27d3b1e766 PSOC6: move mbed_sdk_init to mbed_overrides.c
Purposes:
* Remove MbedOS-specific code from system_psoc6_{cm4,cm0plus}.c
  to simplify updates to new PDL version (startup code is part of PDL).
* Unify mbed_sdk_init initialization sequence for both CPU cores.
  This change is non-functional, sequence itself is not changed for any
  of the PSoC 6 M4/M0 PSA/non-PSA targets.
2019-05-17 15:38:41 +01:00
adbridge 58d300053b "Update secure binaries for FUTURE_SEQUANA_M0_PSA" 2019-05-03 13:59:29 +01:00
adbridge 6c45c5f978 "Update secure binaries for CY8CKIT_062_WIFI_BT_M0_PSA" 2019-05-03 13:26:11 +01:00
Ryan Morse 697b46ca4a Added support for QSPI to Cypress Boards 2019-05-03 12:24:48 +01: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
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 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
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
Leszek Rusinowicz 186dcaac54 FUTURE_SEQUANA: Clean up "unused variable" compiler warnings
Clean up compiler warnings coming from PDL read-out of peripheral
interrupt status registers.
2019-04-24 13:37:42 +01:00
Vivek Pallantla 22f3eddb10 PSoC uart: Setup RTS and TX lines in deepsleep
When PSoC enters deepsleep, in uart driver
  - deassert RTS, set RTS to output high
  - set TX to output high
2019-04-24 13:37:42 +01:00
Leszek Rusinowicz 87c50f245d FUTURE SEQUANA: Fixed linker scripts for ARMC6
Also enabled ARMC6 compiler for FUTURE_SEQUANA family of targets.
2019-04-24 13:37:42 +01:00
Leszek Rusinowicz 3a149aa3a4 FUTURE_SEQUANA: Fixed ARMC6 compiler errors and warnings 2019-04-24 13:37:42 +01:00
Leszek Rusinowicz 492ead2fdb FUTURE_SEQUANA: Flatten PDL library paths
This change moves all PDL drivers into common source and include
directories to alleviate issue with Windows version of GNU Make 4.x
maximum command line length limit.
2019-04-24 13:37:42 +01:00
adbridge 3aca6d8ae5 "Update secure binaries for FUTURE_SEQUANA_M0_PSA" 2019-04-05 16:33:23 +01:00
adbridge 4af9124e36 "Update secure binaries for CY8CKIT_062_WIFI_BT_M0_PSA" 2019-04-05 16:19:34 +01:00
Leszek Rusinowicz 60b1413be2 FUTURE_SEQUANA: Fixed LP ticker for M0 core
Fixed interrupt vector settings on M0 core. Wrong vector settings prevented
LP_TICKER from working, resulting in deep sleep tests failing on M0
or PSA variant.
2019-04-05 12:47:01 +01:00
Vivek Pallantla c5a1ea3b6b PSOC: Modify lp_ticker to 32 bit
Needed for PSoC to deep-sleep for more than 2 seconds
Max sleep with 16 bit lp_ticker (before this change) : 2sec
Max sleep with 32 bit lp_ticker (after this change)  : 36hours
2019-04-05 12:27:00 +01:00
Ryan Morse 9b9125a7f1 Fixed issue with PWM not being freed when the object is destroyed 2019-04-05 12:26:24 +01:00
Oleg Kapshii 203b3a65d8 Removed PSoC6 SystemInit Workaround for ARM compiler 2019-04-05 12:26:09 +01:00
Alexander Zilberkant d99f82a557 "Update secure binaries for FUTURE_SEQUANA_M0_PSA" 2019-03-19 17:28:47 +02:00
Alexander Zilberkant 322e901bf7 "Update secure binaries for CY8CKIT_062_WIFI_BT_M0_PSA" 2019-03-19 17:27:41 +02:00
Yossi Levy 2ac05a0ec0 Adding documentation for MBED_APP_START and MBED_APP_SIZE in TARGET_CY8C62XX and TARGET_CY8CKIT_062_BLE linker scripts 2019-03-19 13:12:17 +00:00
Yossi Levy f05f3ec7a4 mbed-os to support bootlader for Cypress CY8CKIT_062_WIFI_BT_PSA and CY8CKIT_062_BLE 2019-03-19 13:12:16 +00:00
Oren Cohen cd2d1bde36 "Update secure binaries for CY8CKIT_062_WIFI_BT_M0_PSA" 2019-03-19 13:12:16 +00:00
Oren Cohen 86d030dbaa Finish memory protection and add static assert 2019-03-19 13:11:58 +00:00
Evgeni 51818e4d10 "Update secure binaries for CY8CKIT_062_WIFI_BT_M0_PSA" 2019-03-19 13:11:57 +00:00
Evgeni Bolotin 21f81cca20 make protected secure flash region configurable and change secure and non secure default region sizes 2019-03-19 12:59:08 +00:00
Cruz Monrreal II 8c216f85d7 "Update secure binaries for FUTURE_SEQUANA_M0_PSA" 2019-03-12 10:46:04 -05:00
Cruz Monrreal II 9210b34815 "Update secure binaries for CY8CKIT_062_WIFI_BT_M0_PSA" 2019-03-12 10:39:54 -05:00
Oren Cohen 422bf25520 PSoC 6 Correct TRNG behaviour
* Remove NVSEED from M0_PSA
* Disable TRNG support for PSA M4
2019-03-12 10:06:40 -05:00
Leszek Rusinowicz 4276779456 Removed cymetadata section from FUTURE_SEQUANA targets
This data, placed at physically not existing addresses (0x9xxxxxxx) was used
only by PSoC Programmer and KitProg2 and is no longer needed, but was causing
issues with standard hex file processing tools like srecord (srec_cat).
2019-03-12 10:06:37 -05:00
Kyle Kearney 7aa52087af Rebuild PSoC6 secure binaries 2019-03-12 10:06:33 -05:00
Neil Tuttle b2105b1879 Rename PSoC 6 assembler files from .s to .S 2019-03-12 10:06:33 -05:00
Neil Tuttle d29baa0125 TARGET_PSOC6: Fix incorrect serial clock divider
If the board-specific initialization code configures the serial port to
use an 8-bit divider, the serial_init_clock function would configure the
16-bit divider with the same index instead of the intended 8-bit
divider.
2019-03-12 10:06:33 -05:00
Vivek Pallantla 69e8b735b0 PSOC6 deep-sleep changes
- Enable add MBED_TICKLESS in targets/targets.json
 - BLE : deep-sleep aware HCI transport driver
 - WIFI: deep-sleep aware driver
 - Rebuild WICED libraries with Low Power changes
2019-03-12 10:06:33 -05:00
Sergii Vozniak 42f9c86327 Fixed type of STDIO UART initialization variable. 2019-03-12 10:06:32 -05:00
Oleg Kapshii 78a0057858 Added support for PSA target to WIFI_BT board
Added WiFi_Bt CM4 PSA target in mbedos json
Added SPE-NSPE mailbox initialization for CM4 SystemInit
Made similar to FUTURE_SEQUANA configurations
Copied FUTURE_SEQUANA CM0 SPM part for WiFi_Bt smoke test
Added CY8CKIT_062_WIFI_BT_M0 and CY8CKIT_062_WIFI_BT_M0_PSA targets
Sorted files for new CY8CKIT_062_WIFI_BT_M0 and CY8CKIT_062_WIFI_BT_M0_PSA targets
Copied files for CY8CKIT_062_WIFI_BT_M0_PSA from FUTURE_SEQUANA
Copied and updated cm0p start files
Corrected according to FUTURE_SEQUANA
Changes to M0 startup files to have SPM started
Fixed implicit declaration warning
Commented interrupts enabling according to FUTURE_SEQUANA flow
Updated prebuild spm_smore CM0 hex for CM4 target
Turned on greentea environment
Used special memory region for common CM0/CM4 data
Updated prebuild CM0 SPM hex
Placed shared memory region for flash operations into SPM shared memory region
Updated cyprotection code and configuration
Start address of protected regions is set by a defined number from target.json
Added masters pcMask configuration
Added support for PSA target to WIFI_BT board
Enabled resources protection for SPM
Aligned RAM usage according to Cypress FlashBoot and CyBootloader
alligned protection config
Added CYW943012P6EVB_01_M0 target
Enlarged heap size, remobed nv_seed
Added heap reservation in linker script from mbed-os
Removed heap size definition
turned on nv_seed config
Removed nv_seed macros
Enabled protection for PSoC6 CM0
Added PSoC6 CM0 PSA readme
Enabled mbed_hal-spm test
Enabled nv_seed and removed unneeded ipc config define
Added SPDX string to feature_ble cypress target files
Removed unneeded supported_toolchains lines for Cypress targets
Disabled protection settings
Corrected flash initialization for PSoC6 CM0 PSA
Changed PSoC6 IPC6 protection for flash
Enabled special flash initialization and enabled protection settings
Updated and added new prebuild PSoC6 CM0 PSA hex files
Disabled HW TRNG and CRC for PSoC6 CM4 PSA target
Added missing const to allow types to match
Updated PSoC6 WIFI_BT_PSA prebuilt directory
Moved PSoC6 shared section usage area definition to begin of ld
Added initial ARM_STD linker and startup files for PSoC6 CM0
Added initial IAR linker and startup files for PSoC6 CM0
Added defines to disable some SPM protection settings for PSoC64
Moved Flash function variables into separate memory region
Added defines for new Public area definition
Updated PSoC6 CM0_PSA hex-files
2019-03-12 10:06:32 -05:00
Netanel Gonen 6556f9483e Update PSoC 6 pre-build secure partition 2019-03-12 10:06:29 -05:00
David Saada e16d2d81d9 Reduce flash page size from 512 to 32 bytes in PSOC6 based boards
Page size in all PSOC6 boards is 512 bytes. This is very problematic in
all storage applications. This change reduces the page size (in flash_api's
flash_program_page API) to 32 by reading the original page, modifying it
with programmed data and programming it back. The number 32 for page size
conforms to the number of times (16) this action can be done.
2019-03-12 10:06:28 -05:00
Oren Cohen cfb60ec955 Fixes
* Add #include <stddef.h> to psa/client.h
* Add Attestation service to TFM
* Update FUTURE_SEQUANA_PSA secure binaries
* Remove MBED_SPM from K64F
* Refactor psa_manifest/sid.h
* Increase stackl size in spm-client tests
* Add handling of errors from psa_get in partitions
2019-03-03 13:30:58 +02:00
Michael Schwarcz 6341d44591 Update FUTURE_SEQUANA_M0_PSA default binaries 2019-03-03 10:55:47 +02:00
itayzafrir 02f5918013 Update pre-built hex file for secure side tests 2019-02-28 10:29:53 +02:00
itayzafrir 4764b5505c Add pre-built hex file for secure side tests 2019-02-27 16:28:36 +02:00