Commit Graph

6402 Commits (68f9196b44e2d3221b28316b48bb57a9d40f7207)

Author SHA1 Message Date
petroborys 2525100cc7 modified itm_api.c for STK3701 and add SWO location 0 to EFM32GG11_STK3701, EFM32GG_STK3700, EFM32LG_STK3600, EFM32PG_STK3401, EFM32PG12_STK3402 and EFM32WG_STK3800 2019-12-07 03:00:01 +02:00
Martin Kojtal 8d246d8ac1
Merge pull request #12026 from deepak-shreshti/master
Update HAL file to Toshiba's TMPM4G9
2019-12-06 15:48:55 +01:00
Martin Kojtal 0e66678bf8
Merge pull request #12030 from miteshdedhia7/pr/whd_update_1.70
Updates the Cypress WiFi Host Driver to 1.7.0
2019-12-06 13:44:42 +01:00
Martin Kojtal 0a332d9d19
Merge pull request #12041 from trowbridgec/ep_agora-add-qspi-support
Add QSPI and relevant test support for target EP_AGORA
2019-12-06 13:33:14 +01:00
Deepak V. Shreshti b2616ca1fe Resolved linker issue 2019-12-06 15:22:55 +05:30
Deepak V. Shreshti 0ad1133ea5 Added SPDX identifier License 2019-12-06 15:15:05 +05:30
Deepak V. Shreshti 6fd5fbc7d5 Updated HAL files of TMPM4G9 2019-12-06 15:15:05 +05:30
Chris Trowbridge 6b8b324eaa Add QSPI and relevant test support for target EP_AGORA 2019-12-05 14:58:06 -05:00
midd 493d4af228 Remove extra resource file left over from the renaming from TARGET_WHD to COMPONENT_WHD 2019-12-05 10:38:16 -08:00
midd 26cc865fed Update WiFi Host Driver to 1.7.0
- Fixes issues with stopping AP in APSTA mode
2019-12-05 10:37:50 -08:00
YARB(Cypress) 91e97a17d7 Cypress: Remove qspi_frequency() call.
cy_qspi_frequency is not implemented.
This change is made because for compatibility
reason with upcoming cy_hal changes.
2019-12-05 16:12:14 +02:00
Martin Kojtal e9cb9cb014
Merge pull request #12018 from jeromecoutant/PR_OLIMEX_EMAC
STM32_EMAC cleanup
2019-12-05 14:03:46 +01:00
Martin Kojtal a4dbf63dc3
Merge pull request #12029 from jeromecoutant/PR_F091
STM32F0: create STM32F091xC target
2019-12-05 08:22:32 +01:00
jeromecoutant 1a3673ee52 STM32F0: create STM32F091xC target 2019-12-04 15:03:46 +01:00
Martin Kojtal 2cf56b8f6d
Merge pull request #11891 from hugueskamba/hk-enable-minimal-printf-in-tools
minimal-printf: Enable using a target configuration parameter
2019-12-04 10:14:54 +01:00
Martin Kojtal bbf68d7272
Merge pull request #11983 from u-blox/ublox_odin_driver_os_5_v3.7.1_rc3
Ublox Odin Driver OS 5 v3.7.1 rc3: Network-WiFi Test Crash Fixes
2019-12-04 10:12:11 +01:00
jeromecoutant bdbec57447 STM32F407 configuration cleanup 2019-12-03 14:48:48 +01:00
Hugues Kamba d5aef28145 minimal-printf: Enable using a target configuration parameter 2019-12-03 12:31:51 +00:00
Martin Kojtal ad3647c191
Merge pull request #11957 from kjbracey-arm/crc-redo
MbedCRC and CRC HAL revisions (6.0 redo)
2019-12-03 13:21:36 +01:00
Martin Kojtal c098bdff18
Merge pull request #12006 from jamesbeyond/fc_fix
FIX: fix a bug introduced by static pinmap
2019-12-03 13:20:14 +01:00
Martin Kojtal a8ee2d8c7d
Merge pull request #11594 from OpenNuvoton/nuvoton_m2351_partition-memory-pelion
M2351: Pre-build secure image/lib to favor pelion application
2019-12-03 09:05:49 +01:00
Martin Kojtal fc488f6f36
Merge pull request #11995 from VeijoPesonen/mcu_nrf52840_fixes
MCU_NRF52840 target configuration fixes
2019-12-03 09:03:43 +01:00
Qinghao Shi 9545a46c23 FIX: fix a bug introduced by static pinmap 2019-12-02 19:32:32 +00:00
hamza-ubx 506e2ef8c7 Fixed Alignment 2019-12-02 19:44:16 +05:00
Kevin Bracey fe22bc023e Update HAL CRC API
* Change "is supported" check to be a macro, so it can be done at
  compile-time.
* Eliminate weird shift on 7-bit CRCs.
* Add support for 32-bit CRCs and reversals to TMPM3HQ.
2019-12-02 14:45:37 +02:00
Veijo Pesonen 5d3e859d1c NRF52840_DK: Fixes target id code 2019-12-02 13:00:19 +02:00
Veijo Pesonen 28a2327f7e MCU_NRF52840: Removes redundant component and errata definitions 2019-12-02 12:59:56 +02:00
Veijo Pesonen c479dab901 MCU_NRF52840: Removes redundant OS version and CMSIS Packs data 2019-12-02 12:59:39 +02:00
Martin Kojtal 48f544f9e4
Merge pull request #11980 from jeromecoutant/PR_L4R9I
DISCO_L4R9I: update clock configuration for all clock sources
2019-12-02 11:23:51 +01:00
Martin Kojtal f2d211b7c2
Merge pull request #11978 from hugueskamba/hk-fix-lpc55s69_ns-baremetal-compilation
LPC55S69_NS: Fix baremetal compilation error
2019-11-29 13:05:13 +01:00
Hamza Rizwan c15320d48e Fixes for Network WiFi Test Crashes 2019-11-29 14:52:25 +05:00
Martin Kojtal 7177d8fefe
Merge pull request #11950 from ABOSTM/DISCO_H747I_TICKLESS
DISCO_H747I: add support of MBED_TICKLESS
2019-11-29 09:48:09 +01:00
Martin Kojtal a656f51d07
Merge pull request #11963 from jeromecoutant/PR_USB_L4
STM32 USB : Add __HAL_RCC_PWR_CLK_ENABLE
2019-11-29 09:45:44 +01:00
Martin Kojtal b4a885d8b8
Merge pull request #11966 from hugueskamba/hk-remove-json-duplicate-keys
Fix targets.json syntax errors
2019-11-29 09:45:31 +01:00
jeromecoutant 354913a45e DISCO_L4R9I: correct clock tree for all clock sources 2019-11-28 16:29:11 +01:00
jeromecoutant 7e26cea796 DISCO_L4R9I : correct HSE frequency value 2019-11-28 16:29:10 +01:00
Hugues Kamba 20f41a0540 LPC55S69_NS: Fix baremetal compilation error
As the `psa` library is not included in the baremetal profile, perform
a TFM system reset only if the `psa` library is included in
the build otherwise perform a normal CMSIS system reset.
2019-11-28 14:53:31 +00:00
Przemyslaw Stekiel 2e793842d8 STM QSPI driver: return init status, fix pin function setting 2019-11-28 12:41:40 +01:00
Hugues Kamba 444c0893e4 Fix targets.json syntax errors
Remove duplicated keys.
2019-11-28 08:30:58 +00:00
Przemyslaw Stekiel b2dad08387 Change explicit pinmap to static pinmap 2019-11-28 08:32:12 +01:00
Przemyslaw Stekiel e3a34a57e1 Move GPIO_AF_NONE from PeripheralPins.h to PinNamesTypes.h 2019-11-28 08:32:10 +01:00
Przemyslaw Stekiel b35579ba39 NUCLEO_F429ZI add CAN pinmaps 2019-11-28 08:32:07 +01:00
Przemyslaw Stekiel 6489bb7c99 STM: Add support for internal ADC pins 2019-11-28 08:32:06 +01:00
Przemyslaw Stekiel 0e0952fadc NRF52840_DK: Add explicit pinmap support 2019-11-28 08:32:06 +01:00
Przemyslaw Stekiel 42b2eeede9 NUCLEO_F303RE: Add explicit pinmap support 2019-11-28 08:32:06 +01:00
Przemyslaw Stekiel a83756504f LPC55S69_NS: Add explicit pinmap support 2019-11-28 08:32:05 +01:00
Przemyslaw Stekiel a2320f2e5c NUCLEO_L073RZ: Add explicit pinmap support 2019-11-28 08:32:05 +01:00
Przemyslaw Stekiel 2855e801cb NUCLEO_F411RE: Add explicit pinmap support 2019-11-28 08:32:05 +01:00
Przemyslaw Stekiel dc26390d08 DISCO_L475VG_IOT01A: Add explicit pinmap support 2019-11-28 08:32:04 +01:00
Przemyslaw Stekiel 31f99416ae STM QSPI driver: Add explicit pinmap support 2019-11-28 08:32:04 +01:00
Przemyslaw Stekiel c8a80bbcd3 STM CAN driver: Add explicit pinmap support 2019-11-28 08:32:04 +01:00
Przemyslaw Stekiel ba12228556 Explicit pinmap: Fix build failures reported by CI 2019-11-28 08:32:03 +01:00
Przemyslaw Stekiel d75cc97d80 Explicit pinmap - fix style 2019-11-28 08:32:02 +01:00
Przemyslaw Stekiel 17c1b9a860 Fix spelling error 2019-11-28 08:32:02 +01:00
Przemyslaw Stekiel 7b0ceb0140 NUCLEO_F429ZI: Add constexpr pinmap tables 2019-11-28 08:32:01 +01:00
Przemyslaw Stekiel 211356f307 K64F: Add constexpr pinmap tables 2019-11-28 08:32:01 +01:00
Przemyslaw Stekiel 3d719f7e35 K64F, NUCLEO_F429ZI: Use explicit pinmap for console 2019-11-28 08:32:00 +01:00
Przemyslaw Stekiel 3d2bebde0c STM32 serial driver: Add explicit pinmap support 2019-11-28 08:32:00 +01:00
Przemyslaw Stekiel e82e190a66 K64F serial driver: Add explicit pinmap support 2019-11-28 08:32:00 +01:00
Przemyslaw Stekiel 2185e80e08 STM32F4 I2C driver: Add explicit pinmap support 2019-11-28 08:31:59 +01:00
Przemyslaw Stekiel e0fdee9f0d TARGET_MCUXpresso_MCUS I2C driver: Add explicit pinmap support 2019-11-28 08:31:59 +01:00
Przemyslaw Stekiel eab08d7047 STM32F4 Analogout driver: Add explicit pinmap support 2019-11-28 08:31:58 +01:00
Przemyslaw Stekiel 4a79e59ef6 K64F Analogout driver: Add explicit pinmap support 2019-11-28 08:31:58 +01:00
Przemyslaw Stekiel b22cc4a032 STM32F4 Analogin driver: Add explicit pinmap support 2019-11-28 08:31:57 +01:00
Przemyslaw Stekiel 640c0a0160 K64F Analogin driver: Add explicit pinmap support 2019-11-28 08:31:57 +01:00
Przemyslaw Stekiel ce4a943350 STM PWM driver: Add explicit pinmap support 2019-11-28 08:31:56 +01:00
Przemyslaw Stekiel 53d59adc11 K64F PWM driver: Add explicit pinmap support 2019-11-28 08:31:56 +01:00
Przemyslaw Stekiel ca80cd22f7 STM SPI driver: Add explicit pinmap support 2019-11-28 08:31:55 +01:00
Przemyslaw Stekiel 31bff30b64 K64F SPI driver: Add explicit pinmap support 2019-11-28 08:31:55 +01:00
Shuopeng Deng 823d50d6fd rework cypress lptimer hal
Changed set_match api to use an absolute ticks rather than delayed tick to match api name.
Added api set_delay to delay by a specific amount of ticks. Removed unused set_time api.
Simplified the logic for computing interrupts match value for cascading counters.
Fixed an issue when incorrect base time would be read when trying to set match values.
2019-11-27 12:20:37 -08:00
Martin Kojtal a1cddbae5f
Merge pull request #11938 from LMESTM/stm32_serial_clear_rxne
STM32: Update and align serial_clear implementations
2019-11-27 16:30:11 +01:00
jeromecoutant c5ffd40aa6 STM3 USB : Add __HAL_RCC_PWR_CLK_ENABLE 2019-11-27 16:25:10 +01:00
Alexandre Bourdiol 42a0407a56 export: fix IAR definition for dual core STM32 DISCO_H747I 2019-11-27 14:26:09 +01:00
Alexandre Bourdiol f36982cc97 TARGET_STM: STM32H7 HAL_RCC_OscConfig update in PLL configuration
port fix #5896 on STM32H7 Cube HAL
ST internal ticket 42806 not yet released for STM32H7
2019-11-27 14:26:02 +01:00
Alexandre Bourdiol df7431df81 TARGET_STM: Improve H747 dual core Deepsleep robustness 2019-11-27 14:25:53 +01:00
Alexandre Bourdiol affe7113ef TARGET_STM: Remove timeout on HSEM.
With tickless mechanism hsem can be used for quite a long time
(time to set up PLL clock).
Also, if hsem is held to long, then this is not the current core which is faulty,
but probably the other (the one which hold the HSEM)
2019-11-27 14:25:43 +01:00
Alexandre Bourdiol 41b038a028 TARGET_STM: rework hal_sleep management to be compatible with all STM32 families 2019-11-27 14:25:30 +01:00
Alexandre Bourdiol e83a8abdcb targets: DISCO_H747I add support of MBED_TICKLESS 2019-11-27 14:16:15 +01:00
Martin Kojtal b0751bf507
Merge pull request #11946 from ARMmbed/revert-11559-crc
Revert "MbedCRC and CRC HAL revisions"
2019-11-27 11:07:13 +01:00
Martin Kojtal 5f7ecea00b
Revert "MbedCRC and CRC HAL revisions" 2019-11-26 13:45:37 +00:00
yarb 088da17146 Cypress: Minor fix for mbed astyle 2019-11-26 13:20:35 +02:00
Kyle Kearney c736afa3b0 Fix missing #include in wiced_resource.h
The `CY_PRAGMA` macro is used in certain build scenarios with IAR,
but it is not defined without including "cy_syslib.h"
2019-11-25 12:09:36 -08:00
Kyle Kearney ac8a8a6079 Add target for CY8CPROTO-062S3-4343W 2019-11-25 11:41:39 -08:00
Martin Kojtal a169edfdec
Merge pull request #11887 from kyle-cypress/pr/target-p62s1-43438
Add target for CYW9P62S1_43438EVB_01
2019-11-25 18:32:48 +01:00
Laurent Meunier f20529f9e6 STM32: Update and align serial_clear implementations
Clear RXNE flag by reading the RX register and align this implementation
on all families.
2019-11-25 14:55:32 +01:00
Martin Kojtal 59bc33cf3d
Merge pull request #11901 from morser499/pr/cyw9p62s1_43012evb_01
Update MPN for CYW9P62S1_43012EVB_01 board
2019-11-25 12:51:23 +01:00
Martin Kojtal 1a2ecebc62
Merge pull request #11881 from hugueskamba/hk-UBLOX_EVK_ODIN_W2-enable-baremetal
UBLOX_EVK_ODIN_W2: Fix baremetal build and greentea tests
2019-11-25 08:40:33 +01:00
Martin Kojtal 6b7720d971
Merge pull request #11884 from morser499/pr/target-update
Update Cypress targets
2019-11-23 18:46:07 +01:00
Martin Kojtal 83fc580f79
Merge pull request #11773 from fkjagodzinski/fix-watchdog_reset_test
Fix watchdog reset test
2019-11-22 22:26:44 +01:00
Ryan Morse 1ac71356c5 Fixed Arduino form factor support on 2 Cypress boards 2019-11-22 08:41:53 -08:00
Kyle Kearney 1a0925e5dc Add missing arduino form factor to CYW9P62S1-43438EVB-01 2019-11-22 08:30:40 -08:00
Janne Kiiskila cfbbc6944a Add FlashIAP to NUCLEO_L4R5ZI
It is supported and we need it.
2019-11-22 15:48:30 +02:00
Martin Kojtal cc120f3cd0
Merge pull request #11870 from jeromecoutant/PR_F7_LINKER
STM32F7: linker scripts updates
2019-11-22 13:50:16 +01:00
Martin Kojtal 38a8c0e28f
Merge pull request #11914 from michalpasztamobica/refactor_string_based_apis
Deprecate string-based APIs in IPCore
2019-11-22 12:00:56 +01:00
Hugues Kamba 157d126769 UBLOX_EVK_ODIN_W2: Fix baremetal build and greentea tests
Remove lwIP reliant networking and BLE tests for baremetal

Mbed OS 5 ported lwIP in its OS mode and uses threads. Networking
that rely on lwIP needs to be removed so it can be compiled with the
baremetal profile.

The BLE cordio Greentea tests are also disabled given that the feature
is not supported without an RTOS.
2019-11-22 10:55:39 +00:00
Michal Paszta fd5b4b9119 Deprecate string-based APIs in IPCore
MBED_DEPRECATE macros is added to string-based APIs.
New, non-string-based APIs are added in their place.
Wiced binaries rebuilt
Any existing stubs or mocks are adjusted to compile and run with the newly added non-string based functions.
2019-11-22 11:31:12 +02:00
yarb b204acbe3a Cypress: FPGA: Improve SPI async calls
1. Fix for FPGA async test case.
2. Enabled events in proper place
3. Added check in async operation is in progress
2019-11-21 17:22:02 +02:00
Martin Kojtal ab7f602512
Merge pull request #11908 from yarbcy/pr/i2c-improvement3
I2C byte read/write transmition improvement
2019-11-21 12:21:59 +01:00
Martin Kojtal 9f4119e84b
Merge pull request #11885 from morser499/pr/whd1.60
Update to WHD 1.60 release
2019-11-21 10:57:14 +01:00
Martin Kojtal d0d3462781
Merge pull request #11846 from manchoz/manchoz_makerdiary-nrf52840-mdk
Add support for Makerdiary nRF52840-MDK
2019-11-21 10:54:21 +01:00
yarb 3d09a5a4f1 I2C byte read/write transmition improvement. Added CY_SCB_I2C_READ_XFER to clear CY_SCB_I2C_WRITE_XFER status in i2c_byte_write() API. 2019-11-21 11:41:40 +02:00
Ryan Morse 174adcf9b7 Update MPN for CYW9P62S1_43012EVB_01 board
- Enabled support for CRC & TRNG as the new MPN has a crypto block.
2019-11-20 07:52:50 -08:00
Martin Kojtal 9dc0c3737e
Merge pull request #11888 from fredlee12001/master
Pelion enable for UNO_91H
2019-11-20 16:31:56 +01:00
Martin Kojtal 2dfed373c7
Merge pull request #11713 from ABOSTM/FREMOVE_TICKLESS_FROM_STM32F4_TARGETS
Remove Tickless from STM32F4 targets
2019-11-20 10:56:04 +01:00
fred.li 72c5c78642 Default value for APPLICATION_ADDR if restrict_size not given 2019-11-20 10:34:49 +08:00
midd 4b4380a9ea Added support for CYW9P62S1_43438EVB_01 board 2019-11-19 18:02:17 -08:00
jeromecoutant 82a962864c STM32F7: linker scripts updates
- license header
- DTCM RAM use
- alignment within the STM32F7 family
2019-11-19 17:46:44 +01:00
Ryan Morse 33695b3e2c Remove unnecessary peripherals from design files and regenerate source 2019-11-19 07:59:43 -08:00
Ryan Morse 85ee14b0fc Fixup some documentation issues in SDIO_HOST driver 2019-11-19 07:59:42 -08:00
Ryan Morse ea1f164814 Update board startup code to allow for not initializing the HAL 2019-11-19 07:59:42 -08:00
Ryan Morse 0b21a6940b Add CM0+ startup code to each target 2019-11-19 07:59:42 -08:00
Ryan Morse 7fd78bc988 Standardize target pin defines in cybsp_types.h. Make PinNames.h/PeripheralNames.h use standard defines 2019-11-19 07:46:27 -08:00
Ryan Morse 38719908d1 Minor cleanup to target independent code 2019-11-19 07:30:15 -08:00
Martin Kojtal a183033f59
Merge pull request #11867 from mprse/cypress_gpio_fix
Fix for Cypress GPIO driver (fix for issue #11835)
2019-11-19 08:31:15 +01:00
fred.li 79f06c7b6c Fix UART write logic issue 2019-11-19 12:08:06 +08:00
fred.li fc8ae6fb18 All timer will not correct with 40M Clock, set back to 160M 2019-11-19 12:08:05 +08:00
fred.li 88cf7df286 1, Restrict access to 1st 4K of flash
2, Merge UNISOC change for auto reconnect patch
2019-11-19 12:08:05 +08:00
fred.li 0a2d843e15 Fix SystemReset Hang issue 2019-11-19 12:08:05 +08:00
fred.li bf4f1b18ba Skip clock setting, keep all code running with 40M 2019-11-19 12:08:04 +08:00
fred.li 08ef03492f reset I2C_WAKEUP_EN bit with Clock reset 2019-11-19 12:08:04 +08:00
fred.li ee2f7ce6bb Vector Table should accordng to application offset 2019-11-19 12:08:04 +08:00
Osamu Koizumi 0c8196168a Avoid setting clock parameter twice 2019-11-19 12:08:04 +08:00
fred.li 33f59b426f Fix for PDMC Timer stopped working issue 2019-11-19 12:08:03 +08:00
Ryan Morse 722a6eb27c Sync to WHD 1.60 release 2019-11-15 11:42:17 -08:00
Martin Kojtal 60a470a7ef
Merge pull request #11844 from amq/patch-1
EFM32: Enable RESET_REASON and WATCHDOG for EFM32GG11_STK3701
2019-11-15 18:34:06 +01:00
Martin Kojtal 30145b1393
Merge pull request #11736 from OpenNuvoton/nuvoton_remove_trng
Nuvoton: Remove TRNG support
2019-11-15 18:29:14 +01:00
Martin Kojtal 7b79157a4d
Merge pull request #11580 from wajahat-ublox/ubx_modems_custom_boards
Remove target dependency in ublox cellular APIs
2019-11-15 18:26:54 +01:00
Przemyslaw Stekiel 48b02af144 Fix for Cypress GPIO driver 2019-11-15 10:10:29 +01:00
Martin Kojtal 699372421a
Merge pull request #11790 from 0xc0170/master-rob
nrf52: reset UARTE peripheral in serial_free
2019-11-14 10:42:08 +01:00
Alexandre Bourdiol 328862028d Remove Tickless from STM32F4 targets
Ticless on STM32 F4 boards causes SPI issue with following PR:
# 11682 Make FPGA tests to pass on CI targets (SPI, analogIn, PWM)

In asynch mode, using interrupts, SPI hardware detect an RX overrun.
Our understanding is that lpticker wrapper latency
causes issue similar to #8714 and #9785,
specially with SPI asynch which use interrupts.
2019-11-14 09:29:56 +01:00
Martin Kojtal fd22997b60
Merge pull request #11559 from kjbracey-arm/crc
MbedCRC and CRC HAL revisions
2019-11-13 18:24:04 +01:00
Martin Kojtal 249d35c873
Merge pull request #11848 from manchoz/arduino_nano33ble_itm
Remove ITM Trace support from Arduino Nano 33 BLE
2019-11-13 15:17:16 +01:00
Martin Kojtal 5291228c00
Merge pull request #11850 from amitchone/amitchone-patch-1
Correct PB_6/PB_7 Serial AF mapping
2019-11-13 14:59:56 +01:00
Kevin Bracey 1f94428a56 Update HAL CRC API
* Change "is supported" check to be a macro, so it can be done at
  compile-time.
* Eliminate weird shift on 7-bit CRCs.
* Add support for 32-bit CRCs and reversals to TMPM3HQ.
2019-11-13 14:31:49 +02:00
Chun-Chieh Li aae04b2516 Nuvoton: Remove TRNG support
These targets below just support PRNG, not real TRNG. They cannot annouce TRNG.

-   NUMAKER_PFM_NUC472
-   NUMAKER_PFM_M487
-   NUMAKER_IOT_M487

On targets without TRNG, to run mbedtls applications which require entropy source,
there are two alternatives to TRNG:

-   Custom entropy source:
    Define MBEDTLS_ENTROPY_HARDWARE_ALT and provide custom mbedtls_hardware_poll(...)
-   NV seed:
    1.  Define MBEDTLS_ENTROPY_NV_SEED
    2.  Define MBEDTLS_PLATFORM_NV_SEED_READ_MACRO/MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO and provide custom mbedtls_nv_seed_read(...)/mbedtls_nv_seed_write(...).
    3.  Don't define MBEDTLS_PSA_INJECT_ENTROPY. Meet mbedtls_psa_inject_entropy(...) undefined and then provide custom one, which must be compatible with mbedtls_nv_seed_read(...)/mbedtls_nv_seed_write(...) above.
    4.  For development, simulating partial provision process, inject entropy seed via mbedtls_psa_inject_entropy(...) pre-main.
2019-11-13 18:01:24 +08:00
Martin Kojtal f1848f9e6d
Merge pull request #11828 from 0xc0170/fix_11652
MCU_LPC11U35_501: fix MCU inheritance
2019-11-13 11:00:15 +01:00
Adam Mitchell 6064979303
Correct PB_6/PB_7 Serial AF mapping 2019-11-12 14:16:21 +00:00
Giampaolo Mancini 1804b40fac Fix indentation 2019-11-12 14:48:54 +01:00
Giampaolo Mancini 6470afc1fc Remove ITM Trace support from Arduino Nano 33 BLE 2019-11-12 14:26:27 +01:00
Martin Kojtal 609612c1f2
Merge pull request #11840 from morser499/pr/whd1.50
Update Cypress WifiHostDriver to version 1.50
2019-11-12 13:56:35 +01:00
Martin Kojtal f61979ab31
Merge pull request #11843 from kapi90/master
Fix ethernet memory handling issues on CM3DS
2019-11-12 13:56:13 +01:00
Giampaolo Mancini fd3088867e Add support for Makerdiary nRF52840-MDK 2019-11-12 09:56:04 +01:00
Ryan Morse 977cf05473 Update WHD to v1.50 2019-11-11 15:12:03 -08:00
Ryan Morse 799146ba2f Move WHD from being a Target to being a Component 2019-11-11 15:12:02 -08:00
amq 450318347f
EFM32: Enable RESET_REASON and WATCHDOG for EFM32GG11_STK3701 2019-11-11 21:52:09 +01:00
Martin Kojtal 4f6ca1512a
Merge pull request #11827 from ABOSTM/DISCO_H747I_ETHERNET_READY
DISCO STM32H747I ETHERNET support, but disabled.
2019-11-11 16:56:36 +01:00
Bence Kaposzta d5e89a25c6 Fix ethernet memory handling issues on CM3DS
Signed-off-by: Bence Kaposzta <bence.kaposzta@arm.com>
2019-11-11 14:39:08 +01:00
jeromecoutant 7fcedd20e1 DISCO STM32H747I ETHERNET support, but disabled.
Ethernet is disabled by default,
because some hardware modifications are required on the board DISCO_H747I.
see https://os.mbed.com/teams/ST/wiki/DISCO_H747I-modifications-for-Ethernet
2019-11-08 16:05:00 +01:00
Martin Kojtal f3f919e904
Merge pull request #11830 from yarbcy/pr/dev-arm-issue-11746
Cypress: Add implementation of free() for gpio
2019-11-07 11:51:18 +01:00
Martin Kojtal 33e392e9d9
Merge pull request #11682 from mprse/fpga_tests_CI_targets
Make FPGA tests to pass on CI targets (SPI, analogIn, PWM)
2019-11-07 11:46:40 +01:00
Martin Kojtal 383cf1984d
Merge pull request #11711 from jeromecoutant/PULL_REQUEST_CUBE_UPDATE_F7_V1.15.0
STM32F7 update drivers version to CUBE V1.15.0
2019-11-07 11:33:38 +01:00
Martin Kojtal e89ce4fa06
Merge pull request #11816 from d-kato/rza1_fix_non_os
Fix failure of building non-RTOS for GR-PEACH, GR-LYCHEE and VK-RZ/A1H
2019-11-07 11:15:52 +01:00
yarb e5d31c85d1 Cypress: Add implementation of free() for gpio i2c analogin: #11830 2019-11-07 11:01:16 +02:00
d-kato 4fbb87d2bb Moved transmission completion wait to hal_deepsleep 2019-11-07 12:19:10 +09:00
Martino Facchin 8daa2d72ba [USB][STM32] Don't wrap direct function calls in MBED_ASSERT
dab09f3138 added checks on some functions in the form of MBED_ASSERT on the result.
Compiling with -NDEBUG elides the call, thus breaking the functionality

This patch restores it, while leaving the return check if compiled with standard profile.
2019-11-06 15:01:48 +01:00
Martin Kojtal 7794d901f2 MCU_LPC11U35_501: fix MCU inheritance
This should fix #11652 issue
2019-11-06 13:41:03 +00:00
d-kato 86f648d0b7 serial_putc waits for the transmission to complete 2019-11-06 20:48:30 +09:00
Martin Kojtal 3254ec3cae
Merge pull request #11811 from jeromecoutant/PR_H7_CM4_FLASH
STM32H7 FLASH API issue with M4 core
2019-11-06 12:45:56 +01:00
Martin Kojtal 42d3573e50
Merge pull request #11815 from morser499/pr/cm0_targets
Updated targets.json file to go along with pr-11770
2019-11-06 12:44:59 +01:00
Martin Kojtal b26f41202e
Merge pull request #11813 from yarbcy/pr/arm-issue-11795
Fix ARM issue 11795: - Cypress: SPI FPGA test: tester always respond …
2019-11-06 11:10:38 +01:00
Przemyslaw Stekiel b24afed5ae SPI fpga test: use get_capabilities() function to skip test cases for unsupported features 2019-11-06 10:09:20 +01:00
d-kato 076bbe9d56 Fix missing mbed_get_a9_tick_irq in non-RTOS build 2019-11-06 13:28:04 +09:00
Ryan Morse 79bae99be9 Updated targets.json file to go along with pr-11770 2019-11-05 20:34:09 +00:00
Martin Kojtal e4164bee51
Merge pull request #11775 from maciejbocianski/LPC55S69_fix_serial_set_flow_control
LPC55S69: fix serial_set_flow_control
2019-11-05 16:01:05 +01:00
Martin Kojtal cdcef4babe
Merge pull request #11709 from JanneKiiskila/CMSIS-STM32H7xx
Update CMSIS pack index json for STM32H7xx family
2019-11-05 13:21:46 +01:00
jeromecoutant 7847ad79fb STM32F7 HAL CRYPT patch to add missing UNLOCK 2019-11-05 11:46:13 +01:00
yarb fe91262535 Fix ARM issue 11795: - Cypress: SPI FPGA test: tester always respond 0 when MODE other then 0 (CY MR 1202) 2019-11-05 11:32:30 +02:00
Janne Kiiskila 1c6a34057a DISCO_H743ZI/ZI2 - mbed_ram_start/size
Adding the RAM definitions per request of Jerome Coutant.
2019-11-05 11:31:54 +02:00
Wajahat Abbas a5015c20ee Remove target dependency in ublox cellular APIs 2019-11-05 14:25:54 +05:00
jeromecoutant c6fdd4efb6 STM32H7 FLASH API issue with M4 core 2019-11-05 10:25:43 +01:00
Martin Kojtal db0df6b640
Merge pull request #11800 from morser499/pr/mbed-overrides
Update common Cypress libraries
2019-11-05 10:06:59 +01:00
Filip Jagodzinski 945a9b3ad5 K64F: Fix the watchdog mode settings
Enable the Watchdog Timer for the low-power stop modes of operation,
including the VLPS used in deepsleep.
Enable the Watchdog Timer for the Debug mode.
2019-11-04 19:35:01 +01:00
jeromecoutant eed920e84d Review fixes for STM32H7 target.json
The proposed review fixes by Jerome, cherry-picked in.

(cherry picked from commit fb15f023a9b7b679301b45eaa160ae8cb2e1f23c)
Signed-off-by: Janne Kiiskila <janne.kiiskila@arm.com>
2019-11-04 17:57:47 +02:00
Janne Kiiskila fbf6f9b493 NUCLEO_H743ZI2 - MBED ROM, FlashIAP
Add definitions for H743ZI2, required by bootloader.
2019-11-04 17:57:19 +02:00
Janne Kiiskila 6028fa7a94 DISCO_H747I - MBED_ROM & device name definition
Compilation of bootloader requires these parameters.
2019-11-04 17:57:19 +02:00
Ryan Morse 30980035d9 Update common libraries
Updated Serial Flash interface & Network buffer classes to avoid warnings and improve robustness. Fixed issue with mbed_overrides trying to use an old implementation of cy_serial_flash_init() function.
2019-11-04 07:43:22 -08:00
Martin Kojtal f27aec3377
Merge pull request #11279 from cy-jayasankar/pr/added-ipv6-link-local-address-api
Add API to get ipv6 link local address
2019-11-04 15:28:41 +01:00
Martin Kojtal 5a1ccc0f2f
Merge pull request #11780 from OpenNuvoton/nuvoton_fpga_perif_free
Nuvoton: Add implementations of HAL API i2c_free and analogin_free
2019-11-04 09:49:36 +01:00
Martin Kojtal a927ab8f7c
Merge pull request #11789 from jeromecoutant/PR_STM32H7
STM32H7: code and feature alignment for both NUCLEO and DISCO targets
2019-11-04 09:48:09 +01:00
Jayasankar Nara cb51fa57e2 Add API to get ipv6 link local address.
Protocols like mdns requires IPv6 link local address to be advertised in its
records (AAAA record). LWIP::Interface::bringup() API is creating IPv6 link
local address;But as of now there is no API exposed by mbed-os to get the
IPv6 link local address.

This new API is required to deliver mDNS library support on mbed-os for Cypress
platforms. Unit tested it by invoking get_ipv6_link_local_address with a simple
application.
2019-11-01 03:43:36 +05:30
jeromecoutant a24616443d STM32F7 targets.json cleaning 2019-10-31 17:49:51 +01:00
jeromecoutant 356de44aed STM32F7 ARM SCT file update to define correct RAM_SIZE 2019-10-31 17:46:11 +01:00
jeromecoutant 4f788adeb9 STM32F7 refactor common files 2019-10-31 17:46:10 +01:00
jeromecoutant 52bfd0c99a STM32F7 updates for new driver version 2019-10-31 17:45:58 +01:00
jeromecoutant 8ac918975f F7 ST CUBE V1.10.0 => V1.15.0
https://www.st.com/en/embedded-software/stm32cubef7.html
2019-10-31 17:43:18 +01:00
Martin Kojtal aba8f42600
Merge pull request #11776 from mprse/issue_11769_cypress_pwm_fix
Fix for issue #11769 (Cypress: PWM FPGA test wrong assert)
2019-10-31 17:08:06 +01:00
Rob Vlaar 6f31229f48 Workaround to reset UARTE peripheral to be able to go into deep sleep 2019-10-31 15:29:30 +00:00
jeromecoutant c7ca6f731c STM32H7 linker script files alignment 2019-10-31 14:59:18 +01:00
Martin Kojtal 724dfd554a
Merge pull request #11770 from morser499/pr/cm0-images
Update CM0P pre-built images to build 1.0.0.35
2019-10-31 14:40:40 +01:00
jeromecoutant 21ff11c3d3 STM32H7 alignment within family
- license header update
- STMOD+ connector pin addition
- update pin comment for Ethernet connector issue (DISCO_H747I)
- align files for each target
2019-10-31 14:38:37 +01:00
Martin Kojtal eea83007be
Merge pull request #11203 from Tharazi97/Watchdog_lower_limit_timeout_test
Add watchdog lower limit timeout test
2019-10-31 14:25:52 +01:00
Martin Kojtal 50abaa6eb7
Merge pull request #11697 from hugueskamba/hk-fix-lock-deep-sleep-usb-cypress
USB-Cypress: Lock sleep when USB is initialized
2019-10-31 14:15:35 +01:00
jeromecoutant 0c740e7095 STM32H7: update PeripheralPin generation script and pin files accordingly 2019-10-31 14:11:00 +01:00
jeromecoutant d7d0d0b8cb STM32H7 FLASH and DEVICE_KEY
- Enable FLASHIAP for all H7 boards
- Use "TDB_INTERNAL" for all H7 boards
- Define specific internal_base_address only for DISCO_H747I_CM7
  (default address is the end of FLASH which is correct for other H7 boards)
- Correct GetSectorBase function with Dual Bank information
2019-10-31 13:04:49 +01:00
Martin Kojtal 73b4f717be
Merge pull request #11759 from LMESTM/stm_qspi_address
STM32 QSPI: Use defines for setting address size
2019-10-31 10:38:58 +01:00
Martin Kojtal 0744e672ed
Merge pull request #11765 from yarbcy/pr/dev-arm-issue-11643
Cypress: fix GPIO mode NONE
2019-10-31 09:59:28 +01:00
Chun-Chieh Li 0260f1b3df NANO130: Remove unnecessary synchronization in analog-in HAL
Driver AnalogIn has done with it, so remove synchronization in analog-in HAL.
2019-10-31 15:23:57 +08:00
Chun-Chieh Li 72ea613a12 Nuvoton: Add i2c_free
1.  Disable interrupt
2.  Disable IP clock
3.  Free up pins

Support targets:

-   NUMAKER_PFM_NANO130
-   NUMAKER_PFM_NUC472
-   NUMAKER_PFM_M453
-   NUMAKER_PFM_M487/NUMAKER_IOT_M487
-   NU_PFM_M2351*
-   NUMAKER_IOT_M263A
-   NUMAKER_M252KG
2019-10-31 15:22:57 +08:00
Chun-Chieh Li 3abd02614a Nuvoton: Add analogin_free
1.  Deal with channel-wise and module-wise
2.  Disable IP clock
3.  Free up pin

Support targets:

-   NUMAKER_PFM_NANO130
-   NUMAKER_PFM_NUC472
-   NUMAKER_PFM_M453
-   NUMAKER_PFM_M487/NUMAKER_IOT_M487
-   NU_PFM_M2351*
-   NUMAKER_IOT_M263A
-   NUMAKER_M252KG
2019-10-31 15:19:15 +08:00
Ryan Morse b5d2eec1b9 Update CM0P pre-built images to release 1.0.0.35 2019-10-30 09:32:37 -07:00
Przemyslaw Stekiel b35a6797d0 Fix for issue #11769 (Cypress: PWM FPGA test wrong assert)
Implementation of pwmout_read() is not consistent with the requirements.
This function should return the current float-point output duty-cycle in range <0.0f, 1.0f>.
Currently it returns decimal percentage value.
2019-10-30 15:26:56 +01:00
Przemyslaw Stekiel c83307e96c NRF52: Fix PWM driver
Fix pwm nrf
2019-10-30 14:37:30 +01:00
Przemyslaw Stekiel ee519e6a5c NUCLEO_F411RE, NUCLEO_L073RZ, NUCLEO_F303RE: Disable Analogin D13(PA_5) pin.
Analogin test fails on D13(PA_5) pin. When logic one (3.3V) is provided on this pin ADC reads 0.86 value. On other pins we got 0.98.
This is caused because this pin is connected to led2.
2019-10-30 14:34:57 +01:00
Janne Kiiskila a48500183e Fix for the H747 flash driver / cache cleaning
This copies the approach of the STM32F7 flash driver submitted via
PR https://github.com/ARMmbed/mbed-os/pull/10248

With this change the board finally passes all of the device key
tests 10/10 times correctly.
2019-10-30 15:25:20 +02:00
Janne Kiiskila 8e5f962151 Add FLASHIAP component to DISCO_H747
FLASHIAP component/capability is needed for DeviceKey functionality
and also for Pelion enablement - firmware update uses this feature, too.
2019-10-30 15:25:13 +02:00
Maciej Bocianski 96a1c1ae8f LPC55S69: fix serial_set_flow_control 2019-10-30 14:15:09 +01:00
yarb 50b0847003 Cypress: fix gpio mode none 2019-10-30 12:03:53 +02:00
Martin Kojtal 92acf95d61
Merge pull request #11767 from LMESTM/Increase_deep_sleep_latency
Increase STM32 default deep sleep latency to 4ms
2019-10-30 10:06:50 +01:00
Martin Kojtal 2203549b37
Merge pull request #10924 from ghseb/free-serial-resources-2
Free serial resources if not needed anymore
2019-10-30 09:45:22 +01:00
Martin Kojtal a07286676b
Merge pull request #11756 from JammuKekkonen/add_ccmram_section_for_f303re
Add option to use CCMRAM on F303xE.
2019-10-30 09:10:42 +01:00
Martin Kojtal df2cfae85b
Maxim: fix serial free
There is no Shutdown function for this target
2019-10-29 13:33:12 +00:00
Laurent Meunier d00130ec5e Increase STM32 default deep sleep latency to 4ms
Recent measurements have shown that the total wake-up latency can be more
than the 3ms initially set. It was measured as 3,7ms on DISCO_L475VG_IOT01A
target and 3,1ms on NUCLEO_L073RZ target. So set it to 4ms to be on the
safe side.
2019-10-29 14:33:09 +01:00
Jammu Kekkonen 4dc4bfff9a Add option to use CCMRAM on F303xE. 2019-10-29 12:54:27 +02:00
Martin Kojtal 87b150a1fe
Merge pull request #11715 from miteshdedhia7/pr/target-cyw9p62s1-43012
Add CYW9P62S1_43012EVB_01 board
2019-10-29 10:29:10 +01:00
Laurent Meunier 28c908fdef STM32 QSPI: Use defines for setting address size 2019-10-28 15:38:53 +01:00
Martin Kojtal df79609cc5
Merge pull request #11675 from jeromecoutant/PR_USB_STEP1
STM32 USB update step 1
2019-10-28 14:06:15 +01:00
Martin Kojtal 4b21157085
Merge pull request #11739 from maciejbocianski/nrf52_i2c_byte_rw_fix
Nrf52 i2c byte rw fix
2019-10-28 13:16:49 +01:00
Maciej Bocianski 703348acc8 NRF52: fix i2c byte read/write implementation
i2c_byte_write implementation was broken.
Data sending was inside addressing block

Changed from:
i2c_byte_write
{
   if (start) {
      if (read_address)
         start read;
      esle
         start write;
      write byte;
   }
}

to:
i2c_byte_write
{
   if (start) {
      // if first call after start
      // address for reading or writing
      if (read_address)
         start read;
      esle
         start write;
      } else {
         // send data byte
         write byte;
   }
}
2019-10-28 08:41:12 +01:00
Chun-Chieh Li 26e6b15110 M2351: Re-build default secure image/gateway library to favor Pelion application
In this new memory partition, secure program is most simplified and non-secure program can make most use of memory for its large application like Pelion:

-   Flash (512KiB in total): 64KiB for secure and 448KiB for nonsecure.
-   SRAM (96KiB in total): 8KiB for secure and 88KiB for nonsecure.

Besides, to make secure program fit into 8KiB:

-   Decrease boot stack size to 0x600 bytes
-   Remove serial support
2019-10-28 10:23:43 +08:00
Chun-Chieh Li 59771b704d M2351: Remove redundant tickless-from-us-ticker
It should be and has been placed in overrides section.
2019-10-28 10:22:05 +08:00
Chun-Chieh Li ec08bf6451 M2351: Change base target name 'NU_PFM_M2351_CM' to 'NU_PFM_M2351'
This is to meet platform name 'NU_PFM_M2351' registered in mbed-os-tools. This tool
uses the platform name as a key to search platform related properties in targets.json.
For example, the property 'forced_reset_timeout' is critical for Greentea test.
2019-10-25 14:05:43 +08:00
Sebastian Stockhammer 2e81dad1f3 Fix build 2019-10-24 14:02:12 +02:00
Sebastian Stockhammer a77a49d6d2 Add serial_free definition 2019-10-24 13:07:37 +02:00
Martin Kojtal 8637069b36
Merge pull request #11698 from kjbracey-arm/armstack
Clean up ARM toolchain heap+stack setup in targets
2019-10-24 11:37:11 +02:00
Martin Kojtal 58ef53aa10
Merge pull request #11734 from maciejbocianski/nxp_lpc55s69_i2c_pinmap_fix
nxp LPC55S69: fix i2c pin mapping
2019-10-24 11:19:10 +02:00
Sebastian Stockhammer 37b54ca44b Add serial_free stub 2019-10-24 10:24:35 +02:00
Chun-Chieh Li 8161386268 M2351: Update default secure image/gateway library
Update for change of TRNG security attribute
2019-10-24 10:55:24 +08:00
Chun-Chieh Li 4cd0332ada NUVOTON: Re-implement TRNG HAL with TRNG H/W
Targets supporting TRNG H/W:

-   NU_PFM_M2351_*
-   NUMAKER_IOT_M263A
2019-10-24 10:55:03 +08:00
Chun-Chieh Li 3f9ba9e61f NUVOTON: Fix BSP/MKROM header
Related targets:
-   NU_PFM_M2351_*
-   NUMAKER_IOT_M263A
2019-10-24 09:36:25 +08:00
Chun-Chieh Li d993c5a108 NUVOTON: Re-implement __PC() with toolchain built-in
Re-implement __PC() by replacing BSP assembly with toolchain built-in.
2019-10-24 09:36:25 +08:00
Chun-Chieh Li 3548d38a98 M2351: Change TRNG security attribute to secure 2019-10-24 09:36:24 +08:00
Chun-Chieh Li c326e07eb1 M2351: Update BSP/crypto driver 2019-10-24 09:36:24 +08:00
Maciej Bocianski bb9197536d nxp LPC55S69: fix i2c pin mapping 2019-10-23 19:49:14 +02:00
Maciej Bocianski 7d5f6cf4a9 NRF52: fix i2c timeouts
add tick to us conversion
2019-10-23 15:00:11 +02:00
Kevin Bracey fb6aa3ef4f Clean up ARM toolchain heap+stack setup in targets
ARM Compiler 6.13 testing revealed linker errors pointing out
conflicting use of `__user_setup_stackheap` and
`__user_initial_stackheap` in some targets. Remove the unwanted
`__user_initial_stackheap` from the targets - the setup is
centralised in the common platform code.

Looking into this, a number of other issues were highlighted

* Almost all targets had `__initial_sp` hardcoded in assembler,
  rather than getting it from the scatter file. This was behind
  issue #11313. Fix this generally.
* A few targets' `__initial_sp` values did not match the scatter
  file layout, in some cases meaning they were overlapping heap
  space. They now all use the area reserved in the scatter file.
  If any problems are seen, then there is an error in the
  scatter file.
* A number of targets were reserving unneeded space for heap and
  stack in their startup assembler, on top of the space reserved in
  the scatter file, so wasting a few K. A couple were using that
  space for the stack, rather than the space in the scatter file.

To clarify expected behaviour:

* Each scatter file contains empty regions `ARM_LIB_HEAP` and
  `ARM_LIB_STACK` to reserve space. `ARM_LIB_STACK` is sized
  by the macro `MBED_BOOT_STACK_SIZE`, which is set by the tools.
  `ARM_LIB_HEAP` is generally the space left over after static
  RAM and stack.
* The address of the end of `ARM_LIB_STACK` is written into the
  vector table and on reset the CPU sets MSP to that address.
* The common platform code in Mbed OS provides `__user_setup_stackheap`
  for the ARM library. The ARM library calls this during startup, and
  it calls `__mbed_user_setup_stackheap`.
* The default weak definition of `__mbed_user_setup_stackheap` does not
  modify SP, so we remain on the boot stack, and the heap is set to
  the region described by `ARM_LIB_HEAP`. If `ARM_LIB_HEAP` doesn't
  exist, then the heap is the space from the end of the used data in
  `RW_IRAM1` to the start of `ARM_LIB_STACK`.
* Targets can override `__mbed_user_setup_stackheap` if they want.
  Currently only Renesas (ARMv7-A class) devices do.
* If microlib is in use, then it doesn't call `__user_setup_stackheap`.
  Instead it just finds and uses `ARM_LIB_STACK` and `ARM_LIB_HEAP`
  itself.
2019-10-23 14:53:49 +03:00
Martin Kojtal e7d95f5f2a
Merge pull request #11536 from jeromecoutant/PR_STM32_EMAC
STM32 EMAC configuration update
2019-10-23 13:10:10 +02:00
Martin Kojtal 97ef25f52f
Merge pull request #11706 from VeijoPesonen/nrf52840_fix_product_anomaly_macro
MCU_NRF52840: Switches to correct Product Anomaly Notification(PAN) macro
2019-10-22 16:28:23 +02:00
Martin Kojtal 5d330bff10
Merge pull request #11684 from manchoz/nrf52_watchdog_api
Add support for nRF52 Watchdog
2019-10-22 14:38:45 +02:00
Martin Kojtal 9db54bc1ee
Merge pull request #11672 from ABOSTM/I2C_FASTMODEPLUS
STM32F767ZI - I2C FastModePlus not properly enabled
2019-10-22 09:46:16 +02:00
Martin Kojtal 83207aef73
Merge pull request #11690 from shuopeng-deng/pr/port-api-changed-to-match-pin-api
Changed mbed gpio-port api to match gpio api
2019-10-22 09:44:35 +02:00
Ryan Morse ecdbdc03dd Added CYW9P62S1_43012EVB_01 board
Notes:
- CRC and TRNG are disabled on this board since the MCU on this board does not have the required hardware.
- QSPI and QSPIF are temporarily removed due to issues related to supporting the new S25FS512S flash chip we have on this board. These will be enabled as soon as we can get the issues resolved.
https://github.com/ARMmbed/mbed-os/issues/11722
2019-10-21 15:36:44 -07:00
jeromecoutant dab09f3138 STM32 USB redesign step 1
No more need to explicitly configure each targets.
Pins are now defined in the PeripheralPin.c file which is build by a script.
2019-10-21 17:12:03 +02:00
jeromecoutant 3950fd0fb2 STM32 targets.json update for USB
Removed unsupported MBED2 features:
- USB_STM_HAL
- USBHOST_OTHER
2019-10-21 17:12:01 +02:00
jeromecoutant 01e798fd6a STM32 clock configuration depending on USB 2019-10-21 17:11:59 +02:00
jeromecoutant 0e1a04b64a STM32WB USB pins addition 2019-10-21 17:11:57 +02:00
jeromecoutant 03dd8d3e22 STM32L4 USB pins addition 2019-10-21 17:11:55 +02:00
jeromecoutant 2c03f3a61e STM32L1 USB pins addition 2019-10-21 17:11:53 +02:00
jeromecoutant a54fdf7585 STM32L0 USB pins addition 2019-10-21 17:11:52 +02:00
jeromecoutant 40739d3b8f STM32H7 USB pins addition 2019-10-21 17:11:50 +02:00
jeromecoutant 905f81851a STM32F7 USB pins addition 2019-10-21 17:11:49 +02:00
jeromecoutant 6f0932033b STM32F4 USB pins addition 2019-10-21 17:11:27 +02:00
Martin Kojtal 278f05bfb9
cy port api: fix styling 2019-10-21 14:58:04 +01:00
Giampaolo Mancini c30ca66e2b Add SPDX identifier 2019-10-21 15:41:41 +02:00
Giampaolo Mancini f9674adaad Fix overflow calculation for reload_value.
Please,  note that this patch fixes upstream bug. See:

https://devzone.nordicsemi.com/f/nordic-q-a/51674/maximum-reload-time-for-wdt
2019-10-21 15:41:41 +02:00
Giampaolo Mancini c79f54c67b Remove default conf macro because typo in nRF SDK 2019-10-21 15:41:41 +02:00
Giampaolo Mancini 92a316711e Fix timeout limits 2019-10-21 15:41:41 +02:00
Giampaolo Mancini 10c78f41e8 Add support for nRF52 Watchdog 2019-10-21 15:41:40 +02:00
Martin Kojtal fe12608226
Merge pull request #11444 from jeromecoutant/PR_QSPI_EXTERNAL
QSPI : Define default pins at drivers level
2019-10-21 15:19:08 +02:00
jeromecoutant 6986daac61 STM32F3 USB pins addition 2019-10-21 14:49:19 +02:00
jeromecoutant 9b3cdd0972 STM32F2 USB pins addition 2019-10-21 14:49:19 +02:00
jeromecoutant 6e3dc7b173 STM32F1 USB pins addition 2019-10-21 14:49:18 +02:00
jeromecoutant 66dea7b5da STM32F0 USB pins addition 2019-10-21 14:49:18 +02:00
jeromecoutant 5afd9ebb60 STM32 PeripheralPins.h update with USB 2019-10-21 14:49:18 +02:00
Martin Kojtal cd415cfb41
Merge pull request #11708 from ABOSTM/FIX_SPI_COMPILATION_WARNING
TARGET_STM: remove warning and fix typo on SPI
2019-10-21 09:40:23 +02:00
Martin Kojtal 42cb19b6d8
Merge pull request #11679 from jeromecoutant/PR_L4_TRNG
STM32L4 TRNG clock configuration
2019-10-21 09:39:24 +02:00
Martin Kojtal 4af05bb370
Merge pull request #11648 from rohfle/target-olimex-stm32e407
OLIMEX_STM32E407_F407ZG: Added new target platform
2019-10-18 16:05:05 +02:00
Martin Kojtal d851a63e46
Merge pull request #11602 from kyle-cypress/pr/qspi-arbitrary-alt-size
Allow for arbitrary QSPI alt sizes
2019-10-18 15:48:16 +02:00
Martin Kojtal 9c82706e6f
Merge pull request #11434 from romanjoe/pr/cy8ckit_064s2_4343w
Initial addition of files to support CY8CKIT_064S2_4343W target
2019-10-18 14:51:59 +02:00
Martin Kojtal 734072ffc3
Merge pull request #11599 from lrusinowicz/spi_fixes
FUTURE_SEQUANA: SPI HAL API fixes
2019-10-18 13:25:08 +02:00
Martin Kojtal 8ff5cf9216
Merge pull request #11700 from toyowata/arch_max_bootloader
Add bootloader support for Seeed Arch-MAX
2019-10-18 10:32:00 +02:00
Alexandre Bourdiol bca9d9500e TARGET_STM: remove warning and fix typo on SPI 2019-10-18 09:48:30 +02:00
Veijo Pesonen a15cdd3194 MCU_NRF52840: Switches to correct Product Anomaly Notification macro 2019-10-18 07:23:59 +03:00
Rohan Fletcher 4b971fbb8f OLIMEX_STM32E407_F407ZG: Added definitions for missing LEDs 2019-10-18 06:37:09 +13:00
Martin Kojtal dba8e77b8c
Merge pull request #11688 from LMESTM/Clearing_UART_TC_Flag_prevents_deepsleep
Clearing UART TC Flag prevents deep sleep, so do not clear it
2019-10-17 14:17:15 +02:00
Hugues Kamba 7e0b56fa0c USB-Cypress: Lock sleep when USB is initialized
None of the USB drivers currently support entering deep sleep mode
while USB is active. To protect USB from malfunctioning lock deep
sleep in USBPhyHw::init.This is done for similar

This was done for all other implementations as part of
https://github.com/ARMmbed/mbed-os/commit/8ffbe5c6033
2019-10-17 13:12:58 +01:00
Martin Kojtal ccc37a181c
Merge pull request #11692 from VeijoPesonen/nrf52840_dk_enable_flashiap
NRF52840_DK: enables FLASHIAP for the device
2019-10-17 14:12:27 +02:00
Martin Kojtal 5747163664
Merge pull request #11694 from d-kato/rza1_fix_components
Fix components setting for GR-PEACH and GR-LYCHEE
2019-10-17 14:00:45 +02:00
jeromecoutant 7db11e0b20 STM32 TRNG clock configuration 2019-10-17 13:51:33 +02:00
toyowata 5389536953 Add bootloader support for Seeed Arch-MAX 2019-10-17 10:05:03 +09:00
Kyle Kearney 8e9877c212 Update STM driver changes for clarity
- Use a switch statement rather than shifting and masking to compute
  the AlternateBytes value.
- Rename rounded_size to alt_bytes to clarify its purpose.
2019-10-16 09:37:27 -07:00
Martin Kojtal 8c860524fb
Merge pull request #11646 from kyle-cypress/pr/bt-wake-swap
Fix swapped BT pins on CYW943012P6EVB-01
2019-10-16 19:13:18 +08:00
Martin Kojtal 16568da47f
Merge pull request #11605 from ABOSTM/DISCO_H747I_DUALCORE_SUPPORT
DISCO_H747I dualcore support
2019-10-16 17:35:25 +08:00
d-kato 307c106ec6 Fix multiple definitions of GR-LYCHEE 2019-10-16 16:33:05 +09:00
d-kato 2bf1b5c8cc Add FLASHIAP to GR-PEACH component 2019-10-16 16:28:41 +09:00
Martin Kojtal c94ae909a8
Merge pull request #11622 from trowbridgec/increase-nrfx-gpiote-config-num-of-low-power-events
nRF52 SDK 15.0 - Enable more than 1 interrupt
2019-10-16 14:26:04 +08:00
Veijo Pesonen b6453ef2cc NRF52840_DK: enables FLASHIAP for the device 2019-10-16 08:45:57 +03:00
Shuopeng Deng 24991a4577 Changed mbed gpio-port api to match gpio api
The port configuration api was not correctly setting the port-pins'
direction. Changed the port driver to call the gpio driver for
configuration (read and write still are optimized for port-level
operations) so that the behavior is consistent.
2019-10-15 11:43:00 -07:00
jeromecoutant f117d3518d QSPIF frequency setting depends on QSPI memory not target.
This makes new board with the same QSPI memory addition.
2019-10-15 17:36:50 +02:00
Martin Kojtal ea3ead0349
Merge pull request #11676 from maciejbocianski/nrf5X_fix_i2c_twi_sdk
nrf52 - fix i2c/twi driver
2019-10-15 22:16:19 +08:00
Martin Kojtal fb2999982b
Merge pull request #11671 from maciejbocianski/nrf5X_add_misisng_gpio_function
nrf5x - add missing gpio_set implementation
2019-10-15 22:15:18 +08:00
Laurent Meunier e862438fad Clearing UART TC Flag prevents deep sleep, so do not clear it
The TC flag is used in function serial_is_tx_ongoing to check if there is
an ongoing serial transmission. So this Flag must not be cleared at the
end of the transmission, otherwise, serial_is_tx_ongoing will notify that
TX is ongoing.

The impact is that it may prevent deep sleep to be entered.

Also there is no need to clear this flag at the end of the transaction
because it will be cleared automatically by HW when a new transmission
starts.
2019-10-15 15:59:51 +02:00
Martin Kojtal 9aee314803
Merge pull request #11673 from JanneKiiskila/stm32f4xx-hal-pcd
stm32f4xx_hal_pcd.c@346,22: unused variable 'ep'
2019-10-15 21:40:15 +08:00
Filip Jagodzinski fe685068ff Silicon Labs: Fix watchdog features build errors 2019-10-15 15:40:10 +02:00
Roman Okhrimenko 27f9cf85de Added specific policy file for 2M device to expand slot sizes 2019-10-15 16:07:56 +03:00
Alexandre Bourdiol 728a1c4383 STM32F767ZI - I2C FastModePlus not properly enabled 2/2
Warning: sometimes I2C_FASTMODEPLUS_I2Cx is defined,
even if not supported by some chip within the family
2019-10-15 13:46:29 +02:00
Martin Kojtal 262a62a375
Merge pull request #11645 from kyle-cypress/pr/psoc6-tickless
Enable tickless for PSoC6 targets
2019-10-15 19:28:11 +08:00
Janne Kiiskila 02c139f27a stm32f4xx_hal_pcd.c@346,22: unused variable 'ep'
Compiler warning fix, trivial. One function has an unused
variable, delete that line.
2019-10-15 09:49:09 +03:00
Martin Kojtal e8804cd574
Merge pull request #11668 from morser499/pr/whd_1.40
Update Cypress WiFi driver code to version 1.40
2019-10-15 13:13:17 +08:00
Martin Kojtal 89c08f5865
Merge pull request #11669 from morser499/pr/rtos-abstraction
Fixed issue with integer overflow when converting time units
2019-10-15 13:09:37 +08:00
Martin Kojtal a806237226
Merge pull request #11660 from shuopeng-deng/pr/spi-transfer-fix
Fix dropped bytes on spi write
2019-10-15 13:08:32 +08:00
Martin Kojtal 2fe14682fa
Merge pull request #11609 from madchutney/iotbtool/407-microbit-fix
IOTBTOOL-407 Fix microbit to use Arm C5
2019-10-15 13:07:00 +08:00
Shuopeng Deng 9f03a1ce24 fixed spi_master_write to support transfer of 8+ bits
remove an unnecessary cast
2019-10-14 14:04:37 -07:00
Alexandre Bourdiol 6397a1d555 Mbed patch of STM32cube for bootloader: use NVIC_FLASH_VECTOR_ADDRESS 2019-10-14 18:03:47 +02:00
Alexandre Bourdiol 02cdac5fe3 Update HAL/LL EXTI to have default API applied on current core and nott CPU1 2019-10-14 18:03:28 +02:00
Alexandre Bourdiol 48aba33204 SystemCoreClock should correspond to current core clock and not D1 clock. 2019-10-14 18:03:06 +02:00
Alexandre Bourdiol adcf0e2fa5 DISCO_H747I Dualcore support
Add 2 targets for DISCO_H747I dualcore:
* DISCO_H747I      -> for CM7 core
* DISCO_H747I_CM4  -> for CM4 core

Current restrictions:
* TICKLESS deactivated
* DeepSleep not supported (DeepSleep wrapped to sleep)

Warning: use of the same IP (example I2C1) by both core at the same time is not prevented,
but is strongly not recommended.
Some Hardware Semaphore are use for common IP, to manage concurrent access by both cores: Flash, GPIO, RCC.

Warning: Drag and drop of binary to DISCO_H747I will flash CM7.
         In order to flash CM4, one can use STM32 CubeProgrammer tool.
2019-10-14 18:02:57 +02:00
Martin Kojtal 8ff444ff80
Merge pull request #11621 from jeromecoutant/PR_L1_VREFINT_CAL_ADDR
STM32L151: update calibration memory address
2019-10-14 09:23:16 +02:00
Martin Kojtal 379787a127
Merge pull request #11626 from jeromecoutant/PR_DISCO_L4R_STMOD
DISCO_L4R9I: update default STMOD+ pin
2019-10-14 09:22:35 +02:00
Maciej Bocianski 7cc0b614bb nrf52 - fix i2c/twi driver
Sync TWI driver to sdk version 15.3.0 to get rid of data length limitation
2019-10-12 08:59:57 +02:00
Roman Okhrimenko 9b86b391b2 Initial addition of files to support CY8CKIT_064S2_4343W target 2019-10-11 19:28:17 +03:00
Anna Bridge c094ad8095
Merge pull request #11561 from kyle-cypress/pr/target-063-ble
Add TARGET_CY8CPROTO_063_BLE
2019-10-11 14:39:29 +01:00
Anna Bridge 489c30f569
Merge pull request #11297 from kyle-cypress/pr/qspi-dummy-cycles
Differentiate alt and dummy cycles in QSPIF
2019-10-11 14:34:17 +01:00
Anna Bridge 97e11cc781
Merge pull request #11176 from OpenNuvoton/nuvoton_m252kg
Support Nuvoton target NUMAKER_M252KG
2019-10-11 14:33:06 +01:00
Maciej Bocianski 98939e2749 nrf5x - add missing gpio_set implementation 2019-10-11 08:55:23 +02:00
Ryan Morse f35328cfa0 Update WHD to v1.40 2019-10-10 12:08:50 -07:00
Ryan Morse 373580d4bd Fixed issue with integer overflow when converting time units 2019-10-10 10:28:34 -07:00
Alexandre Bourdiol 66765332e0 STM32F767ZI - I2C FastModePlus not properly enabled
Fixes #11659
2019-10-10 10:26:59 +02:00
Kyle Kearney 4619f92326 Fix swapped pins for CYW943012P6EVB-01 in cybsp_types
Fix the issue as 09f715c96e in
cybsp_types.h as well.
2019-10-09 14:44:39 -07:00
Rohan Fletcher 02df759c37 OLIMEX_STM32E407_F407ZG: Added new target platform
Added Olimex STM32-E407 (STM32F407ZG) evaluation board.
USB, UART, External HS XTAL and Ethernet are all working correctly.
2019-10-10 09:20:28 +13:00
Shuopeng Deng 1b141209eb Fix dropped bytes on spi write
The cyhal_spi_send api was changed to read and discard a byte on every
send operation (at the protocol level all SPI transfers are bidirectional).
This means that to achieve a truly bidirectional transfer, the
cyhal_spi_transfer API must be called (as opposed to a write followed
by a read).
2019-10-08 16:37:31 -07:00
Anna Bridge 1798c246cc
Merge pull request #11625 from gpsimenos/gp-revert-tickless-ublox-odin
Revert tickless on UBLOX_EVK_ODIN_W2
2019-10-08 10:45:43 +01:00
Kyle Kearney 09f715c96e Fix swapped BT pins on CYW943012P6EVB-01
The BT_DEVICE_WAKE and BT_HOST_WAKE pins were swapped relative to
how the chips are wired up on the board.
2019-10-07 20:46:03 -07:00
Kyle Kearney 0c15ed1e13 Enable tickless for PSoC6 targets 2019-10-07 15:53:25 -07:00
Anna Bridge f1295b9aa7
Merge pull request #11573 from felser/add_413_dragonfly
Add 413 dragonfly
2019-10-07 16:48:07 +01:00
Anna Bridge f987fe0b32
Merge pull request #11542 from morser499/pr/target-update
Update Cypress targets
2019-10-07 16:44:59 +01:00
jeromecoutant fc5b91a36f DISCO_L4R9I: update default STMOD+ pin 2019-10-07 16:01:16 +02:00
jeromecoutant 99e4f228b5 STM32: remove unused TARGET_STM_EMAC additional directory 2019-10-07 11:18:14 +02:00
Anna Bridge 7eb8807a76
Merge pull request #11589 from jamesbeyond/fm_psa
Enable PSA tests for fastmodel
2019-10-04 12:01:19 +01:00
George Psimenos 508775c240 Revert tickless on UBLOX_EVK_ODIN_W2 2019-10-03 15:57:25 +01:00
Chris Trowbridge 26ebc997e0 Increase NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS from a default of 1 to 4 2019-10-03 08:56:39 -04:00
jeromecoutant 1673e8aa1b STM32L151: update calibration memory address 2019-10-03 14:17:04 +02:00
Graham Hammond 18c5d47c68 IOTBTOOL-407 Fix microbit to use Arm C5
Earlier changes introduced a change to default Arm C6, which does not compile the micro library which is based on Mbed 2. This change fixes the compiler version for NRF51_MICROBIT devices.
2019-10-01 16:30:03 +01:00
Martin Kojtal fda544a14c
Merge pull request #11566 from trowbridgec/add-default-connectivity-config-for-ep-agora
EP_AGORA: Add config logic to enable BLE, cell, and LoRa by default
2019-10-01 13:17:59 +02:00
Kyle Kearney 9b32c0f316 Fix possible negative QSPI alt count on STM
Remove an extraneous decrement operation in cases where the alt
bits size is a multiple of 8.
2019-09-30 16:00:24 -07:00
Matthew Macovsky baf375f8cb Allow for arbitrary QSPI alt sizes
The QSPI spec allows alt to be any size that is a multiple of the
number of data lines. For example, Micron's N25Q128A uses only a
single alt cycle for all read modes (1, 2, or 4 bits depending on
how many data lines are in use).
2019-09-30 14:45:08 -07:00
Ben Cooke dd778c4126 Add MTS_DRAGONFLY_F413RH platform to mbed-os 2019-09-30 13:50:40 -05:00
Qinghao Shi bdff628a6c FASTMODEL: add a comment for TRNG simulation 2019-09-30 16:43:44 +01:00
Qinghao Shi 5089d9de87 FASTMODEL: update trng based on comments 2019-09-30 16:30:51 +01:00
Martin Kojtal 7e62cafc82
Merge pull request #11585 from marcemmers/nrf_port_api
NRF52: Fixed missing guard in port_api.c
2019-09-30 14:46:31 +02:00
Martin Kojtal fa327ea16a
Merge pull request #11583 from jeromecoutant/PULL_REQUEST_CUBE_UPDATE_H7_V1.5.0
STM32H7 ST CUBE V1.5.0 update
2019-09-30 13:59:32 +02:00
Leszek Rusinowicz a690bf305f FUTURE_SEQUANA: SPI HAL API fixes.
- Fixed miscalculation in SPI frequency setup (divider value).
- Added possibility to set up SCK line as NC (usable when SPI peripheral
   is used to handle non-SPI protocols.
- Fixed handlingh of 16-bit (and other >8 bit) transfers.

(cherry picked from commit 7d391f257b4ff6cdd7b43eeaa4894f8ce6d2cf8e)
2019-09-30 12:28:33 +02:00
Marc Emmers a02c50d768 Add newline at end of file 2019-09-30 11:20:56 +02:00
int_szyk d68a802f07 Add watchdog clock accuracy to Nuvoton targets. 2019-09-30 08:10:25 +02:00
int_szyk e2955eb968 Add watchdog clock accuracy to SiliconLabs targets 2019-09-30 08:10:25 +02:00
int_szyk f892ae7f1e Add watchdog clock accuracy to STM targets. 2019-09-30 08:10:24 +02:00
int_szyk 82e5952693 Add watchdog clock accuracy to Freescale targets. 2019-09-30 08:10:24 +02:00
int_szyk c7dfa87bbf Add watchdog clock accuracy to ONSEMI targets. 2019-09-30 08:10:24 +02:00
int_szyk 632098de94 Add watchdog clock accuracy to NXP targets. 2019-09-30 08:10:24 +02:00
int_szyk cb5311654c Add watchdog clock accuracy to Cypress targets. 2019-09-30 08:10:24 +02:00
Ryan Morse 54d962a240 Moved TriggerMux initialization out of the HAL and into the BSP since that is what dictates what trigger muxes actually need to be used 2019-09-27 13:01:38 -07:00