Commit Graph

6329 Commits (ceaf562a116ce92c7b2a98ce9653c7b642274f7e)

Author SHA1 Message Date
Przemyslaw Stekiel 5994b1e108 MTB_UBLOX_ODIN_W2: Reenable lp-ticker and BLE
Make an exception for this target and enable lp-ticker when LSE is not available.
This exception is added because of with disabled lp-ticker (and BLE feature) we have the following linker error with ARM compiler:
[Error] @0,0: L6218E: Undefined symbol hciCmdAlloc (referred from BUILD/tests/MTB_UBLOX_ODIN_W2/ARM/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_MODULE_UBLOX_ODIN_W2/sdk/TOOLCHAIN_ARM/libublox-odin-w2-driver.ar(hci_vendor_cmd.o)).
[Error] @0,0: L6218E: Undefined symbol hciCmdSend (referred from BUILD/tests/MTB_UBLOX_ODIN_W2/ARM/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_MODULE_UBLOX_ODIN_W2/sdk/TOOLCHAIN_ARM/libublox-odin-w2-driver.ar(hci_vendor_cmd.o)).

It looks like the folloiwng library must be updated:
targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_MODULE_UBLOX_ODIN_W2/sdk/TOOLCHAIN_ARM/libublox-odin-w2-driver.ar
2020-01-20 09:49:48 +01:00
Przemyslaw Stekiel d9008cc205 Disabled BLE feature for targets without lp-ticker 2020-01-20 09:04:46 +01:00
Przemyslaw Stekiel 68468653be Enable lp-ticker based on LSE for ublox C030 family. 2020-01-20 09:04:46 +01:00
Przemyslaw Stekiel cc49560b63 Disable lp-ticker for STM targets which uses RTC/LSI for lp-ticker
According to the documentation of STM32F437VG76 MCU:

The LSI RC acts as an low-power clock source that can be kept running in Stop and
Standby mode for the independent watchdog (IWDG) and Auto-wakeup unit (AWU). The
clock frequency is around 32 kHz. For more details, refer to the electrical characteristics
section of the datasheets.

It seems that typical LSI frequency is 32 kHz, but it may vary from 17 to 47 kHz!
This means that lp-timer test may fail on the same board because lp-ticker frequency is unstable.
2020-01-20 09:04:45 +01:00
amq 860ccdec5e
EFM32: add UART and LEUART for EFM32GG11
- adds the missing PinMap definitions for UART0, UART1, LEUART0 and LEUART1
- corrects a misplaced `#endif` for `#if DEVICE_SPI` which included `UART_TX`
- all according to https://www.silabs.com/documents/public/data-sheets/efm32gg11-datasheet.pdf
2020-01-18 14:10:22 +01:00
Rajkumar Kanagaraj 8a0fdd24d9 Rename "default_lib" to "c_lib". 2020-01-17 08:05:48 -08:00
Martin Kojtal 3dbf780322
Merge pull request #12253 from VeijoPesonen/remove_depr_storage_abstraction
storage_abstraction: deprecated since Mbed OS 5.5 and now removed
2020-01-17 14:02:45 +00:00
Martin Kojtal 0266a95fb6
Merge pull request #12223 from d-kato/rza1xx_bootloader_support
RZ_A1H and GR_LYCHEE: Enable bootloader support
2020-01-17 13:53:36 +00:00
Martin Kojtal b7c961c4ac
Merge pull request #12220 from hugueskamba/hk-replace-uartserial-nordic
NRF5x targets: Replace UARTSerial references with BufferedSerial
2020-01-17 09:59:56 +00:00
Martin Kojtal 6b5cbff743
Merge pull request #12209 from hugueskamba/hk-replace-uartserial-nxp
NXP target: Replace UARTSerial references with BufferedSerial
2020-01-17 08:43:57 +00:00
Martin Kojtal d6e69ef57b
Merge pull request #12208 from hugueskamba/hk-replace-uartserial-st
ST targets: Replace UARTSerial references with BufferedSerial
2020-01-17 08:19:09 +00:00
Martin Kojtal 31988d85fe
Merge pull request #12139 from fkjagodzinski/hal-reset_reason-get_capabilities
HAL: Add a get_capabilities() function to ResetReason API
2020-01-16 14:44:31 +00:00
Martin Kojtal 22042e5349
Merge pull request #12241 from OpenNuvoton/nuvoton_m2351_npsa_secure-minimal-build
M2351: Remove LPTICKER to spare memory for non-PSA minimal secure build
2020-01-16 09:42:44 +00:00
Martin Kojtal 77fa743740
Merge pull request #12245 from JanneKiiskila/target_upd_NUCLEO_WB55RG
NUCLEO_WB55RG - add device name "STM32WB55RGVx"
2020-01-16 09:00:30 +00:00
Martin Kojtal c27e644b96
Merge pull request #12240 from yarbcy/pr/add-new-tests-softap-2
Cypress: Initial commit of SoftAP host tests
2020-01-16 08:36:47 +00:00
Chun-Chieh Li 359d41adef M2351: Remove LPTICKER to spare memory for non-PSA minimal secure build 2020-01-16 09:58:32 +08:00
Janne Kiiskila fabd02d1f6 Enable bootloader for NUCLEO_WB55RG
That's whole reason we wanted to start the changes... Bootloader is
supported.
2020-01-15 14:09:09 +02:00
Janne Kiiskila 7517d95ab6 NUCLEO_WB55RG - add device name "STM32WB55RGVx"
Bootloader compilation will require the device to be in place,
it uses that to pick up the CMSIS-pack info from the index.json.
2020-01-15 14:08:32 +02:00
Martin Kojtal 4c4ed0ab78
Merge pull request #12258 from trowbridgec/disable-ep_agora-cell-aux-uart-by-default
Disable the cell AUX UART by default on EP_AGORA
2020-01-15 13:07:28 +01:00
Martin Kojtal 88f48d240e
Merge pull request #12237 from mprse/stm_serial_free_fix
STM serial free: Set pin function only if pin is defined (not NC)
2020-01-15 13:02:20 +01:00
Martin Kojtal 1a58d07c04
Merge pull request #12199 from ARMmbed/targets-json-format
Format targets.json
2020-01-15 13:00:26 +01:00
Martin Kojtal 978a9665f0
Merge pull request #12201 from jeromecoutant/PR_G0REFACTOR
TARGET_STM: FW driver files refactor proposition
2020-01-15 12:59:49 +01:00
Martin Kojtal cbca99d38f
Merge pull request #12160 from AGlass0fMilk/fix-prs-config
nRF52: Properly configure nRF SDK for nRF52-series targets
2020-01-15 12:58:32 +01:00
Chris Trowbridge a21a0062af Disable the cell AUX UART by default on EP_AGORA 2020-01-14 12:55:16 -05:00
Martin Kojtal 117201d77d "Update secure binaries for NU_PFM_M2351_S (ARMC6)" 2020-01-14 14:27:54 +00:00
Martin Kojtal c9c5b78ca3 "Update secure binaries for ARM_MUSCA_A1_S (ARMC6)" 2020-01-14 14:27:54 +00:00
Martin Kojtal 2f07ad471b "Update secure binaries for LPC55S69_S (ARMC6)" 2020-01-14 13:54:48 +00:00
Veijo Pesonen d0d9338066 K64F: removes a deprecated storage driver
The API was deprecated since Mbed OS 5.5 and has been removed.
2020-01-14 13:15:58 +02:00
d-kato b72d0be687 Add sector information 2020-01-14 11:10:30 +09:00
YARB(Cypress) c53d2f1198 Addressed comments 2020-01-13 14:46:32 +02:00
YARB(Cypress) 3425b8e1fc Cypress: Initial commit of SoftAP host tests 2020-01-10 19:58:40 +02:00
George Beckstein d8fbfbfeb4 Replace macro "UART1_ENABLED" with corresponding "NRFX_UARTE1_ENABLED". 2020-01-10 11:33:11 -05:00
George Beckstein dd98d0102f Update SDK config for nRF52840 to disable UART1 instance (Mbed serial port uses UARTE peripheral) 2020-01-10 11:32:47 -05:00
Przemyslaw Stekiel 8a938ea777 STM serial free: Set pin function only if pin is defined (not NC) 2020-01-10 14:59:28 +01:00
aglass0fmilk dc19460fa3 Remove use of deprecated UART driver (as opposed to UARTE). Disable unused TWIM peripheral (deprecated TWI peripheral is currently used for I2C master mode operation). 2020-01-09 16:35:06 -05:00
George Beckstein b6befee4cf Properly configure PRS API so it actually delegates the shared interrupt slot to the appropriate peripheral 2020-01-09 16:35:06 -05:00
Martin Kojtal 759ce271c2
Merge pull request #12200 from MultiTechSystems/fix_PeripheralPins
Minor fixes for peripheral pins on Dragonfly Nano
2020-01-09 13:17:01 +01:00
Martin Kojtal dbb0695311
Merge pull request #12202 from LMESTM/Increase_MSI_Freq_out_of_deep_sleep
Increase MSI clock frequency when exiting deep sleep
2020-01-09 10:49:20 +01:00
d-kato 3a2ab1b56e GR_LYCHEE: enable bootloader support 2020-01-09 16:18:14 +09:00
d-kato aad53c2377 RZ_A1H: enable bootloader support 2020-01-09 16:15:50 +09:00
Martin Kojtal 40b7901cfb
Merge pull request #12217 from OpenNuvoton/nuvoton_usbd
Nuvoton: Add DEVICE_USBDEVICE detection in usbd implementation
2020-01-08 17:00:23 +01:00
Hugues Kamba efd3763467 NRF5x targets: Replace UARTSerial references with BufferedSerial
`BufferedSerial` is `UARTSerial` renamed to convey the original purpose
of the class. It is the recommended buffered I/O serial class.
2020-01-08 15:42:07 +00:00
Hugues Kamba e0c628cbb7 NRF51822: Fix baremetal linker error
Ensure the NRF51822 `us_ticker.c` module content is compiled in only if
the target supports USTICKER.
2020-01-08 15:33:01 +00:00
Martin Kojtal af03f839e2
Merge pull request #10959 from OpenNuvoton/nuvoton_m2351_psa
M2351: Support TFM level 1
2020-01-08 16:09:35 +01:00
Martin Kojtal c42125f890
Merge pull request #12151 from hugueskamba/hk-nrf-fix-baremetal-build
NRF5x: Fix baremetal linker error
2020-01-08 14:41:26 +01:00
Martin Kojtal 1a6934adc4
Merge pull request #12081 from micgur01/master
Expose target_offset and header_offset parameters in targets.json
2020-01-08 14:01:57 +01:00
cyliangtw b924a922a8 Add DEVICE_USBDEVICE detection in usbd implementation to avoid compiler error on target without usb-device 2020-01-08 19:36:51 +08:00
Martin Kojtal b77f6b457e
Merge pull request #12055 from 0xc0170/fix_12054
cmsis: remove arm math
2020-01-08 12:00:54 +01:00
Hugues Kamba 7819909148 NXP target: Replace UARTSerial references with BufferedSerial
`BufferedSerial` is `UARTSerial` renamed to convey the original purpose
of the class. It is the recommended buffered I/O serial class.
2020-01-08 09:01:19 +00:00
Hugues Kamba 03cff0a02c ST targets: Replace UARTSerial references with BufferedSerial
BufferedSerial is UARTSerial renamed to convey the original purpose of
the class. It is the recommended buffered I/O serial class.
2020-01-08 08:34:20 +00:00
Laurent Meunier 022c0eb7dc Increase MSI clock frequency when exiting deep sleep
This will optimize down the time it takes to restore the clock
settings when getting out of deep sleep.

If 48MHz is available let's use it, otherwise at least 4MHz should be
available for any MCU with MSI.
2020-01-07 17:59:33 +01:00
jeromecoutant 9448ded044 STM32G0: Update G071xx toolchain files with default files 2020-01-07 17:00:30 +01:00
Martin Kojtal fab9e3b6c7
Merge pull request #12176 from OpenNuvoton/nuvoton_usbd
Nuvoton: Support usbd
2020-01-07 16:38:39 +01:00
thegecko 4ae87298a2 Format targets.json 2020-01-07 15:32:49 +00:00
jeromecoutant cf2dfcbc60 STM32G0: introduction of G030/G031/G041/G070/G081 sub-families 2020-01-07 16:07:18 +01:00
jeromecoutant 57f144ec66 STM32G0: remove MBED patch
Goal is to remove all mis-aligment with official ST CUBE delivery
2020-01-07 16:05:34 +01:00
jeromecoutant 631ed0c0b3 STM32G0: move us_ticker_data.h file to family level 2020-01-07 16:02:08 +01:00
jeromecoutant 6d780d8773 STM32G0: move cmsis_nvic.h file to Sub-family level 2020-01-07 16:01:45 +01:00
jeromecoutant 7dd31d0319 STM32G0: move TOOLCHAIN files to Sub-family level 2020-01-07 16:00:40 +01:00
jeromecoutant fd52eb46d1 STM32G0: move files to TARGET_STM32G0/STM32Cube_FW 2020-01-07 16:00:16 +01:00
jeromecoutant 6875d0318e STM32G0: move files to TARGET_STM32G0/STM32Cube_FW/CMSIS 2020-01-07 15:57:04 +01:00
jeromecoutant f322d87d43 STM32G0: move files to TARGET_STM32G0/STM32Cube_FW/STM32G0xx_HAL_Driver 2020-01-07 15:56:19 +01:00
Leon Lindenfelser 94ead7adb2 Minor fixes for peripheral pins on Dragonfly Nano
1. PG8 should be labeled I2C3 not I2C1.
2. PC0 is dedicated to measuring system voltage.
2020-01-07 08:52:34 -06:00
Martin Kojtal 9d16a17e7e
Merge pull request #11653 from tymoteuszblochmobica/multiple
Add  Getaddrinfo interface for multiple DNS adresses
2020-01-07 14:53:36 +01:00
Martin Kojtal 5d71e69f6a
Merge pull request #12186 from mprse/fix_for_issue_12172_stm_serial
STM serial init: Set pin function only if pin is defined (not NC)
2020-01-07 11:38:00 +01:00
cyliangtw 95be7da860 Add CLKSEL0_USBSEL_HIRC48 in m2351_clk.h 2020-01-06 19:08:52 +08:00
Hugues Kamba 15bf72e982 LPC11U24: Fix baremetal build and runtime error
* Add `USTICKER` support for `LPC11U24`.
* Add `tickless-from-us-ticker` and `boot-stack-size` overrides.
2020-01-06 08:47:13 +00:00
Chun-Chieh Li 22e4f93400 [M2351] Add pre-built secure images for PSA 2020-01-06 15:55:01 +08:00
Chun-Chieh Li fc60d1f4bc [M2351] Change memory partition for PSA
1. Change secure/non-secure ROM to 240KiB/272KiB
2. Change secure/non-secure RAM to 64KiB/32KiB
2020-01-06 15:55:01 +08:00
ccli8 9f88fce50e [M2351] Support secure/non-secure combined build for PSA
Support secure/non-secure combined build for PSA target:
1.  In secure post-build, deliver built secure image to TARGET_NU_PREBUILD_SECURE
    directory.
2.  In non-secure post-build, merge non-secure image with secure image saved in
    TARGET_NU_PREBUILD_SECURE directory.
3.  In non-secure post-build, user can also drop secure image saved in
    TARGET_NU_PREBUILD_SECURE directory and provide its own by adding the line below
    in mbed_app.json:
    "target.extra_labels_remove": ["NU_PREBUILD_SECURE"]
2020-01-06 15:55:01 +08:00
Chun-Chieh Li c9b4474d50 [M2351] Merge secure idle/powerdown sequences into one
Merge SYS_UnlockReg_S()/CLK_Idle_S() or CLK_PowerDown_S()/SYS_LockReg_S()
into nu_idle_s() or nu_powerdown_s() when they are available.
2020-01-06 15:55:01 +08:00
Chun-Chieh Li a0a1c4d52c [M2351] Override NS interface by locking kernel scheduler
Lock kernel scheduler rather than mutex to guarantee serialization of NS
secure calls
2020-01-06 15:55:01 +08:00
ccli8 dec84ede7e [M2351] Enforce locked entry into TFM for platform-specific NSC calls
On M2351, some spaces like SYS/CLK are hard-wired to secure and cannot change.
To access these spaces from non-secure world, we must provide platform-specific NSC
functions. With TFM introduced, we must synchronize NSC calls into TFM to keep TFM
in sync instead of straight NSC calls. To achieve this goal, we go with the following
approach:

1. Like PSA APIs, enforce locked entry through tfm_ns_lock_dispatch().
2. Run platform-specific secure functions in default secure partition, in which SYS/CLK
   spaces have been configured to be accessible.
2020-01-06 15:55:00 +08:00
ccli8 41d95ef2fb [M2351] Support TFM level 1 2020-01-06 15:55:00 +08:00
ccli8 76a029e88d [M2351] Support initializing multiple .data/.bss sections with GCC_ARM 2020-01-06 15:54:59 +08:00
ccli8 db11eef0bc [M2351] Remove draft uvisor code with GCC_ARM
uVisor is deprecated since mbed-os 5.10, so remove related code with it.
2020-01-06 15:54:59 +08:00
ccli8 1aca8a5b56 [M2351] Make exported NSC symbols consistent across toolchains
This idea comes from TFM.
2020-01-06 15:54:59 +08:00
Filip Jagodzinski a958199594 TOSHIBA: Add hal_reset_reason_get_capabilities()
Override the default, weak implementation of
hal_reset_reason_get_capabilities() for TMPM066, TMPM3H6, TMPM3HQ,
TMPM46B & TMPM4G9.
2020-01-03 16:54:19 +01:00
Martin Kojtal 078f71d72a nuvoton: remove dsp math from bitutil file 2020-01-03 15:25:02 +00:00
Martin Kojtal 7fd637b66b
Merge pull request #12095 from NXPmicro/Update_MXRT_SDK6
Update MXRT1050 to SDK 6.0
2020-01-03 15:22:13 +00:00
Hugues Kamba 6afca2460e NRF5x: Fix baremetal linker error
DEBUG_NRF_USER gets defined for build profiles (develop, debug)
which do not define NDEBUG (see nrf_assert.h). Therefore the definition
of the function should also be visible if DEBUG_NRF_USER is defined.
2020-01-03 15:14:09 +00:00
Martin Kojtal 83101170a3
Merge pull request #12167 from dustin-crossman/pr/cypress_target_update
Update Cypress Targets and Assets
2020-01-03 13:15:28 +00:00
Przemyslaw Stekiel 79d16ae8f7 STM serial init: Set pin function only if pin is defined (not NC) 2020-01-03 14:14:26 +01:00
cyliangtw 115520a7b8 Add SPDX identifiers in Nuvoton USBD files 2020-01-03 20:40:47 +08:00
cyliangtw eab8555fc8 Support NUC472 with USB 2.0 only and set M487 USB1.1 in default 2020-01-03 20:40:46 +08:00
cyliangtw 4cddc5de25 Add M453 USBD 2020-01-03 20:40:45 +08:00
cyliangtw 6612ee8460 Set NANO130 CLK as 48 MHz for USBD support 2020-01-03 20:40:44 +08:00
cyliangtw abf3eeed64 Support NuMaker M453, NUC472, M2351 & M263 USBD; also support M0 usb-isr non-recloate vector limit 2020-01-03 20:40:43 +08:00
cyliangtw a5aaabff5d NANO130 add extern C into nano100_usbd.h for C++ caller 2020-01-03 20:40:42 +08:00
cyliangtw 93fbef2cde Refine M487 USBD code and build M263A successfully 2020-01-03 20:40:41 +08:00
cyliangtw 9b721bf327 Support M487 USBD 1.1 & 2.0 2020-01-03 20:40:39 +08:00
cyliangtw 84882f773e M487: Fixed USBD serial input pending issue 2020-01-03 20:40:37 +08:00
cyliangtw b34fd309e3 M487: Support USBD 2020-01-03 20:40:36 +08:00
Martin Kojtal 88ae99ffca LPC55S6: remove cmsis powerquad
This file requires CMSIS library (DSP).
2020-01-03 12:30:54 +00:00
Martin Kojtal fc2a71064d
Merge pull request #12068 from rajkan01/feature_bare_metal
Enabling small C library option and deprecating uARM toolchain
2020-01-03 11:35:48 +00:00
Martin Kojtal 4feca5942a
Merge pull request #12178 from tymoteuszblochmobica/lpctls
Fixes for LPC55S69_NS TLS tests
2020-01-03 11:29:49 +00:00
Filip Jagodzinski ffd8d70a55 K64F: Add hal_reset_reason_get_capabilities() 2020-01-03 12:11:45 +01:00
Dustin Crossman f53e10e330 Update psoc6pdl to version 1.4.0 2020-01-02 10:04:45 -08:00
Dustin Crossman 6ef5fb19bd Update abstraction rtos with improved documentation and utilities. 2020-01-02 10:02:18 -08:00
Dustin Crossman 7649d92131 Update psoc6 core_lib with additional documentation and bit manipulation
utilities.
2020-01-02 09:58:26 -08:00