Commit Graph

28557 Commits (0c8add6e28d03ed56eecbd20cd563faf94bfb1da)

Author SHA1 Message Date
jeromecoutant 0c8add6e28 DISCO_H747I_CM4 compilation issue
SCB_DisableDCache() function is only available for M7 core.
2020-02-12 09:14:58 +01:00
Martin Kojtal 69a7d67699
Merge pull request #12391 from 0xc0170/fix_mergify_conflict
mergify: CI only if PR is without conflicts
2020-02-11 15:45:38 +00:00
Martin Kojtal 8e522056a0
Merge pull request #12404 from OpenNuvoton/nuvoton_m2351_bsp
M2351: Update BSP and bugfix
2020-02-11 15:43:10 +00:00
Martin Kojtal bb86c0e4d0
Merge pull request #12400 from rajkan01/armc5_build_tool_exception
Add an exception for ARMC5 toolchain build
2020-02-11 14:05:12 +00:00
Martin Kojtal c1eaf2c358
Merge pull request #12380 from mprse/DISCO_L475VG_IOT01A_add_gpio_pinmap
DISCO_L475VG_IOT01A: Add a list of restricted GPIO pins for testing
2020-02-11 11:58:53 +00:00
Martin Kojtal a745525a54
Merge pull request #12342 from fkjagodzinski/fix-nxp-hal_fpga
LPC55S69: Fix UART & GPIO HAL to pass FPGA CI test shield tests
2020-02-11 11:03:22 +00:00
Martin Kojtal d3078a39b1
Merge pull request #12379 from mprse/STDIO_UART_restricted_all
Add STDIO UART as restricted for FPGA testing for all targets and support for restricting GPIO
2020-02-11 10:20:25 +00:00
Martin Kojtal 4ec6228e70
Merge pull request #12393 from GaborAbonyi/musca_a1_linker_fix
Fix Musca-A1 gcc linker
2020-02-11 08:31:39 +00:00
Martin Kojtal 8c51f4f163
Merge pull request #12395 from boomer41/fix-i2ceepromblockdevice
Fix I2CEEBlockdevice
2020-02-10 14:28:11 +00:00
Martin Kojtal a8e87236de
Merge pull request #12368 from mprse/NRF_Serial_Fpga_fix
Fix NRF52840_DK UART driver and adapt FPGA test
2020-02-10 14:26:31 +00:00
Martin Kojtal 563c1169b8
Merge pull request #12349 from artokin/wisun_configuration_update
Nanostack: Update Wi-SUN configuration
2020-02-10 14:25:08 +00:00
Martin Kojtal 94e191f57a
Merge pull request #12399 from kivaisan/delete_context_if_activation_fails
Cellular: Delete created context if activation fails
2020-02-10 14:21:30 +00:00
Martin Kojtal 88438dfd6c
Merge pull request #12394 from miteshdedhia7/pr/bug-fix-misc
Fix SDIO communication issue on Cypress 1M boards and other minor fixes
2020-02-10 14:05:11 +00:00
Martin Kojtal 7fd5119b89
Merge pull request #12341 from fkjagodzinski/fix-stm-hal_fpga
STM32L4: Fix the UART RX & TX data reg bitmasks
2020-02-10 13:21:31 +00:00
Martin Kojtal 67772887ca
Merge pull request #12383 from evedon/fix-thread_sleep_for-zero
Fix thread_sleep_for with zero wake_delay
2020-02-10 13:18:26 +00:00
Martin Kojtal da7c641f17
Merge pull request #12386 from jamesbeyond/unittest-fix
TEST: fix a bug in ATCmdParser test
2020-02-10 13:17:51 +00:00
Martin Kojtal 3e628777cc
Merge pull request #12152 from ARMmbed/targets-json-detect-codes
Updated 113 targets with missing detect_codes
2020-02-10 13:04:48 +00:00
Martin Kojtal deb4995dae
Merge pull request #12150 from Patater/update-tls-crypto-20191220
Update Mbed TLS and Mbed Crypto to latest as of 2019-12-20
2020-02-10 13:04:12 +00:00
Martin Kojtal f8808384d3
Merge pull request #12389 from 1sadiqsa0/1sadiqsa0-patch-1
Update InterruptIn.h
2020-02-10 12:59:12 +00:00
Rajkumar Kanagaraj 03d57b7ba2 Add the exception in Mbed OS build tool for Arm Compiler 5 toolchain. 2020-02-10 04:06:07 -08:00
Kimmo Vaisanen 2b19fd8661 Cellular: Delete created context if activation fails
If new context is created but the activation fails to any error, it will
be automatically deleted.

Fixes issue #12381
2020-02-10 13:14:21 +02:00
Martin Kojtal 4e70d04a57 Merge pull request #12382 from hugueskamba/hk-fix-bufferedserial-exposed-enums
Fix BufferedSerial visibility of private base class enum enumerators
2020-02-10 10:54:08 +00:00
Chun-Chieh Li 3d9c7b2519 M2351: Update PSA secure image/lib with BSP update 2020-02-10 18:37:30 +08:00
Martin Kojtal 0082422f90 Merge pull request #12397 from kivaisan/fix_athandler_ut_test_overflow
Testing: Fix buffer overflow in ATHandler_read_bytes UT test
2020-02-10 10:25:59 +00:00
Chun-Chieh Li ee8236b22e M2351: Update non-PSA secure image/lib with BSP update 2020-02-10 17:50:15 +08:00
Chun-Chieh Li 6f793fbb5a M2351: Fix GPIO rising/falling edge interrupts cannot exist simultaneously 2020-02-10 17:44:55 +08:00
Stephan Brunner d7f3fcc3d3
Add error check for _sync() in I2CEEBlockDevice::read 2020-02-10 10:31:41 +01:00
Chun-Chieh Li a2c9ae6b7d M2351: Update BSP and bugfix
Align with mainline BSP and fix relevant bugs:

1.  Align with SPI module naming
    (1) Remove SPI5
    (2) Degrade QSPI0 to SPI4 so that it can use for standard SPI
2.  Fix some code lacking GPIO H
3.  Implement __PC(...) by following BSP instead of with MBED_CALLER_ADDR()
4.  Add SCU_IRQHandler(). Change printf(...) with interrupt-safe error(...)
5.  Other minor alignment change
2020-02-10 16:23:32 +08:00
Kimmo Vaisanen a66f15dc4b Testing: Fix buffer overflow in ATHandler_read_bytes UT test
Fixes issue #12390
2020-02-10 09:52:39 +02:00
Przemyslaw Stekiel 0d9a54f92e Provide pinmap_uart_restricted_peripherals() function under DEVICE_SERIAL 2020-02-10 08:17:55 +01:00
Chun-Chieh Li 82770d7e2b M2351: Refine PeripheralNames.h
No logic change and bugfix
2020-02-10 09:07:13 +08:00
Stephan Brunner 97c00f1a22 Fix I2CEEBlockDevice read()
When reading a data block, the returned error codes from the I2C subsystem
are different from normal single byte operations. We have to verify that
the read-function for multiple bytes does return zero, because it
returns "readBytes != expectedLength".

Additionally, sync before trying to read from the eeprom as slow devices
may not yet be ready to return data, especially with low-priced ones
used with fast controllers.
2020-02-07 22:57:04 +01:00
midd df5ac6483b Added a multiplied by 2 in the SDIO clock divider calculation to account for internal UDB divider.
Note: Fixes issues with intermittent WiFi firmware load failures on CY8CKIT_062_WIFI_BT, CYW943012P6EVB_01, CYW9P62S1_43012EVB_01, CYW9P62S1_43438EVB_01.
2020-02-07 10:25:24 -08:00
midd 5f496a694c Add missing error checks for emac power up. 2020-02-07 10:25:15 -08:00
midd 8a986f7dcc Remove wounding for the hardware CRYPTO block. The PSoC 6 MPN CYW9P62S1_43012EVB_01 was revised to add the hardware crypto block. 2020-02-07 10:24:57 -08:00
jeromecoutant 2368a07244 STM32: Fix the UART RX & TX data reg bitmasks 2020-02-07 16:23:50 +00:00
thegecko ff1fc2cd87 Updated 113 targets with missing detect_codes 2020-02-07 16:02:05 +00:00
Gabor Abonyi a5a6912b0e Fix Musca-A1 gcc linker
Was broken since 3e3af70afc

Signed-off-by: Gabor Abonyi <gabor.abonyi@arm.com>
2020-02-07 16:33:32 +01:00
Martin Kojtal 59746d7397 mergify: CI only if PR is without conflicts
Conflict -> needs: work
2020-02-07 15:09:57 +00:00
Przemyslaw Stekiel a0ff95bed5 LPC55S69: Add restricted GPIO pins for FPGA testing 2020-02-07 13:32:32 +01:00
Filip Jagodzinski 83b7b6d142 LPC55S69: Fix serial IRQ handling
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2020-02-07 13:32:32 +01:00
Shaik Abdul Sadiq 9eb9011861
Update InterruptIn.h
Falling edge doc correction.
2020-02-07 16:51:02 +05:30
Martin Kojtal d847f9f164
Merge pull request #12305 from kivaisan/remove_multi_athandler_support_v2
Cellular: Remove support for multiple ATHandlers
2020-02-07 11:00:41 +00:00
Martin Kojtal e68915392b
Merge pull request #12287 from maciejbocianski/fix_unittests_on_windows
Fix unittests on windows(mingw)
2020-02-07 11:00:24 +00:00
Przemyslaw Stekiel 3a71f86235 DISCO_L475VG_IOT01A: Add a list of restricted GPIO pins for testing 2020-02-07 11:41:32 +01:00
Przemyslaw Stekiel 3c0982d939 Add pinmap_gpio_restricted_pins() to provide list of restricted GPIO pins
This is a special case since targets do not provide by default GPIO pin-maps.
This extension is required for FPGA GPIO tests - if some pins have limitations (e.g. fixed pull-up) we need to skip these pins while testing.
To do that we were adding a dummy pin-map with commented out pins that can't be tested because of the limitations.
This solution is redundant and the proposition is to provide a list of restricted gpio pins if required (by default weak implementation is provided with an empty list).

This mechanism will be backward compatible, so the old method with dummy gpio pinmap will also work. The switch from dummy pin-maps to pinmap_gpio_restricted_pins() will be performed in separate commits/PRs.
2020-02-07 10:45:02 +01:00
Przemyslaw Stekiel a4e1354769 Remove pinmap_restricted_peripherals() function from Nuvoton (STDIO uart is restricted by default) 2020-02-07 10:45:02 +01:00
Przemyslaw Stekiel 54f4777e64 Add STDIO UART as restricted for FPGA testing for all targets
Substantiation for this is that the STDIO UART peripheral is used by Mbed, so it should never be tested.

Also solve the potential problem with accidenty skipped peripherals in FPGA testing. Currently, we have a one `pinmap_restricted_peripherals()` function for all interfaces (UART, I2C, SPI, etc.).
The problem can be encountered if different interfaces have the same peripheral ids (e.g. `UART_0` = 0, `SPI_0` = 0). In this case, if `UART_0` is on the restricted list, then SPI tests will be also skipped for `SPI_0`.
The good news is that usually, the peripheral ids are the base addresses of the peripheral's register set, but we can't rely on this. It is also good that `pinmap_restricted_peripherals()` at this moment is only required for STDIO UART (Nuvoton and STM).

To solve this issue we will change name of `pinmap_restricted_peripherals()` to `pinmap_uart_restricted_peripherals()`, make STDIO UART restricted by default for all targets and update FPGA test utilily functions to use `pinmap_uart_restricted_peripherals()` to skip only uart peripherals.
In the future if needed we can consider to add support to restrict peripherals of other interfaces(SPI, I2C, etc).
2020-02-07 10:45:02 +01:00
Martin Kojtal 2719090f93
Merge pull request #12364 from NXPmicro/MXRT1050_Deep_Sleep_Latency
MIMXRT1050: Update for deep sleep latency
2020-02-07 09:39:11 +00:00
Qinghao Shi 115f1cc9c8 TEST: fix a bug in ATCmdParser test 2020-02-07 00:44:00 +00:00