Commit Graph

16921 Commits (4dfc20ccd80fdab01bd5d8947e7e52152613bc86)

Author SHA1 Message Date
Hasnain Virk d10dee1449 Adding precise timing for receive delays
RX1 and 2 delays needed to be more precise and aggregate tx time was
drifiting because of timing difference between actual tx interrupt and
our processing of that interrupt ever so slightly.

We now take a timestamp of the tx interrupt and take a time diff while
instantiating delay timers. The timestamp is then used to update the aggregate
tx time.

Two new methods are introduced in the LoRaMac class which provide current
timing and current receive slot. These functions are used by LoRaWANStack
for its processing.
2018-06-29 17:10:17 +01:00
David Saada 38e8ac4617 Rename text region in ARM linker file for a few NXP CPUs 2018-06-29 17:10:17 +01:00
Teppo Järvelin 2cadd9d05c Cellular: fixed unit tests after rebase with latest changes. 2018-06-29 17:10:17 +01:00
Teppo Järvelin 33461805cb Cellular: Added power and sim greentea and unit tests. 2018-06-29 17:10:17 +01:00
Seppo Takalo cfe9225e4f Fix typo: WifiInterface -> WiFiInterface and add missing return.
Default WiFiInterface did not even build. And when it was fixed to build,
it was always returning NULL.
2018-06-29 17:10:17 +01:00
Seppo Takalo ecef1f55f7 Fix default interface selection by using correct macro names.
Code was written using MBED_CONF_DEFAULT_* but the mbed_lib.json file
that created these values is prefixed with "nsapi" and therefore
final macros are MBED_CONF_NSAPI_DEFAULT_*
2018-06-29 17:10:17 +01:00
ccli8 e5c9a095c6 Enlarge wait time in Greentea test function test_deepsleep
Original wait time is not enough for UART to flush out before deepsleep on some targets.
2018-06-29 17:10:17 +01:00
Mika Leppänen 3bc03e3f5d Changed DNS global class definitions to singletons
This saves memory on platforms without network interface.
2018-06-29 17:10:17 +01:00
Juho Eskeli 5dcd26503a Make MTB_ADV_WISE_1570 respect MBED_APP_START & enable bootloader 2018-06-29 17:10:17 +01:00
Keyur Hariya a7b8ccc65d Rename files to fix warning
"aes.c" file name conflict in Maxim platform and mbedtls.
2018-06-29 17:10:17 +01:00
Mika Leppänen 50a79a6705 Disabled STM ethernet driver hardware checksum calculation
No need for driver level hardware IPv4/TCP/UDP/ICMP checksum insertion
since LWIP and nanostack handles those already.

Related to issue: https://github.com/ARMmbed/mbed-os/issues/7227
2018-06-29 17:10:17 +01:00
bcostm de5985b4da Remove text related to channel2 2018-06-29 17:10:17 +01:00
bcostm 4094ebc8a6 Add comments for HAL_InitTick function 2018-06-29 17:10:17 +01:00
Jan Jongboom 322a1546c5 Spelling error in fault handler 2018-06-29 17:10:17 +01:00
Edmund Hsu de135d727a Enable COG boards flash algo 2018-06-29 17:10:17 +01:00
Edmund Hsu 6e9d1ac78d Enable COG boards instruction cache 2018-06-29 17:10:17 +01:00
Vincent Coubard 8f29bf5b9e Nordic BLE: Accept connection parameter update
A peer device that sends a connection parameter update may get block if it doesn't receive a response.

This patch accept the peer request unconditionnally. At some point this event will be managed by the application.
2018-06-29 17:10:17 +01:00
Mahesh Mahadevan fa42c72f90 LPC54628: Update the ADC clock divider based on the input clock source
1. Problems were seen on the LPC54628 as the ADC clock source was too
   high
2. Moved the pin configuration to set Analog mode to the end of the
   function

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-06-29 17:10:17 +01:00
Mika Leppänen 9fdb9a1ac7 Added long echo sequence test to EMAC tests
Test echoes 50000 random length ethernet frames between CTP echo
server and device.
2018-06-29 17:10:17 +01:00
Maciej Bocianski cecd0c3171 NRF52_DK: SLEEP enable 2018-06-29 17:10:17 +01:00
Jimmy Brisson 44bf7d6dd5 Force small lib usage when using uARM tc 2018-06-29 17:10:17 +01:00
Jarno Lamsa 8cc8b813f1 Tolerate packet loss up to 30% in udp echo tests 2018-06-29 17:10:17 +01:00
David Saada dc3092fd9a Support erasing of more than one erase unit in the exhaustible block device 2018-06-29 17:10:17 +01:00
Jimmy Brisson 2c4a868734 Correct "defalut" typo 2018-06-29 17:10:17 +01:00
Jimmy Brisson 51708bcd76 Compute ARM_STD and ARM_MICRO labels with target attrs 2018-06-29 17:10:17 +01:00
Jimmy Brisson 2f128459b5 Heed default_lib in arm compiler 2018-06-29 17:10:17 +01:00
Jimmy Brisson ad016f43b9 Correct supported check of uvision to include uARM 2018-06-29 17:10:17 +01:00
Kevin Bracey 1fde01c243 Add API to read Thread EUI-64
Previously get_mac_address on a ThreadInterface returned the EUI-64
reported by the radio driver. This was required for commissioning, but
was inconsistent with other interfaces, and the API concept.

5.9.0 inadvertently changed this so that get_mac_address returned the
actual MAC address used by the radio, which is a hash result of the
EUI-64 for Thread.

The original "return the EUI-64" form was somewhat faulty, as
get_mac_address would not return the EUI-64 set by set_device_eui64() or
another mechanism before connect() was called.

Rather than revert to old behaviour, add a new API to get the device
EUI-64 to ThreadInterface, alongside the existing set API.
2018-06-29 17:10:17 +01:00
Antti Yli-Tokola b60abe1c3b Update mbed-coap to version 4.4.4
Fixes one error: IOTCLT-2638 Hardfault during reconnection retry with Thread
2018-06-29 17:10:17 +01:00
Cruz Monrreal 03196b244e
Merge pull request #7228 from ARMmbed/release-candidate
Release candidate for mbed-os-5.9.1
2018-06-15 16:52:13 -05:00
Mika Leppänen 92a4cb2bc8 Added missing license to header of the file 2018-06-15 13:34:21 +01:00
Mika Leppänen dbbfdbc312 Added UBLOX_C027/ARCH_PRO memory configurations 2018-06-15 13:34:21 +01:00
Mika Leppänen a784da9fd1 Added EMAC configuration for UBLOX_C027 2018-06-15 13:34:21 +01:00
Mika Leppänen eee607b51a Corrected TX buffer reclaim error
When all TX descriptors were reserved in a row so that TX buffer
reclaim interrupt did not happen during reservation sequence, after
the interrupt occurred, TX buffer reclaim did no longer free buffers.

This happened because when all descriptors were in use, last free
index pointed to consumed index.
2018-06-15 13:34:21 +01:00
Mika Leppänen b744b50dca Ported NXP LPCxx ethernet driver to unified EMAC 2018-06-15 13:34:21 +01:00
adbridge b7d354cbe6 Update Mbed version block for patch release 2018-06-15 13:31:04 +01:00
Maciej Bocianski 14c75c584f fix and enable sleep_usticker_test
Increases tolerance value for sleep_usticker_test to cover extra time needed
for cpu stats computation (for more details see MBED_CPU_STATS_ENABLED).
Prevent scheduling interrupt during ticker initialization (in lp_ticker_init)
while test execution.
2018-06-15 13:30:56 +01:00
Maciej Bocianski 393424262f enable HAL sleep test 2018-06-15 13:30:56 +01:00
Maciej Bocianski 8b3ae8dea4 HAL sleep test fix
Prevents ticker upper layer initialization during test execution
2018-06-15 13:30:56 +01:00
David Saada 688268328d Fix flash_program_page API in LPC boards.
This API allocates a program buffer of 256 on the stack to ensure alignment.
However, FlashIAP driver already ensures this alignment of the user data.
2018-06-15 13:30:56 +01:00
Teppo Järvelin 77b0fc371b Cellular: Semaphore wasn't released in easycellular release build. 2018-06-15 13:30:56 +01:00
Jimmy Brisson a72365c9fa Skip second header when every bl config paramater used 2018-06-15 13:30:56 +01:00
Cruz Monrreal 754e18f335 Only exclude RTOS-specifc tests in error_handling
Allows for other tests to run if no RTOS is present.
2018-06-15 13:30:56 +01:00
Cruz Monrreal 4c3012ccd6 Wrapped test around MBED_CONF_RTOS_PRESENT
Wrapping a #define to prevent test from being run when no RTOS is present.
2018-06-15 13:30:56 +01:00
Cruz Monrreal bed820734c Corrected casting issue with an assert within the error_handling test
Discovered via https://github.com/ARMmbed/mbed-os/pull/7105.
If both values are negative values, they are casted in such a way that -1 != -1. This small commit fixes that.
2018-06-15 13:30:56 +01:00
Mika Leppänen f94b2ea263 Increased LWIP main worker thread stack size for debug builds
LWIP stack is configured to be 1200 as default. Without debug enabled,
maximum stack size used for asynchronous DNS operations is 880 bytes. With
debug enabled maximum used stack size is 1248. Added configuration
to LWIP to increase stack size by 25 percent when debug is enabled on build.
2018-06-15 13:30:56 +01:00
Teppo Järvelin 97cdbf769d Cellular: release resources in state machine. Made sure that athandler does not try process urc's after switch to data mode. 2018-06-15 13:30:56 +01:00
Yoshihiro TSUBOI 7bc411eedb Changed suggested things
Removed context check from do_user_authentication.
2018-06-15 13:30:56 +01:00
Yoshihiro TSUBOI b3ebb5229a Changed suggested points
Changed accessibility cellular features member functions, fixed minor target issues
2018-06-15 13:30:56 +01:00
ytsuboi 4b1d0875b7 Adding platform 2018-06-15 13:30:56 +01:00