Commit Graph

28544 Commits (a745525a543ddc5f78ec76c69d05ece0498116fb)

Author SHA1 Message Date
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
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
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
Stephan Brunner d7f3fcc3d3
Add error check for _sync() in I2CEEBlockDevice::read 2020-02-10 10:31:41 +01: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
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
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 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
Hugues Kamba 8910c24fdc Fix BufferedSerial visibility of private base class enum enumerators
Each enum enumerator needs to be exposed to be usable in the sub class.
2020-02-06 15:29:32 +00:00
Evelyne Donnaes ae57b4303e Fix thread_sleep_for zero 2020-02-06 15:19:18 +00:00
Filip Jagodzinski ae635d5cd4 STM32L4: Fix the UART RX & TX data reg bitmasks
The existing logic was insufficient to properly handle odd and even
parity setting, e.g. serial_getc() returned 9-bit data for 8O1
transmission format.
2020-02-06 14:07:51 +01:00
Przemyslaw Stekiel 8fda5a453a Use dedicated macros to skip test cases instead target macro. 2020-02-06 12:53:41 +01:00
Martin Kojtal 8dc15ee6e1
Merge pull request #12293 from mirelachirica/remove_empty_api
Cellular: Remove API's empty default implemetations
2020-02-06 09:05:40 +00:00
Martin Kojtal 9017957638
Merge pull request #12377 from miteshdedhia7/pr/psoc6cm0p-update-1.1.0
Update psoc6cm0p asset to 1.1.0
2020-02-06 09:05:10 +00:00
Martin Kojtal 952799ccc8
Merge pull request #12270 from VeijoPesonen/bugfix_sfdp_parse_sfdp_headers
BUGFIX: SFDP Sector Map Table Parameter ID LSB is 0x81
2020-02-06 08:48:16 +00:00
Martin Kojtal 9e0642d518
Merge pull request #12359 from NXPmicro/MXRT1050_Bootloader_Support
MXRT1050: Add bootloader support
2020-02-06 08:10:45 +00:00
Martin Kojtal acece11e7a
Merge pull request #12320 from mtomczykmobica/ONME-3433
ONME-3433 ESP8266 driver support for UDP get - modified ESP8266 drive…
2020-02-06 08:10:00 +00:00
midd 3dbfed058e Update psoc6cm0p asset to 1.1.0 2020-02-05 12:40:17 -08:00
Mahesh Mahadevan 8b46e91a28 MIMXRT1050: Update for deep sleep latency
1. Do not disable and enable osillators during deep sleep
   entry and exit
2. Increase the deep sleep to pass tests

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2020-02-05 10:38:53 -06:00
Martin Kojtal 96861107f5
Merge pull request #12251 from kivaisan/remove_friends_from_statemachine
Cellular: Remove friend definitions from cellular state machine
2020-02-05 14:51:29 +00:00
Martin Kojtal 32675cc6ac
Merge pull request #11874 from fkjagodzinski/armc6_build-enable_lto_for_release
ARMC6: Add a build profile extension with the link-time optimizer enabled
2020-02-05 14:42:16 +00:00