Commit Graph

29516 Commits (8f490f6f24d3b2695a5e7b0a843e2bca64616550)

Author SHA1 Message Date
Kimmo Vaisanen a16a35246b Lora: Add driver implementation inside DEVICE_SPI flag
These drivers uses SPI to communicate with radio so SPI must be present
when compiling these.
2020-04-06 08:26:29 +03:00
Martin Kojtal b1ce678d30
Merge pull request #12728 from jeromecoutant/PR_ETHERNET_THREADSIZE
STM32 EMAC : increase thread-stacksize
2020-04-05 19:57:44 +02:00
Roman Okhrimenko e6084562b4 Add TARGET_CYESKIT_064B0S2_4343W to targets.json 2020-04-05 13:52:27 +03:00
Roman Okhrimenko bb53efcdbd Add TARGET_CYESKIT_064B0S2_4343W to list in flash_configs in TESTS 2020-04-05 13:52:27 +03:00
Roman Okhrimenko 70c9142647 Add wifi_nvram_image for TARGET_CYESKIT_064B0S2_4343W 2020-04-05 13:52:27 +03:00
Roman Okhrimenko 69d0721e30 Add BSP for CYESKIT_064B0S2_4343W 2020-04-05 13:52:27 +03:00
Roman Okhrimenko c7f7bec5f3 Temporarily change CY8CKIT_064B0S2_4343W board id to 190A, as actual kit is not available yet 2020-04-05 13:52:27 +03:00
Roman Okhrimenko d3813a318a Add latest prebuild hex file 2020-04-05 13:52:27 +03:00
Roman Okhrimenko c4e8f8d816 Comment out init_cycfg_system() to avoid HardFault before Secure Driver arrive 2020-04-05 13:52:27 +03:00
Roman Okhrimenko 89531b9163 Add essential file for peripheral pins definition 2020-04-05 13:52:27 +03:00
Roman Okhrimenko f2a3954d6e Update slot start address in linker scripts according to default multi image policy 2020-04-05 13:52:27 +03:00
Roman Okhrimenko 7d1a8cb517 Add mbed_app.json to configure secure boot params 2020-04-05 13:52:27 +03:00
Roman Okhrimenko 57d141d005 Update pre build hex with Release version, generated by CI 2020-04-05 13:52:27 +03:00
Roman Okhrimenko ae733ffc11 Add default secure boot params to targets.json, add option to post build to redefine them in mbed_app.json 2020-04-05 13:52:27 +03:00
Roman Okhrimenko 9294eee878 Add initial implementation of post build function, that uses cysecuretools 2020-04-05 13:52:26 +03:00
Roman Okhrimenko 5267ec3375 Add prebuilded hex file for secure cm0p application 2020-04-05 13:52:26 +03:00
Roman Okhrimenko a17bed366a Change policy to multi image, as one supported for es100 2020-04-05 13:52:26 +03:00
Dustin Crossman e873669b04 Added policy file and removed old secure tools config file. 2020-04-05 13:52:26 +03:00
Dustin Crossman f8c1c446f1 Add nvram image for CY8CKIT_064B0S2_4343W 2020-04-05 13:52:26 +03:00
Dustin Crossman b6c4fc6d23 Add CY8CKIT_064B0S2_4343W board. 2020-04-05 13:52:26 +03:00
Vikas Katariya 9b7ef82b40 psa: Init IPC, Mailbox and Non-secure Interface
These changes are for TFM_DUALCPU and TFM_V8M platforms.
The initialization happens after mbed-os kernel is kicked off and
when the thread is up and running.

We are initializing the following for TFM_DUALCPU platforms:
* IPC Interrupts for syncing multi-core platforms.
* NS Mailbox to receive messages.
* NS interface.

We are only initializing Non-secure interface for TFM_V8M platforms.

mbed_tfm_init() in tfm_mbed_boot.c overrides the WEAK mbed_tfm_init()
for a specific platform.

Signed-off-by: Vikas Katariya <vikas.katariya@arm.com>
2020-04-03 15:48:58 +01:00
Jaeden Amero c447278727 cypress: psoc64: Add TF-M compatibility
Make the CY8CKIT_064S2_4343W target TF-M compatible by addding flash and
region definitions from TF-M (at c4f37c18c4a0) and by updating the
CY8CKIT_064S2_4343W linker script to create a flash image compatible
with TF-M.

Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-04-03 15:48:58 +01:00
Devaraj Ranganna cc8cc5903a cypress: psoc64: Reserve timer channels used by TF-M
There are two timers, Timer0 and Timer1, available on the PSoC64. Timer0
has 8 channels and Timer1 has 24 channels. TF-M regression tests make
use of Timer0 Channel 0 and Timer0 Channel 1. Therefore, reserve the
timer channels used by TF-M. This approach can be replaced once we have
a way to allocate dedicated timers for TF-M and Mbed OS.

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
Signed-off-by: Vikas Katariya <vikas.katariya@arm.com>
2020-04-03 15:48:58 +01:00
Arto Kinnunen 14de0f054d Update astyle filtering rules
Enable astyle for:
-components/802.15.4
-features/nanostack/coap-service

Allow astyle formatting for sal-stack-nanostack, except:
-features/nanostack/sal-stack-nanostack/source/Service_Libs/mdns/fnet
2020-04-03 16:29:12 +03:00
Arto Kinnunen 64d879b540 Update Atmel 802.15.4 RF driver
Update to version v3.1.0.
2020-04-03 16:02:05 +03:00
Arto Kinnunen 78abc43c32 Update S2LP 802.15.4 RF driver
Update driver to version 1.0.2
2020-04-03 16:01:08 +03:00
Arto Kinnunen 185db1333e Squashed 'features/nanostack/sal-stack-nanostack/' changes from fb7413b846..89a497a386
89a497a386 Merge branch 'release_internal' into release_external
c8cc6601fd Merge pull request #2336 from ARMmbed/sync_with_mbedos
ac5f369d70 MBEDTLS_SSL_EXPORT_KEYS added to Nanostack's tls_sec_prot_lib
6522a086ef Added missing optimizations based on mbedtls/baremetal.h config
0e8739fae3 Added new global rng, needed for MbedTLS optimisations
d5db37eec8 Prepare for upcoming MbedTLS changes
4271a9dda9 Merge pull request #2335 from ARMmbed/sync_with_mbedos
e2db6ffefb Fixed error of function 'mac_fcf_lenght'
28fc2a9543 Fixed  error of structure
194e81beda Fixed  spelling mistake of structure
00ea3fb83c Remove test files
d7f7cc582a Merge branch 'release_internal' into release_external
132cd12107 Merge pull request #2333 from ARMmbed/sync_with_mbedos
550a78e544 Fix function spelling mistake in Thread
74c60242e1 Fix function spelling mistake in border_router.c
89830ecf1a Fix function spelling mistake in iphc_decompress.c
1728ae12dc Fix function spelling mistake in lowpan_context.c
ed5d253fcc Fix function spelling mistake in lowpan_context.h
ecbca0a2ed Fixed typo 'thead' in thread_neighbor_class.h
071911b30a Changed nanostack API network size to be a range of values
4756be4766 NEW API for Validation RX Unicast schedule channel.
0b48e5c018 Channel Mask update ,support for excluded Channels and FHSS API pdate
ead1ade5a7 Start sending PAS message after EAPOL parent TX fails.
8de473b245 Implemented 802.15.4 mode setting (#2328)
975b9e670b Added missing configuration api empty functions
f7db06eb1e Added configuration storage (#2283)
e9561f0fe4 Removed mbedTLS internal include file
fe812c3c1f Changed certificate error message wording to be less fatal
97aaf5f613 Add network property API to Nanostack (#2318)
cfd1a4d271 Fixed Route cost calculation
5094614813 Added opeation mode validation for detect unsupported values.
44f85aaf4b Enabled RPL candidate list filtering and only certificate setup accept without limit.
145c7399b3 Wi-sun address registration trigger update
d492575adb Modified ARO registrations timeouts from the address lifetime
b898f04b5b Removed Extra version number update at revocation start.
b9d14097e2 Wi-sun config message consustent filter
dcebff9bb5 Use RPL parent soft filtering only after bootstrap.
523593e014 Fixed Broken new channel mask update.
a3bcc2d2c8 Removed the PAN version change requirement from routers
bc919d8241 Merge pull request #2315 from ARMmbed/merge_release_internal_to_master

git-subtree-dir: features/nanostack/sal-stack-nanostack
git-subtree-split: 89a497a38603e6af4d053c539bd30931006080f2
2020-04-03 14:57:23 +03:00
Arto Kinnunen 6275f710bf Merge commit '185db1333ed41be03e3a565e0f0171cad90857a1'
* commit '185db1333ed41be03e3a565e0f0171cad90857a1':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from fb7413b846..89a497a386
2020-04-03 14:57:23 +03:00
Arto Kinnunen 54f3465e45 Merge commit '9cb63ab0e4b525c8d067ea94d7e4302203ba835a'
* commit '9cb63ab0e4b525c8d067ea94d7e4302203ba835a':
  Squashed 'features/nanostack/coap-service/' changes from e5e0c138e6..5aa54b8e62
2020-04-03 14:56:53 +03:00
Arto Kinnunen 9cb63ab0e4 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-03 14:51:33 +03:00
George Beckstein 6baab6cd33 Changed pin names in example to be more universal 2020-04-03 06:10:53 -04:00
Gavin Liu 288946a226 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-03 17:48:46 +08:00
Gavin Liu 1d1e69a4a2 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-03 17:46:55 +08:00
George Beckstein 2a2295c0b3 Fixed typo in target.json 2020-04-03 05:43:17 -04:00
Gavin Liu 2be0790c4a 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-03 17:41:34 +08:00
Gavin Liu f8a8401a13 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-03 17:41:07 +08:00
Gavin Liu b53d40b269 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-03 17:40:39 +08:00
George Beckstein 8b264fd821 Attmpted to fix astyle of I2CSlave example 🤞 2020-04-03 05:38:23 -04:00
George Beckstein d8727510e7 Remove unused internal state enum 2020-04-03 05:38:23 -04:00
George Beckstein 0dbc2606be Improved I2CSlave example with code for both Mbed master and slave to test with 2020-04-03 05:38:23 -04:00
George Beckstein 907ae1b67e Implement I2CSLAVE in the i2c_api for nRF52 targets 2020-04-03 05:38:21 -04:00
George Beckstein 85a17293d3 Enable I2CSLAVE for nRF52 targets 2020-04-03 05:01:22 -04:00
George Beckstein e1178be65e Applying changes to only specific targets for stop-gap. 2020-04-03 04:45:43 -04:00
George Beckstein 382a55487f Added object extensions configuration parameter to HAL 2020-04-03 04:38:21 -04:00
Martin Kojtal c8ab263388
Merge pull request #12701 from dustin-crossman/pr/custom-bt-firmware
Add custom BT Firmware image for CYW9P62S1_43012EVB_01
2020-04-03 09:09:46 +02:00
Martin Kojtal 8376303092
Merge pull request #12698 from hugueskamba/hk-remove-armc5-support-drivers
Drivers: Remove support for ARM Compiler 5
2020-04-03 09:00:49 +02:00
Martin Kojtal 5539d65017
Merge pull request #12638 from tymoteuszblochmobica/testall
Enable storage tests to all targets
2020-04-03 09:00:18 +02:00
Martin Kojtal 74ace63eaa
Merge pull request #12729 from AnttiKauppila/mbedtls_fixes
Mbedtls fixes
2020-04-03 08:59:14 +02:00
Martin Kojtal 548e1c6766
Merge pull request #12676 from LDong-Arm/ble_deprecation_cleanup
Remove deprecated BLE:: APIs and unsupported services
2020-04-03 08:36:38 +02:00
Volodymyr Medvid b61cf5bdd6 PSoC 62/63: set correct mbed_ram_start and mbed_ram_size
In case when target.mbed_ram_start and target.mbed_ram_size are not set
neither in targets.json nor in mbed_app.json, the IRAM1 region values
defined in tools/arm_pack_manager/index.json are passed by Mbed CLI as
the linker script preprocessing flags. As a result, wrong addresses of
MBED_RAM_START and MBED_RAM_SIZE are defined in the linker script since
CMSIS DFP pack has no information about RAM split between CM0+ and CM4 applications.

Set the values explicitly in targets.json to ensure the correct RAM layout.

The MBED_ROM_START and MBED_ROM_SIZE provided by CMSIS DFP are already
correct since the linker scripts places CM4 vector table at MBED_APP_START,
taking into account the flash application area of the CM0+ prebuilt application.
2020-04-02 17:44:37 +01:00