Commit Graph

5295 Commits (mbed-os-5.13.1)

Author SHA1 Message Date
Ganesh Ramachandran a43e157d8d ARMC5 updated to ARM for TMPM4G9 2019-07-11 11:40:55 +01:00
Ganesh Ramachandran 1b010a3fee Added SPDX identifier 2019-07-11 11:40:55 +01:00
Ganesh Ramachandran 7a9145f8e9 Added new features to TMPM4G9 2019-07-11 11:40:55 +01:00
Tymoteusz Bloch f7fced62a6 IAR icf linker scripts modified to use dynamic heap allocation of all available memory. 2019-07-11 11:40:54 +01:00
George Beckstein a2e382124a Apply same resolution fix to nRF52832 targets 2019-07-11 11:40:54 +01:00
George Beckstein 634b10b864 Fix SAADC resolution set in sdk_config. analogin_read_u16 assumes 12-bit range but config was set to 10 bit range causing incorrect readings to be returned. 2019-07-11 11:40:54 +01:00
Qinghao Shi 50077fb38a FastModel: change Fastmodel memory layout regions from 3 to 2
- change memoryzones.h
 - change linker scripts for each toolchains
2019-07-11 11:40:54 +01:00
Qinghao Shi 1d98d2adc2 FastModel: enable FLASHIAP componment 2019-07-11 11:40:54 +01:00
Laurent Meunier a424c4c7b2 STM32 with low level ticker wrapper require Extra Idle stack 2019-07-11 11:40:54 +01:00
Laurent Meunier 06e23fbde3 STM32: lp_ticker optim: initialize handle once only 2019-07-11 11:40:54 +01:00
Laurent Meunier 95fc693c9d STM32: lp_ticker optim: remove irq_handler variable 2019-07-11 11:40:54 +01:00
Laurent Meunier c279c97404 Update comments and fix typo 2019-07-11 11:40:54 +01:00
Laurent Meunier 16f2f0b1d3 Update warning now that C++ wrapper is not needed anymore
Now we'd rather not use this wrapper and use instead the low level
wrapper implemented in this driver.
2019-07-11 11:40:54 +01:00
Laurent Meunier f3f3ac47a0 STM32 targets: remove tickless from us ticker and delay ticker
For L0/L4/H7/F7/WB targets that have tickless enabled, remove the tickless from
us ticker and the delay ticks as the C++ wrapper layer is being removed
and replaced by the low layer handling.

For now, the few F4 targets with LPTIM are left with previous configuration
as test results are showing a few instabilities not yet understood.
2019-07-11 11:40:54 +01:00
Laurent Meunier deab60901c Manage lp_ticker delay at low level
LP TICKER mbed-os wrapper needs to be disabled as it introduces too much latencies.

LP TICKER wrapper has been disabled and we need to managed the HW constraints at low level:
- main HW constraint is that once the comparator has been programmed once,
driver cannot program it again before CMPOK HW flag is set, which takes about 3 30us cycles.

To make it even more complex, the driver also needs to cope with "LP ticker workaround"

See commit:

LP ticker workaround

    There is an errata in LPTIM specification that explains that CMP Flag
    condition is not an exact match (COUNTER = MATCH) but rather a
    comparison (COUNTER >= MATCH).

Also the disable interrupt is more complete now:
- always check sleep manager status and restore it
- remove irq_handler as comparator is always programed and might get called
eventually when LP TICK is restarted
- reset delayed_prog

Also in set_interrupt, make sure interrupt does not fire early.
If needed, we decide to slightly delay the tick to cope with the HW limitation to
make sure it will fire as soon as HW is capable.

Functions are called under critical section as they may be called from
the IRQ handler now, not only from driver layer.
2019-07-11 11:40:54 +01:00
Laurent Meunier c4073fccd5 LP ticker workaround
There is an errata in LPTIM specification that explains that CMP Flag
condition is not an exact match (COUNTER = MATCH) but rather a
comparison (COUNTER >= MATCH).

As a consequence the interrupt is firing early than expected when
programing a timestamp after the 0xFFFF wrap-around.

In order to
work-around this issue, we implement the below work-around.
In case timestamp is after the work-around, let's decide to program the
CMP value to 0xFFFF, which is the wrap-around value. There would anyway be
a wake-up at the time of wrap-around to let the OS update the system time.
When the wrap-around interrupt happen, OS will check the current time and
program again the timestamp to the proper value.
2019-07-11 11:40:54 +01:00
Mahesh Mahadevan 24efeb84fe Kinetis MCUXpresso: Update the clock drivers
Updated driver includes
1. Bug fixes
2. Formatting updates.
3. Fix for warnings
4. Better code commenting

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-07-11 11:40:54 +01:00
Kevin Bracey d65a7d36dc STM: Correct macro test in us_ticker_defines.h
Avoids build warning caused by #10609
2019-07-11 11:40:54 +01:00
Mathias Brossard 19babe2178 LPC55S69: fix cosFactor data size in header file
The file 'fsl_powerquad_data.h' declares several dctXXX_cosFactor
arrays with sizes twice larger compared to the actual definitions in
'fsl_powerquad_data.c'.
2019-07-11 11:40:54 +01:00
jeromecoutant dc6441bfc8 NUCLEO_H743ZI2 new target support 2019-07-11 11:40:54 +01:00
Malavika Sajikumar 4251b8cf5e Removing I2C and SPI pin names in SDP-K1 PinNames.h file. This is to ensure the use of Arduino pin names Dxx for I2C and SPI pins in programs written for SDP-K1 board. 2019-07-11 11:40:54 +01:00
George Beckstein f160dd5e90 Fix alignment 2019-07-11 11:40:54 +01:00
George Beckstein 6b539e99bc Fixed bug causing Nordic drivers to use a different critical section API from Mbed. This caused conflicts when Nordic's critical section API would globally reenable interrupts while Mbed still expected to be in a critical section. 2019-07-11 11:40:54 +01:00
Kevin Bracey 77877614b8 STM: optimize us_ticker
Provide new optimizations for us_ticker and wait_us.
2019-07-11 11:40:54 +01:00
Kevin Bracey 49b98a5b2a Freescale MCUXpresso: optimize us_ticker
Provide new optimizations for us_ticker and wait_us.
2019-07-11 11:40:54 +01:00
Kevin Bracey 0d12800b9f wait_us optimization
As the timer code became more generic, coping with initialization on
demand, and variable width and speed us_ticker_api implementations,
wait_us has gradually gotten slower and slower.

Some platforms have reportedly seen overhead of wait_us() increase from
10µs to 30µs. These changes should fully reverse that drop, and even
make it better than ever.

Add fast paths for platforms that provide compile-time information about
us_ticker. Speed and code size is improved further if:

* Timer has >= 2^32 microsecond range, or better still is 32-bit 1MHz.
* Platform implements us_ticker_read() as a macro
* Timer is initialised at boot, rather than first use

The latter initialisation option is the default for STM, as this has
always been the case.
2019-07-11 11:40:54 +01:00
Alexandre Bourdiol 22a8e19ebe STM32: pwmout_write: configure channel only when not already enabled
Fix PWM glitch on write(), TARGET_STM/pwmout_api.c, #10734
2019-07-11 11:40:53 +01:00
Hugues Kamba 6576bbba93 bootloader: Fix LPC55S69 bootloader segmentation
As the build tool in mbed-os 5.13 cannot appropriately deal with a segmented
bootloader when combining it with an application, this commit adjusts the
size reserved for interrupts (via the linker file) to avoid a bootloader
segmentation due to an unpopulated ROM area.

The microcontroller has a total of 60 vector interrupts + 16 exception
handlers. The allocated ROM flash for interrupts should be (60 + 16) x word
size in bytes = 76 x 4 = 304 = 0x130.

This commit changes the interrupt reserved space from 0x140 to 0x130.
2019-07-11 11:40:53 +01:00
Devaraj Ranganna c802042952 Remove MBEDTLS_PSA_CRYPTO_C from PSA NS targets
Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2019-07-11 11:40:53 +01:00
Devaraj Ranganna 9bd8925042 1. Include MBEDTLS_CONFIG_FILE before evaluating MBEDTLS_PSA_CRYPTO_C 2. Remove macro MBEDTLS_PSA_CRYPTO_C from PSA targets
Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2019-07-11 11:40:53 +01:00
Filip Jagodzinski 742fff4f5b K82F: Fix serial IRQ handling
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-07-11 11:40:53 +01:00
Filip Jagodzinski 206cc999e6 KL27Z: Fix serial IRQ handling
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-07-11 11:40:53 +01:00
Filip Jagodzinski 4799f3de6b K66F: Fix serial IRQ handling
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-07-11 11:40:53 +01:00
Filip Jagodzinski ad48edbda0 KL43Z: Fix serial IRQ handling
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-07-11 11:40:53 +01:00
Filip Jagodzinski 73f4e0306e KL82Z: Fix serial IRQ handling
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-07-11 11:40:53 +01:00
Filip Jagodzinski 66cf982b2c KW24D: Fix serial IRQ handling
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-07-11 11:40:53 +01:00
Filip Jagodzinski 0ab31ca416 KW41Z: Fix serial IRQ handling
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-07-11 11:40:53 +01:00
Filip Jagodzinski cde58d2a65 K24F: Fix serial IRQ handling
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-07-11 11:40:53 +01:00
Filip Jagodzinski d184baf6e9 K22F: Fix serial IRQ handling
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-07-11 11:40:53 +01:00
Filip Jagodzinski 9a4db66bf5 STM32WB: Fix serial IRQ handling
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-07-11 11:40:53 +01:00
Filip Jagodzinski 9c1664f21e STM32L4: Fix serial IRQ handling
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-07-11 11:40:53 +01:00
Filip Jagodzinski 69582c3eed STM32H7: Fix serial IRQ handling
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-07-11 11:40:53 +01:00
Filip Jagodzinski 3bc4f9599f STM32F3: Fix serial IRQ handling
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-07-11 11:40:53 +01:00
Filip Jagodzinski b006fe2a31 STM32L0: Fix serial IRQ handling
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-07-11 11:40:53 +01:00
Filip Jagodzinski 92b43947c8 STM32F0: Fix serial IRQ handling
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-07-11 11:40:53 +01:00
Filip Jagodzinski a6dd6f0bde STM32F7: Fix serial IRQ handling
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-07-11 11:40:53 +01:00
Filip Jagodzinski f158ac0077 K64F: Fix serial IRQ handling
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-07-11 11:40:53 +01:00
jeromecoutant ad3b345aa4 STM32: enable CRC for all L0/L4/F7 2019-07-11 11:40:53 +01:00
Maciej Bocianski 121f28da0f HAL I2C: adds missing DEVICE_I2C guards 2019-07-11 11:40:53 +01:00
Qinghao Shi bb726b3be6 modify targets.json to trun off MPU 2019-07-11 11:40:52 +01:00
Qinghao Shi 9745d04d5f correct CMSDK for M0Plus due to MPU is not presented 2019-07-11 11:40:52 +01:00
d-kato d88af0e69d Fix bugs by optimization 2019-07-11 11:40:52 +01:00
Volodymyr Medvid 3bc1d20bc4 PSOC6: add SOFTFP to standard component list
This allows Cypress to deliver middleware libraries with
precompiled libraries for SoftFP ahd HardFP, separated by
component-specific sub-directories:

COMPONENT_SOFTFP/TOOLCHAIN_GCC_ARM/libcy_capsense.a
COMPONENT_HARDFP/TOOLCHAIN_GCC_ARM/libcy_capsense.a
2019-07-11 11:40:52 +01:00
Chun-Chieh Li f62010d026 Override wait_ns to provide more accurate implementation
At high HCLK rate, M2351 cannot provide zero-wait-state flash performance. Besides,
cache is forcibly turned off for non-secure land for internal reason. We locate
'delay_loop_code' from flash to SRAM to achieve zero-wait-state performance.
2019-07-11 11:40:52 +01:00
aglass0fmilk 689e6877ee Added spdx identifiers and fixed indentation in targets.json 2019-07-11 11:40:52 +01:00
George Beckstein b2193628e2 Removing systick edit from sdk_config.h 2019-07-11 11:40:52 +01:00
George Beckstein 1da7dedd7d Disabling systick 2019-07-11 11:40:52 +01:00
George Beckstein 1ba6d4d417 Revert adding USB to STM32F407VG target 2019-07-11 11:40:52 +01:00
George Beckstein 75cb07ad4f Changed formatting, check if endpoint is stalled in unstall. Added errata header 2019-07-11 11:40:52 +01:00
George Beckstein 8b1d8dab0e Finished compatibility changes for nrfx renaming 2019-07-11 11:40:52 +01:00
George Beckstein 75a799d817 Fixing compatibilities with new nrfx drivers 2019-07-11 11:40:52 +01:00
George Beckstein 2209d06ff8 Added EP0 stalls to setup event handler 2019-07-11 11:40:51 +01:00
George Beckstein f92f8df3d8 Configured sdk for enabling USB. Preliminary implementation of USB for nRF52840 2019-07-11 11:40:51 +01:00
Qinghao Shi 79950803f9 fix IAR compile error on fastmodels 2019-07-11 11:40:51 +01:00
Vincent Veron 843ed2ff37 TARGET_STM: SPI: update pull up config depending on clk polarity
Fix #10589

Signed-off-by: Vincent Veron <vincent.veron@st.com>
2019-07-11 11:40:51 +01:00
Chun-Chieh Li e39e23fca1 Fix channel release in analogout_free() 2019-07-11 11:40:51 +01:00
jeromecoutant 68351fba4b STM32H7 UART: enable LPUART 2019-07-11 11:40:51 +01:00
jeromecoutant b707b1da5a STM32WB warning compilation
[-Wparentheses-equality]
2019-07-11 11:40:51 +01:00
jeromecoutant a84eb2407c STM32H7 warning compilation
[-Wparentheses-equality]
2019-07-11 11:40:51 +01:00
jeromecoutant 508c7f7980 STM32L4 warning compilation
[-Wparentheses-equality]
2019-07-11 11:40:51 +01:00
jeromecoutant df4e9049a1 STM32L1 warning compilation
[-Wparentheses-equality]
2019-07-11 11:40:51 +01:00
jeromecoutant 2d16488771 STM32L0 warning compilation
[-Wparentheses-equality]
2019-07-11 11:40:51 +01:00
jeromecoutant 6e6f8835fb STM32F7 warning compilation
[-Wparentheses-equality]
[-Wsign-compare]
2019-07-11 11:40:51 +01:00
jeromecoutant 514f94da0e STM32F4 warning compilation
[-Wparentheses-equality]
2019-07-11 11:40:51 +01:00
jeromecoutant a1800902f7 STM32F3 warning compilation
[-Wparentheses-equality]
2019-07-11 11:40:51 +01:00
jeromecoutant bde3d3c037 STM32F2 warning compilation
[-Wparentheses-equality]
2019-07-11 11:40:51 +01:00
jeromecoutant 4cb01a81de STM32F1 warning compilation
[-Wparentheses-equality]
2019-07-11 11:40:51 +01:00
jeromecoutant 81fd622456 STM32F0 warning compilation
[-Wparentheses-equality]
2019-07-11 11:40:51 +01:00
jeromecoutant d81f320698 STM32: remove compilation warning 2019-07-11 11:40:51 +01:00
Przemyslaw Stekiel 1a2af2c7b6 Disable time drifting test cases.
Time drifting test cases use serial communication with the host and are unstable on CI.
Skip time-drifting test cases if SKIP_TIME_DRIFT_TESTS macro is defined.
The idea for the future is to use FPGA test shield for timing tests instead of host scripts.

Also remove `__ARM_FM` macro which in most cases was used to disable time drifting tests. In other cases replace `__ARM_FM` with `TARGET_ARM_FM` which is more suitable.
2019-07-11 11:40:51 +01:00
jeromecoutant 25d817ced0 STM32H7 directory cleanup and refactoring 2019-07-11 11:40:51 +01:00
jeromecoutant c87159375a STM32H7: use default files from ST drivers delivery 2019-07-11 11:40:51 +01:00
jeromecoutant 8d173a4316 STM32: define USE_FULL_LL_DRIVER at top level 2019-07-11 11:40:51 +01:00
toyowata 9fd6d06a3b Correct SPDX identifiers 2019-07-11 11:40:51 +01:00
toyowata df0bc1d498 Fix device_name and add SPDX identifiers 2019-07-11 11:40:51 +01:00
toyowata 8b8f4bf236 Remove ARCH_MAX files from STM32F407xG 2019-07-11 11:40:51 +01:00
toyowata 7d298aa036 Move Seeed ARCH_MAX to TARGET_STM32F407xE MCU 2019-07-11 11:40:50 +01:00
petroborys fef0a41236 Add support I2C #3 (#ifdef I2C2) for target EFM32G11 2019-07-11 11:40:50 +01:00
Teijo Kinnunen 743b40aaa4 STM32L0: Add DEVICE_SPI_COUNT to DISCO_L072CZ_LRWAN1 + MTB_MURATA_ABZ
Enables simultaneous use of both SPIs without interference.
2019-07-11 11:40:50 +01:00
panyz0725@thundersoft.com c7aa879b33 Setting wisely pin mode for TT_M3HQ 2019-07-11 11:40:50 +01:00
Chun-Chieh Li b421ca6fcc Fix wait_ns test failed 2019-07-11 11:40:50 +01:00
Vincent Veron 56be34e27c TARGET_STM: SPI: add pulse on master transmissions
Add a pulse when using hardware chip select for SPI transmissions.
CS is at low level when a transmission is on-going.

Be careful, this is not compatible with all modes. It will work only
if PHA is 0, ie spi mode is 0 or 2. See stm32xx reference manual,
chapter "NSS pulse mode" for more details.

Fix #10671

Signed-off-by: Vincent Veron <vincent.veron@st.com>
2019-07-11 11:40:50 +01:00
Ronny Liu 60ef607c1c bootloader support for GD32_F450ZI 2019-07-11 11:40:50 +01:00
Chris Trowbridge f9f7f80dea Remove component 'QSPIF' for target 'EP_AGORA' 2019-07-11 11:39:48 +01:00
Chris Trowbridge 83b20c6717 Remove unneeded custom_board.h file 2019-07-11 11:39:48 +01:00
Chris Trowbridge b431de3d98 Update licenses for EP_AGORA target 2019-07-11 11:39:48 +01:00
Chris Trowbridge 545a595a2f Add support files for target EP_AGORA 2019-07-11 11:39:48 +01:00
Chris Trowbridge b8c4cb46fd Add 'EP_AGORA' as a target 2019-07-11 11:39:48 +01:00
jeromecoutant 5eda48576f STM32H7: flash issue while erasing sector in Bank 1 2019-07-11 11:39:48 +01:00
Volodymyr Medvid 0560a93f59 PSOC6: move cmsis.h and device.h out from psoc6pdl directory
This simplifies updating of psoc6pdl directory to the latest Cypress
PSoC 6 PDL releases. cmsis.h and device.h are not part of psoc6pdl.
2019-07-11 11:39:48 +01:00
panyz0725@thundersoft.com cc912e6260 Modifiying file PinNames.h 2019-07-11 11:39:48 +01:00
jeromecoutant 5c63c5704d STM32: common cmsis.h and device.h 2019-07-11 11:39:48 +01:00
ale87jan 04105c788a Update MAX3263x.sct 2019-07-11 11:39:48 +01:00
Jaeden Amero bf676c1264 psa: Avoid re-definition of MBEDTLS_PSA_CRYPTO_C
Mbed TLS now enables PSA APIs by default on all targets. It's not
necessary to explicitly enable MBEDTLS_PSA_CRYPTO_C, as that can be
gotten from the Mbed TLS config.h.

However, many PSA targets depend on `-DMBEDTLS_PSA_CRYPTO_C` being
defined by the Mbed OS json configuration system and are not yet
properly including the Mbed TLS configuration; for these PSA targets,
warnings may remain until this issue is fixed.

Avoiding re-definition will eliminate warnings like the following, when
building mbed-os-example-blinky:

    Compile [ 14.5%]: pal_client_api_empty_intf.c
    [Warning] pal_client_api_intf.h@35,0: "PSA_SUCCESS" redefined
    Compile [ 14.6%]: pal_client_api_intf.c
    Compile [ 14.7%]: DeviceKey.cpp
    Compile [ 14.9%]: pal_internal_trusted_storage_intf.c
    [Warning] pal_internal_trusted_storage_intf.c@45,9: 'psa_its_set' is deprecated: PS specific types should not be used [-Wdeprecated-declarations]
    Compile [ 15.3%]: val_attestation.c
    [Warning] client.h@40,0: "PSA_VERSION_NONE" redefined
    <..>
    Compile [ 33.3%]: asn1parse.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 33.5%]: aes.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 33.6%]: asn1write.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 33.7%]: psa_crypto.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 33.8%]: blowfish.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 33.9%]: camellia.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 34.0%]: base64.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 34.2%]: ccm.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 34.3%]: chacha20.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 34.4%]: chachapoly.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 34.5%]: cipher_wrap.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 34.6%]: cmac.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 34.7%]: cipher.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 34.9%]: bignum.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 35.0%]: des.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 35.1%]: dhm.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 35.2%]: ctr_drbg.c
    <..>
    Compile [ 70.9%]: EthernetInterface.cpp
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 71.0%]: InternetSocket.cpp
    Compile [ 71.1%]: L3IPInterface.cpp
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 71.2%]: NetworkInterface.cpp
2019-06-12 16:21:13 +01:00
desmond.chen 0ebc05385f Fix nrf52 enabled uart count and enable uart0/1 2019-06-12 16:15:57 +01:00
Lingkai Dong 29446548f5 Default to Cordio BLE stack for NRF52* targets
The BLE stack from SoftDevice is not actively maintained and
has issues when used with Nordic SDK v15.
2019-06-12 16:15:57 +01:00
Hennadiy Kytsun 6084069ec2 Cypress: Fix issue #10613 2019-06-05 13:08:10 +01:00
adbridge b597221a2c "Update secure binaries for ARM_MUSCA_A1_S (ARMC6)" 2019-05-29 20:56:07 +01:00
adbridge 9098ea170e "Update secure binaries for LPC55S69_S (ARMC6)" 2019-05-29 20:48:28 +01:00
adbridge 39f09971d0 "Update secure binaries for CY8CKIT_062_WIFI_BT_M0_PSA (GCC_ARM)" 2019-05-29 20:40:05 +01:00
Martin Kojtal 9cc1caa031
Merge pull request #10596 from kjbracey-arm/sem_acquire
Introduce Semaphore::acquire methods
2019-05-29 06:22:30 +01:00
Kevin Bracey 2fbbd9d2ca Introduce Semaphore::acquire methods
Deprecate wait() in favour of acquire(), try_acquire(),
try_acquire_for() and try_acquire_until().

Brings Semaphore more into line with CMSIS-RTOS 2 (which uses "acquire"),
itself (as it has "release"), and other classes having "try", "try for"
and "try until".

Also steps away from vague "wait" term - the primary operation here is
to acquire the semaphore, and this will of course sleep.
2019-05-28 17:02:06 +03:00
Martin Kojtal 19e762298f
Merge pull request #10666 from ARMmbed/feature-nrf52-sdk15
Nordic SDK v15 Update
2019-05-28 09:48:44 +01:00
Martin Kojtal ab82f1fca6
Merge pull request #10627 from devran01/remove_future_sequana_target
Remove targets FUTURE_SEQUANA_M0_PSA and FUTURE_SEQUANA_PSA
2019-05-24 12:16:10 +01:00
Martin Kojtal cfb107912b
Merge pull request #10616 from ThunderSoft123/master
Fix bug Operator new[] out of memory
2019-05-23 21:40:10 +01:00
Martin Kojtal 4567626ade
Merge pull request #10636 from u-blox/activation_status
+UPSND sent to poll activation status
2019-05-23 21:39:48 +01:00
Martin Kojtal 80d7cb2e17
Merge pull request #10631 from VVESTM/update_cube_h7
Update cube h7 to 1.4.0
2019-05-23 21:36:38 +01:00
Martin Kojtal 3f756f0769
Merge pull request #10591 from OpenNuvoton/nuvoton_m2351_fix_spdmc_sync
M2351: Fix serial sync error in SPDMC test
2019-05-23 21:36:15 +01:00
Martin Kojtal 02b91bdfca
Merge pull request #10582 from malavikasajikumar/master
Adding LED4 definition in PinNames.h of SDP-K1 board.
2019-05-23 21:35:42 +01:00
Vincent Veron d8e1e43e35 H7 ST CUBE : remove unecessary #if 1 instead of USE_FULL_LL_DRIVER
Keep #define USE_FULL_LL_DRIVER and define this switch in target.json

Signed-off-by: Vincent Veron <vincent.veron@st.com>
2019-05-23 14:01:01 +02:00
Vincent Veron 80b41f0276 H7 ST CUBE V1.4.0 2019-05-23 14:01:00 +02:00
RFulchiero b34057f933 Fix targets.json for MTB_LAIRD_BL654
When removing CryptoCell310 we now need to define:
  NRFX_RNG_ENABLED=1
  RNG_ENABLED=1
  NRF_QUEUE_ENABLED=1
These are brought in via "macros_add".
2019-05-23 11:31:40 +08:00
RFulchiero 3343022f70 Remove redundant legacy files and definition of PACKED
* The following v14.2 files are removed from nrfx/legacy:
  nrf_drv_clock.h
  nrf_drv_common.h
  nrf_drv_gpiote.h
  nrf_drv_spi.h
  nrf_drv_twi.h
  nrf_drv_uarth.h
* Remove unneeded references to "nrfx_glue.h" and "nrf_drv_common.h"
* Remove the definition of PACKED from app_util_platform.h (already defined
  in mbed_toolchain.h)
2019-05-23 11:31:40 +08:00
RFulchiero 8550fd0ed2 Fix preprocessor conditionals for AC6 build 2019-05-23 11:31:39 +08:00
RFulchiero 5c276f2c0e Fix SOFTDEVICE_NONE builds and clean up
* Update all scatterfiles to define MBED_RAM_START and MBED_RAM_SIZE.  These
get defined in mbed_lib.json when building with a SoftDevice but were missing
when no SoftDevice is brought in.
* Remove SDK 14.2 SoftDevice files.
* Add missing header file to qspi_api.c.
2019-05-23 11:31:38 +08:00
RFulchiero 2690f0f8bc Update QSPI in the SDK to support long frame mode
* Carry forward changes made to v14.2SDK to support long frame mode
(from commit 2a72bb67a3).
* Fixed a few driver calls from rebase
2019-05-23 11:31:35 +08:00
RFulchiero 8237229530 Rebase to master in preparation for v5.12.0 2019-05-23 11:31:35 +08:00
Desmond Chen 4e8eed07e5 Fix nrf section iter macro check 2019-05-23 11:31:33 +08:00
Naveen Kaje e8e1ef2a70 NRF52: reloc_vector_table: check the RTS pin settings in code
Move the check from preprocessor to the if condition
2019-05-23 11:31:33 +08:00
Desmond Chen c048a34e00 Add BLE feature to mbed_lib.json of SoftDevice 2019-05-23 11:31:32 +08:00
RFulchiero f8e2b7e679 Update file header at TARGET_NRF52 level
- Update (c) year and company name
 - Add SPDX-License-Identifier
 - Impacted files:
    - Files touched for SDK15 port
    - Files added in 2018
2019-05-23 11:31:32 +08:00
RFulchiero bd6edc4917 Remove RTC from nRF52840_DK and DELTA_DFCM_NNN50 (was testing) 2019-05-23 11:31:32 +08:00
RFulchiero cf162cdbab Remove duplicate file 2019-05-23 11:31:31 +08:00
Desmond Chen d20ca05a68 Fix SoftDevice configuration on NRF52_DK 2019-05-23 11:31:31 +08:00
Desmond Chen b69dc2bdae Update BLE SoftDevice from SDK14 to SDK15
- Adjust memory for SoftDevice
    - Enable PRIO=5 for interrupt priority check
    - Change NRF_SD_BLE_API_VERSION to 6
    - Add handle and buffer for advertising and scanning
    - Remove guard for phy update
    - Change scatter files and mbed_lib.json for PR #8607
2019-05-23 11:31:31 +08:00
Desmond Chen 2fbc20f9b1 Fix timer1 irq configuration 2019-05-23 11:31:30 +08:00
Naveen Kaje b17601ef43 NRF52: Cleanup unused code 2019-05-23 11:31:29 +08:00
Naveen Kaje 8eaf87cd50 NRF52: serial: fix build warnings 2019-05-23 11:31:29 +08:00
RFulchiero e9a3ca6259 Set the PWM clock prescaler back to default (1MHz clock) 2019-05-23 11:31:29 +08:00
RFulchiero 501000e6a2 Changes required for rebase:
- Brought in new nrfx APIs
 - Brought in PPI additions
 - Removed dead code for RTC
2019-05-23 11:31:28 +08:00
RFulchiero 36c70a1c78 Enabling NRFX_PPI_ENABLED for serial_api updates 2019-05-23 11:31:26 +08:00
RFulchiero 74cb69873c Cleanup for feature release
* Update TARGET_NRF5x/README.md to improve "Changing SoftDevice" section
  and added section on NRF52840 CryptoCell310 Support
* Update the file list in TARGET_SDK_15_0/TARGET_SOFTDEVICE_COMMON/README.md
* Add missing CR-LF to Nordic-provided SDK file
* Rename a header file in the TARGET_SOFTDEVICE_S112 tree
2019-05-23 11:31:26 +08:00
RFulchiero 2a968d4d35 Revert "NRF52: Fix vector table"
This reverts commit 3d2fa535a71b7bad08c6a91a31d74f4492c8948c.

This was a breaking change for the "MBR" and "NONE" builds.
After testing it was also determined that copying the vector
table a second time wasn't required for the "FULL" build.
2019-05-23 11:31:26 +08:00
Ralph F 742d10fcc2 Add missing SoftDevice build support (MBR, NONE, OTA)
- Add MBR, NONE and OTA SoftDevice build options for S132 and S140
- Add S112 SoftDevice (single build option)
- Some folder restructuring in TARGET_SOFTDEVICE_COMMON was required
2019-05-23 11:31:25 +08:00
RFulchiero 3e3ac27698 Remove dead #define PORT_SHIFT
nRF5x PinNames.h never utilized PORT_SHIFT so removed for clarity after
user commented on it.
2019-05-23 11:31:24 +08:00
RFulchiero fa84352752 Fix build for nRF51 (fewer common files with nRF52)
The 15.0 SDK doesn't support the nRF51 so it must continue to use the legacy
NRF drivers.  Thus the original common_rtc.c, gpio_api.c and us_ticker.c are
restored and placed under TARGET_NRF5x/TARGET_NRF51.

Likewise the modified common_rtc.c, gpio_api.c and us_ticker.c are moved to
TARGET_NRF5x/TARGET_NRF52 so they are excluded from nRF51 builds.
2019-05-23 11:31:23 +08:00
RFulchiero e85106129a Updates after rebase with Mbed master (circa OS v5.10.1)
* Remove NRF_SDH_CLOCK parameters from mbed_lib.json
* Bring in QSPI for nRF52840
* Migrate legacy QSPI driver to SDK v15 (nrfx_qspi.h)
* Remove outdated comment in i2c_api.c
2019-05-23 11:31:23 +08:00
Naveen Kaje 6064ef30e9 NRF52: Fix vector table
Ensure that vector table gets initialized properly. The table that we
initialize in startup_nrf52840.S gets wiped out as the section is
declared as noinit. Fix this by implementing the weak function mbed_sdk_init
that inits the vector table.
2019-05-23 11:31:22 +08:00
RFulchiero f79531414f nRF52_DK: Use mbed_lib.json to set app_offset (MBED_APP_START)
When the SoftDevice (SD) is enabled we need to set the app_offset
to 0x26000 to make room for the SoftDevice.  If we let the build
tools self-manage this, MBED_APP_START is coming out at 0x25000
which is not correct for the Nordic 15.0 SDK.

The app_offset value is translated to MBED_APP_START by the build
infrastructure.  We were hard coding MBED_APP_START in the scatter
and ld files as a temporary measure while testing.  This now sets
it properly if the SD is being brought in.
2019-05-23 11:31:22 +08:00
RFulchiero 317598604a nRF52832 needs NRFX_RNG_ENABLED to use the legacy driver 2019-05-23 11:31:22 +08:00