Commit Graph

229 Commits (d1d6bf51b387ef39f97320b2febd5d79231682ba)

Author SHA1 Message Date
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
Arto Kinnunen 51d37d5da4 Merge commit '8730005927c6e12a78957c2eda92dc5a9698cdea' into nanostack_libservice_update
* commit '8730005927c6e12a78957c2eda92dc5a9698cdea':
  Squashed 'features/frameworks/nanostack-libservice/' changes from dd98c37..9af7568
2019-07-05 10:44:37 +03:00
Kevin Bracey 5c3b15cf81 ns_list: avoid UINT_FAST8_MAX
Prevent compilation issues when someone has included <stdint.h> before
a header file that needs to include <ns_list.h>.

Some toolchains like ARM C 5 will not provide UINT_FAST8_MAX in C++
unless __STDC_LIMIT_MACROS is defined, and if this was not defined the
first time <stdint.h> was included, it's too late.

We can get the maximum value for our unsigned list offset by casting -1
to it, thanks to modulo arithmetic.
2019-06-11 17:13:27 +03:00
Antti Yli-Tokola 68400add4a Update mbed-coap to version 4.8.0
Make sn_coap_protocol_linked_list_duplication_info_remove API to public. User might want to delete some messages from the duplicate list.
Enable support for unified client configuration.
2019-05-21 09:30:04 +03:00
Oren Cohen fc97a75632 Remove #ifndef NO_GREENTEA from tests 2019-03-14 11:16:44 +02:00
Netanel Gonen 053e07b6dc change the include to mbedtls/config.h 2019-03-11 19:03:08 +02:00
Nir Sonnenschein c99f03d0ce add mbed_lib.json to prevent inclusion in bare-metal builds 2019-03-07 18:04:59 +02:00
Nir Sonnenschein 517bb1a64a remove sid.h as it is now supplied by PSA 2019-03-07 18:04:27 +02:00
Nir Sonnenschein a772d9d327 add comment explaining attestation keys for test use 2019-03-07 17:50:54 +02:00
Nir Sonnenschein 4edb6dac6c removed redundant code + added comment
Thanks @cmonr.
2019-03-07 12:30:57 +02:00
Netanel Gonen 2982907e37 rework for mbed-os intf for ACK tests
-rework test wrapper functions to simplify test main
-move greentea init before test setup code to avoid boards losing sync.
2019-03-05 17:07:34 +02:00
Nir Sonnenschein 1650a923eb add main functions to each compliance test
add main function to each compliance test , moving shared code to a common file
2019-03-03 22:50:59 +02:00
Nir Sonnenschein eae1252c29 changes to test infrastructure to adapt it to green-tea
changes to test infrastructure to adapt it to green-tea
Make ITS testing default
Fix IAR build issues
2019-03-03 22:47:33 +02:00
Nir Sonnenschein b64fb53d43 [api-tests]: Updated to cb58d2c 2019-03-03 15:51:26 +02:00
Cruz Monrreal 024cae5442
Merge pull request #9835 from orenc17/no_greentea
Add define to skip greentea sync
2019-02-28 18:24:09 -06:00
Cruz Monrreal b5bb1c1211
Update features/frameworks/greentea-client/source/greentea_test_env.cpp
Co-Authored-By: orenc17 <oren.cohen@arm.com>
2019-02-27 21:38:16 +02:00
Arto Kinnunen 16e2a85ad1 Merge commit '12a2437b39d1ecccb0cfeee4d69e071af03b84de'
* commit '12a2437b39d1ecccb0cfeee4d69e071af03b84de':
  Squashed 'features/frameworks/mbed-trace/' changes from 0a4f6be..642a459
2019-02-25 14:48:18 +02:00
Oren Cohen 78ec812f3a Add define to skip greentea sync 2019-02-25 14:16:45 +02:00
Arto Kinnunen ab1cfc5c7e Merge commit '14ff147a610d775c157ffc48b4e4521d0a6493f0'
* commit '14ff147a610d775c157ffc48b4e4521d0a6493f0':
  Squashed 'features/frameworks/mbed-trace/' changes from 7a1bd34..0a4f6be
2019-02-25 13:01:32 +02:00
Arto Kinnunen 3b1ccfac0a Merge commit 'd53d1dffb7405776dd84fa24a2eec7c18f445fed'
* commit 'd53d1dffb7405776dd84fa24a2eec7c18f445fed':
  Squashed 'features/frameworks/nanostack-libservice/' changes from 1d4c358..dd98c37
2019-02-25 13:00:32 +02:00
Martin Kojtal a3500a3040
Merge pull request #9654 from anttiylitokola/mbed-coap-to-4.7.4
Update mbed-coap to version 4.7.4
2019-02-15 10:58:06 +01:00
Cruz Monrreal b820ec8922
Merge pull request #9561 from theotherjimmy/test-resources
Tools changes for bare metal
2019-02-13 12:31:54 -06:00
Martin Kojtal 10bb66a053
Merge pull request #9424 from SeppoTakalo/ONME-4125
Allows multiple network status listeners
2019-02-11 10:41:35 +01:00
Antti Yli-Tokola 8073ce20b6 Update mbed-coap to version 4.7.4
- Remove dependency to yotta tool
- Do not remove stored (GET) blockwise message when EMPTY ACK received. When non piggybacked response mode is used original GET request must not be removed from the stored message list.Message is needed for building the next (GET) blockwise message.
- Move definitions to sn_config.h
2019-02-11 10:37:43 +02:00
Oren Cohen 32463d64dc Add missing mbed_lib.json for frameworks and nanostack
* mbed-client-randlib
* nanostack-libservice
* coap-service
* nanostack-interface
2019-02-07 09:25:14 -06:00
Seppo Takalo 43a53df505 Fix ns_list for C++03 compilers, like IAR 7 2019-02-06 15:26:06 +02:00
Brian Daniels 4a0bb5b35d Update utest README 2019-01-28 16:35:35 -06:00
Brian Daniels 1a9df4269b Correct example given in greentea-client readme 2019-01-28 16:35:34 -06:00
Brian Daniels b694a34873 Remove reference to yotta and mbed-drivers in greentea-client 2019-01-28 16:35:20 -06:00
Brian Daniels 96a71ce59a Removing references to yotta and minar within utest 2019-01-28 16:31:20 -06:00
Cruz Monrreal 66cda8a8fe
Merge pull request #9499 from bridadan/remove_yotta_modules
Remove unused yotta module metadata
2019-01-28 10:37:30 -06:00
Cruz Monrreal 545d229ab1
Merge pull request #9497 from ARMmbed/AnotherButler-patch-2
Remove yotta from README.md
2019-01-28 10:36:36 -06:00
Amanda Butler 36438a1d70
Remove outdated content from README.md
Remove requested outdated content, and update TOC to reflect changes.
2019-01-25 09:57:19 -06:00
Amanda Butler 8b35bbc5b5
Remove .json blob from README.md
Make change suggested in comments.
2019-01-24 15:54:02 -06:00
Brian Daniels 99d6145cf3
Update features/frameworks/greentea-client/README.md
Co-Authored-By: AnotherButler <Amanda.Butler@arm.com>
2019-01-24 15:53:01 -06:00
Brian Daniels ee5281abef Remove unused yotta module metadata 2019-01-24 15:30:20 -06:00
Amanda Butler 25bb0d23c5
Remove outdated text and fix spelling in README.md
Remove reference to yotta, and fix spelling for correct branding.
2019-01-24 15:29:09 -06:00
Amanda Butler 39851e4c18
Remove yotta from README.md
Remove all references to yotta.md
2019-01-24 15:25:30 -06:00
Jimmy Brisson e201fdb6e9 Add placeholder libraries for things we probably refer to as libraries 2019-01-16 14:58:58 -06:00
Martin Kojtal c59aa99861
Merge pull request #8882 from anttiylitokola/mbed-coap-4.7.3
Update mbed-coap to version 4.7.3
2018-12-03 13:44:20 +01:00
Martin Kojtal c62f654da1
Merge pull request #8843 from miyuki/fix-cxx11
Fix C++11 build with Arm Compiler 6
2018-12-03 13:22:11 +01:00
Antti Yli-Tokola fffbca64e0 Update mbed-coap to version 4.7.3
EMPTY response should not be stored to blockwise list.
An Empty message only contains the 4-byte header so it does not require any blockwise operations.
This will fix unneseccary message sending timeouts which leads mbed cloud client to do unnecessary
reconnections which increases the network traffic.
2018-11-27 16:47:17 +02:00
Mikhail Maltsev 5c351dc6ae Fix C++11 build with Arm Compiler 6
Currently there are two issues which prevent building Mbed OS with
-std=gnu++11 when using Arm Compiler 6:
* NanostackRfPhys2lp.cpp contains a narrowing conversion in a braced
  initializer list
* ns_types.h includes <stdalign.h> which Arm Compiler 6 currently
  does not provide

This patch fixes both issues. The first one is fixed by changing the
underlying type of the corresponding enumeration when the code is
compiled as C++11. The second issue is worked around by avoiding the
use of <stdalign.h> header for Arm Compiler versions prior to 6.12.
2018-11-26 12:54:51 +00:00
Antti Yli-Tokola 8d341ae0d4 Update mbed-coap to version 4.7.2
- Fix handling of duplicate blockwise ACK's
    CoAP data buffer was not added into duplication info store when creating response for blockwise request.
    This leads to case where whole bootstrap flow just timeouts if received any duplicate messages during blockwise operation.
    Fixes error: IOTCLT-3188 - UDP connection fails for lost ACK sending

 - Remove error trace when building reset message without options
    This makes it possible to build the reset message without allocating option or getting error message.
2018-11-22 14:48:33 +02:00
Cruz Monrreal II b327b12c75 Merge branch 'david_unity_error_code' of ssh://github.com/davidsaada/mbed-os into rollup-b.1 2018-11-15 18:26:14 -06:00
Cruz Monrreal II 49b940c9a7 Merge branch 'prepare_for_mbedos511' of ssh://github.com/artokin/mbed-os into rollup-b.1 2018-11-15 18:26:12 -06:00
David Saada 3995779806 Add a Unity macro to assert on platform error code difference 2018-11-15 12:14:44 +02:00
Arto Kinnunen 923ce138f5 Merge commit '661681f65c3fb61aec2e4605bef0fc075cc8cb0d' into mbedos511
* commit '661681f65c3fb61aec2e4605bef0fc075cc8cb0d':
  Squashed 'features/frameworks/nanostack-libservice/' changes from bb56e37..1d4c358
2018-11-10 20:14:25 +02:00
Arto Kinnunen 9a13e9d5e8 Merge commit '1374a5e5e6775dd6db9533075f25b3112c984b22' into mbedos511
* commit '1374a5e5e6775dd6db9533075f25b3112c984b22':
  Squashed 'features/frameworks/mbed-trace/' changes from 9eaf0d1..7a1bd34
2018-11-09 15:59:35 +02:00
Arto Kinnunen ce2ecd5e5b Merge commit '5d162a08ffd383c97b49e35f3065fcd4638ac87c' as 'features/frameworks/mbed-client-randlib' 2018-11-09 15:52:44 +02:00
Arto Kinnunen 72fc5faab0 Remove mbed-client-randlib
Remove mbed-client-randlib and add it later as git subtree
2018-11-09 15:48:41 +02:00
Arto Kinnunen 2d10cebd00 Sync mbed-client-cli files with v0.4.0
Sync mbed-client-cli with master repo v0.4.0.
2018-11-08 13:21:56 +02:00
Arto Kinnunen d7e2bd3f81 Merge commit '7fab5abace6aa9d6fc6c335fa6fcab15a108d646' into mbedos511
* commit '7fab5abace6aa9d6fc6c335fa6fcab15a108d646':
  Squashed 'features/frameworks/mbed-trace/' changes from 6df2572..9eaf0d1
2018-11-05 14:21:35 +02:00
Arto Kinnunen 66620a2761 Merge commit '0ca91df5905111270a6ec1343be5c726c97fe571' into mbedos511
* commit '0ca91df5905111270a6ec1343be5c726c97fe571':
  Squashed 'features/frameworks/nanostack-libservice/' changes from 5eb2f3f..bb56e37
2018-11-05 14:17:48 +02:00
Anna Bridge 83dada3bdc
Merge pull request #8404 from anttiylitokola/mbed_coap_4.7.1
Update mbed-coap to version 4.7.1
2018-10-19 15:11:31 +01:00
Deepika 9db31d299b Resolve build issues in test
mbed.h was added in test, via greentea and utest header files. 'mbed.h' is removed
from header files and required header file and namespace is added to CPP/C files
2018-10-16 11:50:16 -05:00
deepikabhavnani e95d08e471 Greentea: Add required header file and namespace element instead add all
1. RTOS is needed only for Stack stats

Move+Add all required header files for RTOS into MBED_STACK_STATS_ENABLED
define. Also added 'using namespace'

2.  Add heap stats only when MBED_HEAP_STATS_ENABLED
2018-10-15 10:57:24 -05:00
Deepika 1fe633799d Framework: Add required header file and namespace element instead add all 2018-10-15 10:57:21 -05:00
Antti Yli-Tokola 032d1f5709 Update mbed-coap to version 4.7.1
Add re-scan routine goto if message is caused user callback
This will fix hard fault when blockwise message sending timeouts. This happens cause same list is manipulated through rx callback.
2018-10-12 17:11:21 +03:00
Kevin Bracey 1ef213ec89 Clean up Thread deprecation warnings
Static Thread methods and signal methods have been deprecated. Remove
all references in the main code, and most of the tests. Some tests of
the deprecated APIs themselves remain.
2018-10-12 14:57:13 +03:00
Cruz Monrreal 2c296fcfd6
Merge pull request #8273 from anttiylitokola/mbed-coap-4.7.0
Update mbed-coap to version 4.7.0
2018-10-11 10:12:54 -05:00
Arto Kinnunen 1dac676833 Merge commit '7d2f0cab63a2223a426c44e13f771abe6a7d7eaf'
* commit '7d2f0cab63a2223a426c44e13f771abe6a7d7eaf':
  Squashed 'features/frameworks/nanostack-libservice/' changes from 2705b9b..5eb2f3f
2018-10-05 13:09:29 +03:00
Antti Yli-Tokola 4c692c6b45 Update mbed-coap to version 4.7.0
- Add function that can be used to clear the received blockwise payloads for example in the case of a connection error.
- Silence compiler warning when CoAP duplicate detection is enabled.
2018-09-27 18:55:46 +03:00
Antti Yli-Tokola 4249318546 Update mbed-coap to version 4.6.3
- Bug fix: Remove timed out blockwise message from resend queue. If blockwise message was timed out message was still kept in the resend queue which causes unnecessary reconnections on client side.
- Documentation: Document all the available macros.
2018-09-06 16:08:49 +03:00
Cruz Monrreal e7c166ebc2
Merge pull request #7907 from anttiylitokola/coap_to_4.6.2
Update mbed-coap to version 4.6.2
2018-09-02 15:14:04 -05:00
Jarno Lamsa 664d98a2b8 Remove startuml doxygen-command 2018-08-31 11:52:30 +03:00
Jarno Lamsa e4e6ddc424 Fix doxygen from ns_cmdline.h 2018-08-31 11:52:30 +03:00
Olli-Pekka Puolitaival fbbbc0d77f Move mbed-client-cli in right place 2018-08-31 11:52:15 +03:00
Olli-Pekka Puolitaival e27a26eb9d Icetea support 2018-08-31 11:51:57 +03:00
Antti Yli-Tokola 7ae00ee24a Update mbed-coap to version 4.6.2
Do not clear block2 in subsequent block request.

When sending a request with block2 option, eg. indicating need
for response to be blockwised, copy the block2 option from the
sent_blockwise list item so that the block2 option will be added
to all requests. This fixes an issue where previously the block2
was only sent for the first blockwise request and not for the
subsequent ones, including the last request. This made the response
not follow the request block2 option.
2018-08-28 11:09:45 +03:00
Cruz Monrreal bf2da4859c
Merge pull request #7761 from aashishc1988/master
ifndef some macros to allow overriding during compilation
2018-08-27 10:27:49 -05:00
Martin Kojtal 871d7e7361
Merge pull request #7730 from davidsaada/david_stack_stats_fail_fix
When stack stats enabled, prevent exceptions if memory allocations fail
2018-08-24 11:31:24 +02:00
Antti Yli-Tokola f78f5601e5 Update mbed-coap to version 4.6.1
Fixes error: IOTCLT-2900 - Blockwise handling leaking memory in some error cases
* Fix memory leak when clearing blockwise payload list
* Token was not freed from the list when closing down the library

Fix unused parameter - warning when blockwise is not used
2018-08-15 14:07:38 +03:00
Antti Yli-Tokola 590dfeb1f9 Update mbed-coap to version 4.6.0
* Added new API which clears one item from the resend queue by token
2018-08-15 11:16:42 +03:00
Aashish chaddha 1cdef09698 ifndef some macros to allow overriding during compilation or be able to get some warnings during redefinition 2018-08-08 15:23:19 -05:00