Commit Graph

203 Commits (b1796dedeb8accde1cbaecf136fab96895e23d81)

Author SHA1 Message Date
Arto Kinnunen 8740e2f45a Merge commit '443e126118ee4c34aef2ddd218b76d7776f1b875' into nanostack_release_13_0
* commit '443e126118ee4c34aef2ddd218b76d7776f1b875':
  Squashed 'features/frameworks/mbed-client-randlib/' changes from bec82e21f0..cf3936f074
2021-04-15 12:29:29 +03:00
Arto Kinnunen eae31b3add Merge commit '6b10857889dfa2b3646866e3daf68502c78e7722' into nanostack_release_13_0
* commit '6b10857889dfa2b3646866e3daf68502c78e7722':
  Squashed 'features/frameworks/nanostack-libservice/' changes from a526cc3f41..260d80f42d
2021-04-15 12:22:16 +03:00
Arto Kinnunen 6b10857889 Squashed 'features/frameworks/nanostack-libservice/' changes from a526cc3f41..260d80f42d
260d80f42d Update ns_nvm_helper license text and format (#98)

git-subtree-dir: features/frameworks/nanostack-libservice
git-subtree-split: 260d80f42da24fa41656222294abc38f7779bdcf
2021-04-15 12:22:16 +03:00
Arto Kinnunen a0a284ed49 Move files back to original locations
Files were moved during rebase, move files back to original places
2021-01-21 11:35:44 +02:00
Arto Kinnunen 681f51142e Squashed 'features/frameworks/mbed-trace/' changes from 6ced9711c4..b98f6a9050
b98f6a9050 Merge remote-tracking branch 'origin/master' into release_for_mbed_os
7a60a77390 Enable libservice by default
fc7503c1a6 Make IPv6 tracing conditional to nanostack-libservce

git-subtree-dir: features/frameworks/mbed-trace
git-subtree-split: b98f6a9050afd1d0b9354bc82d5d363fff5a1405
2021-01-21 11:12:13 +02:00
Arto Kinnunen df0d0e1b81 Squashed 'features/frameworks/nanostack-libservice/' changes from 67d7b93ec6..a526cc3f41
a526cc3f41 Merge pull request #97 from PelionIoT/sync_from_mbed_os
2f82569918 Add license notice to Arm copyrighted source files
ad7631083a Merge pull request #96 from PelionIoT/heap_lite_stats
18b742b2c7 Heap stat's enabled allways by default.
9b4cbaf101 Added extended block list to dynamic memory tracker (#95)
8ff6d31abb Added dynamic memory tracker and hooks to dynmem library (#93)
cf2b133082 Merge pull request #92 from LDong-Arm/add_present_flag
9eb6f2dde7 Add config to generate macro MBED_CONF_NANOSTACK_LIBSERVICE_PRESENT

git-subtree-dir: features/frameworks/nanostack-libservice
git-subtree-split: a526cc3f41bfd0ec6a78e6998b8f8dcc1bd2afc9
2021-01-21 11:12:10 +02:00
Risto Huhtala eb50b94d9f Update Mbed CoAP to v5.1.8 2020-10-20 09:15:01 +03:00
Teemu Takaluoma 9274236794 Update Mbed CoAP to v5.1.7 2020-09-14 12:20:00 +03:00
Arto Kinnunen 6cce3f5fbe Merge commit '2981e10afe3021b74a1213480419350c140d9e8b' into mbed-os-5.15
* commit '2981e10afe3021b74a1213480419350c140d9e8b':
  Squashed 'features/frameworks/mbed-trace/' changes from 642a459a39..6ced9711c4
2020-08-18 12:16:18 +03:00
Arto Kinnunen 1df883563d Merge commit 'e13417d3ce12469f3418ade4bf1183993083efdd' into mbed-os-5.15
* commit 'e13417d3ce12469f3418ade4bf1183993083efdd':
  Squashed 'features/frameworks/nanostack-libservice/' changes from c6cae6992a..67d7b93ec6
2020-08-18 12:09:08 +03:00
Arto Kinnunen 2c16a69cdc Merge commit 'db42dca51cea37a6ea2dfab1aedbbb6ac7ab10ee' into mbed-os-5.15
* commit 'db42dca51cea37a6ea2dfab1aedbbb6ac7ab10ee':
  Squashed 'features/frameworks/nanostack-libservice/' changes from 9a61e73787..c6cae6992a
2020-06-08 14:26:15 +03:00
Teemu Takaluoma e1af7be4e0 Update mbed-coap to version 5.1.5
BLOCK2 code-branch was missing handling for duplicate packets. As part of the fix, added also
a call to update the duplicate package data via a new function
sn_coap_protocol_update_duplicate_package_data_all.

The new implementation handles all CoAP messages, not just those with COAP_MSG_TYPE_ACKNOWLEDGEMENT.
2020-04-27 11:26:09 +03:00
Antti Yli-Tokola 7edaf6dc7c Update mbed-coap to version 5.1.4
Add also 4.13 (Request Entity Too Large) responses to duplicate info list.

Add client library configurations for DEFAULT_RESPONSE_TIMEOUT and SN_COAP_DUPLICATION_MAX_TIME_MSGS_STORED.

Increased the default timeouts of DEFAULT_RESPONSE_TIMEOUT and SN_COAP_DUPLICATION_MAX_TIME_MSGS_STORED to 300 seconds.
These two are critical parameters for low-bandwidth high-latency networks. The defaults should be more geared towards such networks that are likely to have issues with transmissions.
The increased defaults can increase the runtime HEAP usage when there is a lot of duplicates or retransmissions.
2020-04-24 08:18:21 +01:00
Darryl Green 65e91244fa crypto: Use updated ECC curve macros 2020-04-07 11:30:31 +01:00
Arto Kinnunen e7e75accaa Merge commit 'db389d4b4b3cf6cf080926399bef2584ab896ba1' into nanostack_for_mbedos_5_15
* commit 'db389d4b4b3cf6cf080926399bef2584ab896ba1':
  Squashed 'features/frameworks/nanostack-libservice/' changes from 9af756886f..9a61e73787
2020-02-21 10:54:43 +02:00
Risto Huhtala b429a6b8ef Update mbed-coap changelog-md with v5.1.3 information 2020-02-05 14:40:24 +00:00
Risto Huhtala 3edd93b108 mbed-coap uint16 overflow when calculating packet data size 2020-02-05 14:40:24 +00:00
Risto Huhtala ca3a848e80 Code review fix. Removing extra spaces 2020-02-05 14:40:24 +00:00
Risto Huhtala 23a23b948b mbed-coap Buffer overflow when paring CoAP message 2020-02-05 14:40:24 +00:00
Antti Yli-Tokola 4a491b99df Update mbed-coap to version 5.1.2
Compiler warning cleanups.
2019-11-20 22:36:25 +02:00
Martin Kojtal d556bf698f
Merge pull request #11821 from rajkan01/feature-baremetal-greentea-psa
Skip Bare Metal green tea test for PSA component
2019-11-12 11:07:16 +01:00
RAJKUMAR KANAGARAJ f30dd1cef2 Enable the Bare Metal green tea test
-PSA test framework uses the RTOS threads to run test cases so added MBED_CONF_RTOS_PRESENT to all the test cases.
2019-11-06 03:15:49 -08:00
RAJKUMAR KANAGARAJ b1731ce3c8 -New PR for PSA,Netsocket,storage components,reverted all the changes to back to original
-Change the #error description more precisely
 -Separated the MBED_CONF_RTOS_PRESENT guarded
2019-11-06 01:59:05 -08:00
RAJKUMAR KANAGARAJ 3fc8905315 Fixed the greentea test dependency and incorporated the review comments
-Added the mbedtls,crypto,psa,filesystem,fat,littlefs in baremetal.json to resolve compiler issue
 -Disable metrics that are not available for bare metal
 -Moved the baremetal.json inside TESTS/configs directory
2019-11-05 08:49:27 -08:00
RAJKUMAR KANAGARAJ f402dbb2da Bare metal greentea support
-Added the baremetal.json on Tests directory to enable bare-metal
 -Conditional enable of greentea metrics

Note:
Run green tea with bare metal
mbed test  -m target -t GCC_ARM -n tests-mbed_platform-transaction  --app-config TESTS/baremetal.json
2019-11-05 08:49:27 -08:00
Martin Kojtal f1392d6b6b
Merge pull request #11695 from jeromecoutant/PR_GREENTEA_TRACE
GREENTEA: init trace if trace is enabled in json
2019-10-29 15:13:31 +01:00
Martin Kojtal 02c722af42
Merge pull request #11620 from jainvikas8/ISSUE-11256
Fix enum type to align with psa-arch-tests
2019-10-22 09:42:13 +02:00
jeromecoutant 0d678e9299 GREENTEA: init trace if trace is enabled in json 2019-10-16 11:47:07 +02:00
Vikas Katariya c1486eaf41 Fix enum type to align with psa-arch-tests
This is related to https://github.com/ARMmbed/mbed-os/issues/11256
When TARGET_PSA is enabled on Cortex-A boards, the SECURE
is redeclared. So to minimize the impact we can redeclare this in
val.h which is used only by Mbed. And `security_t` itself is used in
mbed-os\components\TARGET_PSA\TESTS, but the SECURE string is not used.

Renamed to `caller_security_t` which aligns with
https://github.com/ARM-software/psa-arch-tests
2019-10-02 16:37:58 +01:00
int_szyk 76407bc654 sn_coap_builder: remove unnecessary code.
Fixes Coverity issue about unused variable.
2019-09-24 11:35:52 +02:00
Yogesh Pande 246f431ed4 Delaying message id random initialization to later stage.
Random initialization sequence is causing start up issues in multiple platform
when done at construction phase.
The right thing is to delay the random initialization to later stage when the
message id is actually required. This provides system to do all necessary allocation
upfront without causing any random race condition at startup phase.
2019-09-13 16:17:14 +03:00
Martin Kojtal 87cdef9258
Merge pull request #11408 from SeppoTakalo/mbed_trace_nanomesh
Remove mbed_trace dependency to Nanomesh headers
2019-09-06 14:36:14 +02:00
Seppo Takalo a7634a1e5a Include ns_types.h before mbed_trace.h in Nanomesh 2019-09-06 13:05:19 +03:00
Seppo Takalo 40841453a5 Remove mbed_trace dependency to Nanomesh headers
This library only uses standard types from C99, and
thus does not need compiler specific tweaks from ns_types.h
2019-09-06 10:40:14 +03:00
Martin Kojtal 567479792c
Merge pull request #11392 from hugueskamba/hk-remove-minor-warnings
Remove minor build warnings
2019-09-05 09:59:39 +02:00
Hugues Kamba 8c22bbbbc8 Use PRIu32 to print uint32_t variable
As the variable underlying type size is different depending on the
toolchain used
2019-09-03 09:29:06 +01:00
Martin Kojtal e001216b55
Merge pull request #11315 from Patater/psa-crypto-api-1.0b3
Update Mbed OS for PSA Crypto API 1.0b3
2019-09-03 09:20:15 +02:00
Jaeden Amero 95d448b63d attestation: Erase storage before test
Be robust when keys can't be opened for deletion by erasing storage and
thereby all keys.
2019-09-02 17:10:59 +01:00
Jaeden Amero 3d1b8363db Use PSA Crypto API 1.0b3
The PSA Crypto API has moved on from 1.0b2 to 1.0b3, bringing along with
it some breaking changes. Update Mbed OS to use the 1.0b3 API.
2019-09-02 17:10:59 +01:00
Hugues Kamba e65a0c0a99 Remove minor build warnings 2019-09-02 15:04:58 +01:00
Antti Yli-Tokola 5f92db3c12 Add a flag to maintain backward compatibility
By default CoAP will create a copy of the whole data to be passed to application and it keeps the backward compatibility.

If enabled, application must NOT free the payload when it gets the COAP_STATUS_PARSER_BLOCKWISE_MSG_RECEIVED status.
And application must call sn_coap_protocol_block_remove() instead.
2019-08-29 13:34:24 +03:00
Antti Yli-Tokola d74326e5cc Update changelog about the breaking change 2019-08-28 14:22:03 +03:00
Antti Yli-Tokola 2774e3f301 Update mbed-coap to version 5.0.0
- Reduce heap footprint by storing only single block when receiving a blockwise message.
    * User is now responsible of freeing the data by calling sn_coap_protocol_block_remove() and must not free the payload separately.
- Bug fix: Request blockwise transfer if incoming payload length is too large and when it comes without block indication.
2019-08-28 11:26:55 +03:00
Jaeden Amero e31916f36f attestation: Remove unused status variable 2019-08-21 19:43:58 +01:00
Jaeden Amero 3e5fa80ce3 psa: Eliminate some PSA_SUCCESS redefinition warnings
Remove PSA_SUCCESS redefinitions in the PSA compliance test PAL.
2019-08-21 19:43:58 +01:00
Jaeden Amero 273c62516d crypto: Remove old compliance tests
We'll use the new ARM-software/psa-arch-tests directly instead for PSA
Crypto API 1.0b3. This commit removes the crypto compliance tests only
for now, leaving attestation and storage tests.
2019-08-21 19:43:58 +01:00
Antti Yli-Tokola 7ba7f7e8d2 Update mbed-coap to version 4.8.1
- Store ACK's also into duplicate info list.
- ROM size optimization. Flash size has gone down ~1100 bytes.

**Closed issues:**
-  IOTCLT-3592 - Client does not handle Duplicate ACK messages during blockwise registration correctly
2019-08-21 13:08:18 +03:00
Seppo Takalo 6ce2439c0f
Merge pull request #11086 from Tharazi97/Greentea_compile_without_serial
Mbed-os compile without DEVICE_SERIAL
2019-07-25 12:45:37 +03:00
int_szyk 4c13c469d9 Can compile without serial 2019-07-22 16:17:52 +02:00
David Saada fb3559d841 PSA storage: Conform to "PSA 1.0.0" spec release
- Add the no confidentiality & no replay protection flags
- Add actual size parameter in PS/ITS get APIs
- Change a few size parameters from uint32_t to size_t
2019-07-14 18:50:47 +03:00