Commit Graph

15805 Commits (5bb3ede8904d2488c60b1d7539dff2edcce87062)

Author SHA1 Message Date
Cruz Monrreal e533b41c55
Merge pull request #6879 from kivaisan/compile_lora_examples_only_for_lora_targets
Build mbed-os-example-lora only for lora targets
2018-05-14 10:35:11 -05:00
Juhani Puurula 8bede897e6 Merge commit '03edf998fa6142cb5e3d4c28154c9bdfea98105f'
* commit '03edf998fa6142cb5e3d4c28154c9bdfea98105f':
  Squashed 'features/nanostack/coap-service/' changes from 36d36ce..1cb994e
2018-05-14 17:08:10 +03:00
Juhani Puurula 03edf998fa Squashed 'features/nanostack/coap-service/' changes from 36d36ce..1cb994e
1cb994e Move security _pkey into X.509 condition (#99)

git-subtree-dir: features/nanostack/coap-service
git-subtree-split: 1cb994e46e4943b44139cd19c5e97b74834e8216
2018-05-14 17:08:10 +03:00
Qinghao Shi d48d3aff2b fix a bug in greentea-client
reset "LastChar" after "tok_close" received
fix the bug where greentea-client require a character input between K-V pairs
2018-05-14 11:41:14 +01:00
Hasnain Virk d270105fa8 LoRaWAN: Wrong type of message check
In the reception data path, we needed to check the MCPS CONFIRMATION type
not the MCPS INDICATION type. Indication message type is for downlink message type
which can be UNCONFIRMED even if we have sent a CONFIRMED one, e.g., an ACK.
2018-05-14 13:36:38 +03:00
Ari Parkkila 287a1a86d0 Cellular: AT handler review fixes 2018-05-14 10:25:00 +03:00
Ari Parkkila 3bdb6d1737 Cellular: Fixed ATHandler write poll timeout 2018-05-14 10:25:00 +03:00
Ari Parkkila 9b896a16bb Cellular: ATHandler yield to wait review fixes 2018-05-14 10:25:00 +03:00
Ari Parkkila 559abd3009 Cellular: AT requests are to be processed within time period 2018-05-14 10:24:59 +03:00
Ari Parkkila 98ef516061 Cellular: Changed ATHandler yield to wait 2018-05-14 10:23:06 +03:00
Marcus Chang 6af843fceb Trim white space and clean up NRF52 configuration files
Removed unused and duplicate macros.
2018-05-13 22:31:17 -07:00
Cruz Monrreal 2104d8ab5b
Merge pull request #6711 from marcuschangarm/cleanup-nrf5x
Cleanup TARGET_NRF5 and TARGET_NRF5x
2018-05-11 19:15:05 -05:00
Cruz Monrreal II 99dd4c2b0a Added missing six requirement 2018-05-11 14:25:27 -05:00
Cruz Monrreal II daa0f9bc35 Corrected iteritems py2/3 compatability in test_api.py 2018-05-11 13:17:48 -05:00
Jimmy Brisson 4ad8ce073a Prevent jump address conflicts in bootloader modes 2018-05-11 11:23:01 -05:00
deepikabhavnani 97c88188d0 Cleanup
1. Enable watermark to get stack space information
2. Restructured code
3. Throw error if MBED_THREAD_STATS_ENABLED is not set
4. Astyle changes
2018-05-11 10:06:44 -05:00
deepikabhavnani f43b16ffd9 Cleaup and review comments addressed
1. Removed prefix thread_ from all elements of mbed_stats_thread_t
2. #if conditions aligned to rest of the file
2018-05-11 10:05:35 -05:00
deepikabhavnani bb8ccbd373 Checking difference in thread count + review comments 2018-05-11 10:05:33 -05:00
deepikabhavnani 1dad73949c Thread statistics addition.
API to get all system threads information and states.
2018-05-11 10:05:32 -05:00
Antti Yli-Tokola 511df14eb0 Update mbed-coap to version 4.4.3
Fixes error: IOTCLT-2506 [GitHub] Cannot set registration time if server does not use max age option
Improvements; Extend blockwise message transfer status to have states for sending as well.

NOTE! These are internal changes required for cloud client. This has no direct relevance to any mbed-os functionality.
2018-05-11 17:14:09 +03:00
Kevin Bracey ec2db62fe5 lwIP: Enable TCP out-of-order processing
Our config file for lwIP had TCP_QUEUE_OOSEQ disabled - this can
cause significant performance problems, as observed during testing.

One lost packet can lock an input stream into a mode where the
transmitter keeps thinking packets are being lost, so keeps slowing
down. This caused test failures - a transfer that would normally
take 10s hit a 60s timeout.

Turning this on increases code size, but doesn't significantly increase
static memory use. The memory used for out-of-order packets comes from
the same pbuf pool as for outgoing TCP segments, so there is contention
when running bidirectionally.

Out-of-order processing is on by default for lwIP - this seems to be
another example of us excessively paring it back.
2018-05-11 17:12:00 +03:00
Kimmo Vaisanen b61912cbbe Build mbed-os-example-lora only for lora targets
mbed-os-example-lora should be only compiled for targets which support lora.
2018-05-11 14:45:21 +03:00
Juhani Puurula 7c38f19745 Merge commit 'd6732a1b96814a2ea635b3d517f498127843a097'
* commit 'd6732a1b96814a2ea635b3d517f498127843a097':
  Squashed 'features/frameworks/nanostack-libservice/' changes from 09056ed..ddd45db
2018-05-11 09:59:29 +03:00
Juhani Puurula d6732a1b96 Squashed 'features/frameworks/nanostack-libservice/' changes from 09056ed..ddd45db
ddd45db Merge pull request #65 from ARMmbed/IOTTHD-2055
4720a2e Common read 24-bit inverse implemented
1037946 Common write 24-bit inverse implemented

git-subtree-dir: features/frameworks/nanostack-libservice
git-subtree-split: ddd45dbe8387ea47d163a9e6d2c2e89ab6da3064
2018-05-11 09:59:29 +03:00
Juhani Puurula 690a4c7f09 Merge commit '7a58eaec9d5f2aad89caf3cdb47346d2ff648492'
* commit '7a58eaec9d5f2aad89caf3cdb47346d2ff648492':
  Squashed 'features/frameworks/mbed-trace/' changes from 6d3590f..6df2572
2018-05-11 09:55:48 +03:00
Juhani Puurula 7a58eaec9d Squashed 'features/frameworks/mbed-trace/' changes from 6d3590f..6df2572
6df2572 add unit test support for mac (#81)

git-subtree-dir: features/frameworks/mbed-trace
git-subtree-split: 6df2572dfb803596049b87fbad4d761acaef69c3
2018-05-11 09:55:48 +03:00
Juhani Puurula 4cb7e03c7b Squashed 'features/nanostack/coap-service/' changes from f40072f..36d36ce
36d36ce Fixed compiler warnings (#98)

git-subtree-dir: features/nanostack/coap-service
git-subtree-split: 36d36ce17679f43a751d72d01820e774ff5e051c
2018-05-11 09:52:34 +03:00
Juhani Puurula f7fd0af47e Merge commit '4cb7e03c7b39f446cfddc46385b00600e0e702f9'
* commit '4cb7e03c7b39f446cfddc46385b00600e0e702f9':
  Squashed 'features/nanostack/coap-service/' changes from f40072f..36d36ce
2018-05-11 09:52:34 +03:00
Juhani Puurula 2f0bd6b6f6 Merge commit '8e546a301f0b93dab28e7b4454df97e5f9e83843'
* commit '8e546a301f0b93dab28e7b4454df97e5f9e83843':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 43c7ec2..82bbdcc
2018-05-11 09:52:10 +03:00
Juhani Puurula 8e546a301f Squashed 'features/nanostack/sal-stack-nanostack/' changes from 43c7ec2..82bbdcc
82bbdcc Merge branch 'release_internal' into release_external
7c7568d address error sent when matching entry found. (#1695)
0860ae7 Keep parent mle_entry in child_update_req timeout (#1693)
92044d6 Changed BBR router upgrade status (#1661)
e4a9657 Compiler warning clean-up (#1690)
a573bc4 Detection of duplicate address entries updated (#1686)
f28cce8 pbbr route handling updated (#1681)
389fab0 MLE parent request timeout fixes (#1676)
feb1784 Remove fragment/PMTU handling dropped by RFC 8200
073f7e8 entry keep alive flag set to true if entry already exists. (#1675)
1584759 Extra Thread-specific address check handling
934687b Tighten core "for us" check for unicast addresses
58a60e7 address query logic implemented(#1667)
c25df78 Fix for Router advertisement process in REED (#1658)
f8b227f Thread DHCP address allocation fix (#1657)
41ca387 removed the dependence of AE message relay on DUA prefix (#1655)
9e7e9e0 REED parser refactoring for MLE advertisement (#1654)
4fda90e Clear data request flag in child_id_req timeout (#1649)
5af4a39 updated mleid rloc sync in leader. (#1645)
564d3fe Added filter callback for MLE messages (#1638)
9f85599 Security bits handled correctly (#1642)
9e6c3a1 Update Thread MLE neighbor list cleanup, attempt #2 (#1640)
1060c34 file version checking handled after other errors. (#1641)
9c6b876 added nvm support for leader router id allocation. (#1626)
4f5e97d Revert "Update Thread MLE neighbor list cleanup (#1637)" (#1639)
a20a0ba Update Thread MLE neighbor list cleanup (#1637)
32cfb6b Fix to partition selection rules (#1633)
0d655ed Update MLE receiver in Child ID req timeout error (#1634)
2378dad Discard late Child ID responses (#1630)
3e8b4ce Multicast registration time fix (#1631)
f5530b1 Thread key ID change during attach (#1627)
1b7fdc0 Skip discovery request if MLE table is full (#1625)
4022ad9 Add new test API for clearing Thread stack values (#1624)
ffb47a2 additional reed advertisement (#1609)
cfb1e81 Thread tx failure handling update (#1620)
15846ed refactored network data sync as leader (#1615)
a5c67fd data request resent if leader after resync does not receive data response.(#1614)
f8a39da documentation fix: (#1608)
b69ba04 Allow MLE entry forced saving to MAC (#1600)
0e85099 Update router id sequence number in router sync (#1594)
f2cd4cf Read the short addr as 16-bit value before calling mac api (#1585)
912cf02 purge old partition data when child id response is received (#1588)
648ef89 Remove unnecessary call to mac (#1583)
09cff0e Fix uninitialised memory defect found by valgrind (#1582)
a1acffc Update Thread publishing during address change (#1581)
d2ddb1a Send new a/sd immediately after address change (#1576)
c18d1fd added check for parent info before processing child update (#1577)
96e86b6 implemented Sleepy End Device child update requests. (#1570)
33cb7cb Flag check updated. (#1572)
9f8e7f2 Merge pull request #1566 from ARMmbed/ut_fix
565da92 Update socket_api_test.cpp
59545f9 Update socket_api_test.cpp
09414e1 ML-EID is now added to address registration tlv. (#1565)
beddb01 unittest fix for newer release of cpputest

git-subtree-dir: features/nanostack/sal-stack-nanostack
git-subtree-split: 82bbdcc7ec63355fc19bf2c6054716584742b99b
2018-05-11 09:52:09 +03:00
Kimmo Vaisanen 9915478645 Lora: Fix battery_level callback
Application can give battery_level callback method what Lora stack
uses to query battery level for DevStatusReq MAC command response.
The problem was that this callback was never called.

This commit fixes this problem and if application does not set
battery_level callback at all, value 255 (= The end-device was not able to
measure the battery level.) will be returned to lora gateway.
2018-05-11 09:50:24 +03:00
Cruz Monrreal 30e39eeb10
Merge pull request #6852 from mprse/issue_5308_fix
Fix for issue #5308 - RTC set/get time issue on NCS36510
2018-05-10 23:26:06 -05:00
Cruz Monrreal 4318caaffa
Merge pull request #6779 from maximmbed/add-max32625pico
[MAX32625PICO] Add new platform
2018-05-10 23:25:41 -05:00
Cruz Monrreal ab7a856657
Merge pull request #6784 from deepikabhavnani/mbed_stats_fix
Add common define MBED_ALL_STATS_ENABLED to enable all statistics
2018-05-10 23:25:23 -05:00
Andrew Leech 3b79b3f65e add `--ignore` argument to `mbed compile` & `mbed export` commands 2018-05-11 14:00:01 +10:00
Krzysztof Stachowiak 4f9c6ba300 Update the version in the importing makefile 2018-05-10 17:49:33 +02:00
David Saada 9cdecf4d5a FlashIAP: Fix problem of programming source buffer not aligned to uint32_t 2018-05-10 12:00:29 +03:00
Cruz Monrreal 634774f45f
Merge pull request #6845 from marcuschangarm/fix-idle-thread
Remove obsolete OS_IDLE_THREAD_STACK_SIZE from NRF52
2018-05-09 13:16:45 -05:00
Cruz Monrreal c97a8fb216
Merge pull request #6817 from pan-/fix-crypto_toolbox_f4-parameter-types
GenericSecurityManager: Fix crypto_toolbox_f4 signature.
2018-05-09 11:33:27 -05:00
Cruz Monrreal e33fb60c3d
Merge pull request #6849 from scartmell-arm/bug-critical-section-nordic
Add missing semicolon to NRF51 critical_section implementation
2018-05-09 11:33:10 -05:00
Krzysztof Stachowiak 5317e872db Update Mbed TLS to version 2.9.0 2018-05-09 18:09:13 +02:00
Cruz Monrreal a2370d57fa
Merge pull request #6809 from deepikabhavnani/add_assert
Mbed Stats: Assert if NULL pointer passed as arg
2018-05-09 10:50:10 -05:00
deepikabhavnani 52c33b5494 Add stats header file to mbed.h
All API header files should be part of mbed.h
2018-05-09 10:24:28 -05:00
Martin Kojtal b5a8ace79a
Merge pull request #6808 from hasnainvirk/state_machine_work
LoRa: State machine work
2018-05-09 16:02:53 +01:00
Przemyslaw Stekiel 23127af67f NCS36510: Enable RTC support. 2018-05-09 14:41:40 +02:00
Przemyslaw Stekiel 2ccc11f243 tests-mbed_drivers-rtc: Add one second tolerance in functional tests.
Currently test assumes that 1 sec is long enough to set RTC time and read same time which has been set.
In some cases extra time for synchronisation between clock domains is needed and after setting/reading operations the read value might be different than one which has been set (+1 sec).
Additionally in some cases when lp ticker is based on RTC, the RTC implementation may use mechanism to trace elapsed seconds without modifying RTC registers. In such case it is possible that second will change immediately after setting time.

Add 1 sec tolerance (min possible) for such checks.
2018-05-09 14:41:40 +02:00
Przemyslaw Stekiel 8bddb6b305 NCS36510: Make RTC driver to operate on seconds instead of us.
In current implementation `rtc_read` function returns number of elapsed us and `rtc_write` function sets RTC time to specified value in us.
Mbed HAL API expects that these functions operate on seconds.
Since lp ticker is also based on RTC provide mechanism to trace elapsed seconds without modifying RTC registers.
2018-05-09 14:41:40 +02:00
Steven Cartmell 1dfea4168f Add missing semicolon to NRF51 critical_section implementation 2018-05-09 10:54:26 +01:00
Jaakko Heikkilä 5330fa8ce5 export: Remove debug print from sw4stm32 2018-05-09 09:03:17 +03:00
Andrew Leech badd753466 mbed test: add argument `--ignore` to allow passing in extra mbedignore args
In particular this allows ignoring a project main.cpp file when running unit tests
2018-05-09 10:02:02 +10:00