Commit Graph

119 Commits (9f48f26876d132de6a7f060c6fa85d82b674da8b)

Author SHA1 Message Date
Anna Bridge d99756324a
Merge pull request #10483 from vmedcy/pr/cy-system-psoc6
PSOC6: move mbed_sdk_init to mbed_overrides.c
2019-05-16 11:00:29 +01:00
Volodymyr Medvid 737c98ff8f PSOC6: simplify the mbed_sdk_init sequence 2019-05-03 16:54:23 +03:00
Ryan Morse a8570ffe6c Added support for QSPI to Cypress Boards 2019-05-01 07:09:58 -07:00
Volodymyr Medvid c98f91e375 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-04-23 14:44:56 +03:00
Martin Kojtal d2e9fde701
Merge pull request #10413 from kfnta/cy_rollup
Cypress PSoC6 rollup PR
2019-04-18 12:26:32 +01:00
Martin Kojtal fc12229df9
Merge pull request #10412 from lrusinowicz/flash_api_fix
FUTURE_SEQUANA: Fix flash_api bug introduced with e16d2d81d9
2019-04-18 08:20:31 +01:00
Leszek Rusinowicz ab8b573138 FUTURE_SEQUANA: Clean up "unused variable" compiler warnings
Clean up compiler warnings coming from PDL read-out of peripheral
interrupt status registers.
2019-04-16 16:59:53 +02:00
Leszek Rusinowicz f81fbab9f0 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-16 11:20:11 +02:00
Hennadiy Kytsun 2417392419 CY8CKIT_062_WIFI_BT_PSA: mention tools/psa/release.py in README 2019-04-16 11:50:48 +03:00
Hennadiy Kytsun 20a302db2e PSOC6: remove __attribute__((constructor)) from SystemInit 2019-04-16 11:50:47 +03:00
Hennadiy Kytsun 28113a23cc PSOC6: rebuild CY8CKIT_062_WIFI_BT_PSA prebuilt HEX files 2019-04-16 11:50:47 +03:00
Hennadiy Kytsun ef19fb6ebb PSOC6: add ARMC6 support (fix issue #9830)
Update PDL syslib driver to 2.30.
Update startup assembly and linker scripts.
2019-04-16 11:50:47 +03:00
Hennadiy Kytsun 248013aca8 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-16 11:50:46 +03:00
Hennadiy Kytsun ae716e2ab7 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-16 11:50:46 +03:00
Hennadiy Kytsun e8300553af PSOC6: update version of PDL IPC driver 2019-04-16 11:50:46 +03:00
Hennadiy Kytsun f45d701317 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-16 11:50:46 +03:00
Martin Kojtal ffe9ddfb2d
Merge pull request #10268 from cy-vivekp/pr/serial_rts
PSoC6 serial driver: Setup RTS and TX lines on deepsleep entry/exit
2019-04-10 12:23:11 +02:00
Leszek Rusinowicz e5d970d321 FUTURE SEQUANA: Fixed linker scripts for ARMC6
Also enabled ARMC6 compiler for FUTURE_SEQUANA family of targets.
2019-04-08 16:51:52 +02:00
Leszek Rusinowicz 48d12c39e5 FUTURE_SEQUANA: Fixed ARMC6 compiler errors and warnings 2019-04-08 16:50:20 +02:00
Leszek Rusinowicz 270f368bbd 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-08 16:31:17 +02:00
Martin Kojtal 0066ba9b0d
Merge pull request #10267 from cy-vivekp/pr/psoc_32_bit_lp_ticker
PSOC6: Modify lp_ticker to 32 bit
2019-04-03 11:13:25 +02:00
Leszek Rusinowicz f0e0e9f5cd 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-02 13:33:33 +02:00
Vivek Pallantla 96b6f99bee 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-03-28 18:01:00 -07:00
Vivek Pallantla 7799be6dad 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-03-28 16:21:59 -07:00
Cruz Monrreal 0395150bfb
Merge pull request #10074 from morser499/cy-mbed-os-5.12.0-pwm-free
Fixed issue with PWM not being freed when the object is destroyed
2019-03-27 00:21:54 -05:00
Ryan Morse 51a47139f3 Fixed issue with PWM not being freed when the object is destroyed 2019-03-21 07:48:42 -07:00
Martin Kojtal 0e37fc206c
Merge pull request #10097 from 0xc0170/rollup
Rollup PRs: simple fixes
2019-03-15 08:04:29 +01:00
Yossi Levy 0a5b355d9c Adding documentation for MBED_APP_START and MBED_APP_SIZE in TARGET_CY8C62XX and TARGET_CY8CKIT_062_BLE linker scripts 2019-03-14 14:26:23 +02:00
Yossi Levy dd27a3400b mbed-os to support bootlader for Cypress CY8CKIT_062_WIFI_BT_PSA and CY8CKIT_062_BLE 2019-03-14 14:26:23 +02:00
Oren Cohen 5d1dae40cd "Update secure binaries for CY8CKIT_062_WIFI_BT_M0_PSA" 2019-03-14 11:53:08 +02:00
Oren Cohen 4c9fe7def4
Finish memory protection and add static assert 2019-03-13 21:08:12 +02:00
Oleg Kapshii 2af3a82cd8 Removed PSoC6 SystemInit Workaround for ARM compiler 2019-03-12 17:00:13 -07:00
Evgeni c87d5d48c4 "Update secure binaries for CY8CKIT_062_WIFI_BT_M0_PSA" 2019-03-12 11:13:45 +02:00
Evgeni Bolotin 04c5803131 make protected secure flash region configurable and change secure and non secure default region sizes 2019-03-12 11:13:18 +02:00
Oren Cohen d6863d89e7 PSoC 6 Correct TRNG behaviour
* Remove NVSEED from M0_PSA
* Disable TRNG support for PSA M4
2019-03-10 16:16:53 +02:00
Martin Kojtal c609d63445
Merge pull request #10011 from lrusinowicz/cymetedata_remove
Removed cymetadata section from FUTURE_SEQUANA targets
2019-03-08 17:11:55 +01:00
Leszek Rusinowicz 17ed003bb8 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-08 12:57:34 +01:00
Kyle Kearney 4c1ff13e30 Rebuild PSoC6 secure binaries 2019-03-07 09:21:54 -08:00
Neil Tuttle 084a83717f Rename PSoC 6 assembler files from .s to .S 2019-03-07 08:40:20 -08:00
Neil Tuttle ac6a6b8d00 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-07 08:40:20 -08:00
Vivek Pallantla 0cce5d53b8 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-07 08:40:20 -08:00
Sergii Vozniak 69c5404662 Fixed type of STDIO UART initialization variable. 2019-03-07 08:40:20 -08:00
Oleg Kapshii aedec74b9a 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-07 08:40:20 -08:00
Cruz Monrreal 63242cfbb4
Merge pull request #9939 from kfnta/fix_for_secure_partition
Fix for secure partition
2019-03-06 20:00:38 -06:00
Cruz Monrreal f3ecc0b485
Merge pull request #9940 from davidsaada/david_psoc6_reduce_prog_size
Reduce flash page size from 512 to 32 bytes in PSOC6 based boards
2019-03-06 13:44:39 -06:00
David Saada 9cacd029ef 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-06 13:45:27 +02:00
Netanel Gonen 094f2a6b6e Update PSoC 6 pre-build secure partition 2019-03-05 15:12:09 +02: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