Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Commit 6d96550

Browse files
author
Janne Kiiskilä
authored
Merge branch 'master' into PAL1.0
2 parents b61b932 + 8afdc42 commit 6d96550

File tree

3 files changed

+25
-16
lines changed

3 files changed

+25
-16
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,19 @@ The application:
1818
* mbed 6LoWPAN shield (AT86RF212B/[AT86RF233](https://firefly-iot.com/product/firefly-arduino-shield-2-4ghz/)) for 6LoWPAN ND and Thread.
1919
* Ethernet cable and connection to the internet.
2020

21+
## Supported Target hardware configurations
22+
23+
This example has been tested in following configuration
24+
* K64F + NXP MCR20 15.4 shield (mesh `NANOSTACK_FULL` mode)
25+
* NUCLEO_F429ZI + ATMEL AT233 15.4 shield (mesh `LOWPAN_ROUTER` mode)
26+
* K64F (Ethernet)
27+
* NUCLEO_F429ZI (Ethernet)
28+
* UBLOX_EVK_ODIN_W2 (Ethernet)
29+
* K64F + GROVE SEEED shield (Wifi)
30+
* NUCLEO_F429ZI + GROVE SEEED shield (Wifi)
31+
32+
Apart from this, this example can work on other mbed OS supported hardware boards which support any of the given network interface including Ethernet, WiFi, Mesh (6LoWPAN) or Thread, provided the configuration fulfills condition that the target hardware has TLS entropy implemented for it and the complete example configuration of mbed Client, selected network interface and mbed OS components fits into hardware's given memory size (Flash size and RAM size).
33+
2134
## Requirements for non-K64F boards
2235

2336
* This example requires TLS functionality to be enabled on mbed TLS.

mbed-os.lib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
https://github.com/ARMmbed/mbed-os/#1d875083b701a5e530f97ba615e2c0d2060d09e5
1+
https://github.com/ARMmbed/mbed-os/#e435a07d9252f133ea3d9f6c95dfb176f32ab9b6

mbedtls_mbed_client_config.h

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1-
/*
1+
/**
22
* Minimal configuration for using mbedtls as part of mbed-client
33
*
4+
* NOTE! This is an optimized, minimal configuration for mbed Client.
5+
* We know it works with mbed Client but if you want to add more
6+
* services/communications to the application yourself - please ensure
7+
* you update this configuration accordingly. The default configuration
8+
* can be found from mbedTLS Github:
9+
*
10+
* https://github.com/ARMmbed/mbedtls/blob/development/include/mbedtls/config.h
11+
*
12+
*
413
* Copyright (C) 2006-2016, ARM Limited, All Rights Reserved
514
* SPDX-License-Identifier: Apache-2.0
615
*
@@ -41,7 +50,6 @@
4150
#define MBEDTLS_ASN1_PARSE_C
4251
#define MBEDTLS_ASN1_WRITE_C
4352
#define MBEDTLS_BIGNUM_C
44-
#define MBEDTLS_CCM_C
4553
#define MBEDTLS_CIPHER_C
4654
#define MBEDTLS_CTR_DRBG_C
4755
#define MBEDTLS_ECP_C
@@ -59,22 +67,12 @@
5967
// XXX mbedclient needs these: mbedtls_x509_crt_free, mbedtls_x509_crt_init, mbedtls_x509_crt_parse
6068
#define MBEDTLS_X509_USE_C
6169
#define MBEDTLS_X509_CRT_PARSE_C
62-
// a bit wrong way to get mbedtls_ssl_conf_psk:
63-
// XXX: this should be ifdef'd out from client too
64-
#define MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED
6570

6671
// XXX: clean these up!!
67-
#define MBEDTLS_KEY_EXCHANGE__WITH_CERT__ENABLED
68-
#define MBEDTLS_KEY_EXCHANGE__SOME__ECDHE_ENABLED
69-
#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
7072
#define MBEDTLS_SHA512_C
7173
#define MBEDTLS_ECDH_C
7274
#define MBEDTLS_GCM_C
73-
#define MBEDTLS_CCM_C
7475

75-
#define MBEDTLS_PKCS1_V15
76-
77-
#define MBEDTLS_CIPHER_MODE_CBC
7876
#define MBEDTLS_ECDH_C
7977
#define MBEDTLS_ECDSA_C
8078
#define MBEDTLS_X509_CRT_PARSE_C
@@ -89,8 +87,6 @@
8987
// Remove selftesting and save 11KB of ROM
9088
#undef MBEDTLS_SELF_TEST
9189

92-
#undef MBEDTLS_SSL_COOKIE_C
93-
9490
// Reduces ROM size by 30 kB
9591
#undef MBEDTLS_ERROR_STRERROR_DUMMY
9692
#undef MBEDTLS_VERSION_FEATURES
@@ -101,7 +97,7 @@
10197
// dep of the previous
10298
#define MBEDTLS_BASE64_C
10399

104-
// reduce IO buffer to save RAM, default is 16KB
100+
// Reduce IO buffer to save RAM, default is 16KB
105101
#define MBEDTLS_SSL_MAX_CONTENT_LEN 2048
106102

107103
// define to save 8KB RAM at the expense of ROM

0 commit comments

Comments
 (0)