Commit Graph

26890 Commits (835504d30a4d001985e180ae02c6dd2acaa041f9)

Author SHA1 Message Date
Alexandre Bourdiol 5418d70813 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-11-18 15:42:08 +00:00
Kimmo Vaisanen a7868daa89 Cellular: Change visibility of _is_connected as protected
AT_CellularContext::do_connect() is a virtual API and therefore can be overwritten in
inherited class. The problem was that it sets AT_CellularContext::_is_connected flag but
earlier it was set as private member making it impossible to set in overwritten do_connect()
method.

This commit fixes the problem by changing _is_connected as protected enabling its use
in inherited class.
2019-11-18 15:42:08 +00:00
Chris Trowbridge d8b3b5a453 Increase NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS from a default of 1 to 4 2019-11-18 15:42:08 +00:00
jeromecoutant efea334014 STMOD_CELLULAR: update readme 2019-11-18 15:42:08 +00:00
jeromecoutant fb35091432 STMOD_CELLULAR: remove flow control support for DISCO_L4R9I 2019-11-18 15:42:08 +00:00
Maciej Bocianski 1a2a3515ff nrf52 - fix i2c/twi driver
Sync TWI driver to sdk version 15.3.0 to get rid of data length limitation
2019-11-18 15:42:08 +00:00
Maciej Bocianski 13092277d4 nrf5x - add missing gpio_set implementation 2019-11-18 15:42:08 +00:00
Janne Kiiskila 67fbe49819 stm32f4xx_hal_pcd.c@346,22: unused variable 'ep'
Compiler warning fix, trivial. One function has an unused
variable, delete that line.
2019-11-18 15:42:08 +00:00
Kyle Kearney e28a6c5723 Enable tickless for PSoC6 targets 2019-11-18 15:42:08 +00:00
Alex Elium 0876d84613 mbed_rtc_time.h lacks an include guard
This PR adds it
2019-11-18 15:42:08 +00:00
Marcin Tomczyk 91806101c3 Disable emac multicast filtering for unimplemented/unsupported/unworking boards 2019-11-18 15:42:08 +00:00
Sathish Kumar Mani 9acdd53144 Fixes IPv6 multicast join issue
Problem Statement:
During multicast join sequence, InternetSocket::join_multicast_group() calls InternetSocket::modify_multicast_group(). modify_multicast_group() sets up the multicast group address (i.e., mreq.imr_multiaddr) to be joined and the interface address (i.e., mreq.imr_interface) to be used for the multicast join request. The interface address is initialized with the default value, which sets the version of interface address to NSAPI_UNSPEC. This results in LWIP::setsockopt() API to attempt IPv6 multicast join on the IPv4 interface address, hence IPv6 multicast join always fails with the protocol error.

Fix:
Initialize interface address version based on the multicast address version in LWIP::setsockopt(), before attempting multicast join operation.
2019-11-18 15:42:08 +00:00
Ryan Morse 5dc2f981a3 Update WHD to v1.40 2019-11-18 15:42:08 +00:00
Ryan Morse 2d757fc321 Fixed issue with integer overflow when converting time units 2019-11-18 15:42:08 +00:00
Shuopeng Deng 154d51b040 fixed spi_master_write to support transfer of 8+ bits
remove an unnecessary cast
2019-11-18 15:42:08 +00:00
Shuopeng Deng 61218d00ea 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-11-18 15:42:08 +00:00
jeromecoutant 82ecd19e9c STMOD_CELLULAR: set CTS with PullDown 2019-11-18 15:42:08 +00:00
Graham Hammond ea448f5144 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-11-18 15:42:08 +00:00
Ron Eldor 463f00e723 Fix Failure in cc ecdh_alt montgomery curve
Change the order of the input keys and output secret given and
returned from the CC API, to address correct endianity.
2019-11-18 15:42:08 +00:00
Martin Kojtal 679d24833a
Merge pull request #11696 from ARMmbed/release-candidate
Release candidate for mbed-os-5.14.1
2019-10-16 23:08:49 +02:00
adbridge a4715aab32 "Update secure binaries for ARM_MUSCA_A1_S (ARMC6)" 2019-10-16 13:00:44 +01:00
adbridge 455bb9ec68 "Update secure binaries for LPC55S69_S (ARMC6)" 2019-10-16 12:31:35 +01:00
adbridge 070269295f Add OKDO platform
Manually ported from PR11407
2019-10-16 12:10:38 +01:00
Jarkko Paso 9051e21f39 Merge commit 'ffb05c770964013a9f1ee9fb89d25e9fd09e886d'
* commit 'ffb05c770964013a9f1ee9fb89d25e9fd09e886d':
  Squashed 'features/nanostack/coap-service/' changes from e9edb1b..b919a33
2019-10-16 12:06:09 +01:00
Jarkko Paso a8c0491173 Merge commit '3e6cb31659a56d343c7b8fe37645f195eb87ffcf'
* commit '3e6cb31659a56d343c7b8fe37645f195eb87ffcf':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from c473148..0824752
2019-10-16 12:05:57 +01:00
adbridge 58c541fe80 Update Mbed version block 2019-10-16 11:58:38 +01:00
Kyle Kearney 65def89e94 Make devicekey remainder test more meaningful
As of 722628be02, the "remainder" configuration
also uses the default location near the end of flash. Which makes the two tests
nearly identical with the exception that the "last two sectors" test correctly
handles parts with a low (possibly 1:1) erase size to program size ratio.
Therefore, change the "remainder" test to instead be a "default" test that uses
the tdb_internal_address/size values, so that it
a.) tests something meaningfully different and
b.) tests using the custom TDB address/size values if they are provided.
c.) functions correctly on devices where the default sector-based size computation
    does not work (e.g. because of the low erase size to program size ratio)
    and therefore a custom location and size has been specified.
The is_conf_tdb_internal variable is unused and therefore removed.
2019-10-16 11:58:32 +01:00
Jarkko Paso 48c445f358 S2-LP: sync with development repository 2019-10-16 11:58:32 +01:00
Michal Paszta 40c037fc72 Astyle fixes 2019-10-16 11:58:32 +01:00
Michal Paszta 2e222d9bfc test for InternetSocket::close blocking
Close should not take place in case there is someone reading or writing to the socket.
2019-10-16 11:58:32 +01:00
Michal Paszta 1655c37f4c Improve coverage
For the following classes:
* DTLSSocket
* NetworkInterface
* TLSSocketWrapper
2019-10-16 11:58:32 +01:00
Dominika Maziec 2d9a2db39e unitests update for tcp and udp 2019-10-16 11:58:32 +01:00
Michal Paszta 2eb2dcf923 Fix memory leak on NetworkInterface destruction
We dynamically allocate memory in every add_event_listener(), but we do not free it on NetworkInterface destruction.
2019-10-16 11:58:32 +01:00
Cruz Monrreal II 5c80e2244b Fixed Travis CI issue where jobs were/are getting stalled while fetching packages.
Something on Travis CI's side has changed such that invoking the 'wait' command within a script attempts to wait on some other jobs in addition to those spawned within the CI job.

Workaround is to explicitly collect the PIDs for processes spawned within the script and only wait on those.
2019-10-16 11:58:32 +01:00
Kimmo Vaisanen a0b33ee1a4 Cellular: Remove old deprecated tests
Cellular tests have been replaced with generic mbed-os netsocket and network interface tests.
2019-10-16 11:58:32 +01:00
jeromecoutant cece48292a pinmap_peripheral: update error code 2019-10-16 11:58:32 +01:00
jeromecoutant 19b641bb66 STM32L151: update calibration memory address 2019-10-16 11:58:32 +01:00
jeromecoutant 82f2b72777 DISCO_L4R9I: update default STMOD+ pin 2019-10-16 11:58:32 +01:00
Kyle Kearney 1dc74090a7 Add target for CY8CPROTO-063-BLE 2019-10-16 11:58:32 +01:00
Matthew Macovsky 53352717a2 Differentiate alt and dummy cycles in QSPIF
Propagate separate alt cycle and dummy cycle counts from QSPIFBlockDevice
down to the qspi driver, so that drivers which handle the two separately have
enough information to do so.
2019-10-16 11:58:32 +01:00
Kyle Kearney 65e726eb9e 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-10-16 11:58:32 +01:00
Matthew Macovsky 08a2709993 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-10-16 11:58:32 +01:00
Chun-Chieh Li 03affe94d8 Remove TRNG support
Reasons to remove TRNG support:
1.  M252 just has 32KiB SRAM and cannot afford mbedtls application.
2.  Implementing TRNG HAL with PRNG H/W has security concern.
2019-10-16 11:58:32 +01:00
Chun-Chieh Li 7f921bc292 Add missing 'sectors' into arm_pack_manager/index.json 2019-10-16 11:58:32 +01:00
Chun-Chieh Li 14e9683d4d Add BSD-3-Clause license for BSP files 2019-10-16 11:58:32 +01:00
Chun-Chieh Li 2136567b7a Free up peripheral pins in peripheral free-up HAL API
Without free-up of peripheral pins, peripheral pins of the same peripheral may
share by multiple ports after port iteration, and this peripheral may fail with
pin interference.
2019-10-16 11:58:32 +01:00
Chun-Chieh Li f761fe7eb1 Support GPIO input pull-high/pull-low
In Nuvoton, only new-design chips support GPIO input pull-high/pull-low modes.
Targets not supporting this feature are listed below:

- NUMAKER_PFM_NANO130
- NUMAKER_PFM_NUC472
- NUMAKER_PFM_M453
2019-10-16 11:58:32 +01:00
Chun-Chieh Li 07eb503cf1 Fix redundant call to UART IRQ handler
Honor RxIrq/TxIrq to avoid redundant call to UART IRQ handler.

This is also to fix FPGA CI test mbed_hal_fpga_ci_test_shield-uart.
2019-10-16 11:58:32 +01:00
Chun-Chieh Li a3197f3ec9 Fix redundant SPI clock generation
Fix SPI clocks are generated redundantly at the end of transfer.

This is also to fix FPGA CI test mbed_hal_fpga_ci_test_shield-spi/
SPI - async mode.
2019-10-16 11:58:32 +01:00
Chun-Chieh Li 7f29545a57 Fix I2C NACK error
Fix logic error on replying NACK at the end of transfer.

This is also to fix FPGA CI test mbed_hal_fpga_ci_test_shield-i2c/
i2c - test single byte read i2c API.
2019-10-16 11:58:32 +01:00