Skip to content

Release candidate for mbed-os-5.7.2 #5767

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 55 commits into from
Jan 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
caff3d1
Add memory barriers to STM32F7xx Ethernet
kjbracey Dec 18, 2017
921631d
K64F Ethernet: avoid using NULL thread during init
kjbracey Dec 21, 2017
815b9bf
Build failed as code section was not included in map.
Oct 10, 2017
36aa8bc
Allow 6LoWPAN applications to leave out channel specification.
Dec 20, 2017
0923e8f
Add mbed-os-example-filesystem to examples list
adbridge Dec 21, 2017
f99ec6b
Enable IAR export for EV_COG_AD3029LZ and EV_COG_AD4050LZ
Dec 13, 2017
bbb6372
Add app_start config system support for NRF52840 for bootloader
dlfryar-zz Dec 12, 2017
668883a
RTX5: Cortex-A exception handlers updated (VFP register count detection)
RobertRostohar Oct 27, 2017
c30e107
Revise startup processing having CMSIS5/RTX5 been available on GR-PEACH
TomoYamanaka Dec 1, 2017
2661bc2
Add GIC_SetConfigration function to satisfy Cortex-A interrupt spec
TomoYamanaka Dec 14, 2017
747138f
Add the lacked definitions to mbed_rtx.h
TomoYamanaka Dec 14, 2017
c29772a
Change the way of enter/exit of critical section of code
TomoYamanaka Dec 14, 2017
67781c2
Supplement the lack of "extended RTC" in RZ_A1H/rtc_api.c
TomoYamanaka Dec 14, 2017
709d9ee
Revert "Remove Cortex-A mbed OS 5 support"
TomoYamanaka Dec 14, 2017
9bc8a36
Add Cortex-A9 for ARMCC and ARMC6
TomoYamanaka Dec 14, 2017
edc0b18
Modify 2-byte code of "heap and stack" test main for Cortex-A
TomoYamanaka Dec 14, 2017
3ca6dbf
Change the "malloc" test main for Cortex-A
TomoYamanaka Dec 14, 2017
6852fff
Change the "thread" test main for Cortex-A
TomoYamanaka Dec 14, 2017
80521c8
Core(A): Updated __FPU_Enable function (VFP register count detection)
RobertRostohar Oct 27, 2017
417a527
CMSIS-Core(A): Fixed enumerated type increment in GIC_DistInit and GI…
brondani Oct 27, 2017
195cd93
CMSIS-Core(A): Add MMU section_normal_nc macro
TomoYamanaka Dec 1, 2017
d4eb833
RTX5: fixed __get_PSP function for Cortex-A on IAR (#288)
VladimirUmek Dec 8, 2017
91b33a2
Core(A): Refactored L1 Cache maintenance to be compiler agnostic. - A…
JonatanAntoni Dec 11, 2017
2ced7f4
Core(A): Changed macro __DEPRECATED to CMSIS_DEPRECATED. (Issue #287)…
JonatanAntoni Dec 14, 2017
cb91dfe
Added missing subscription
marogi Dec 10, 2017
75bdcfd
Bootloader support for MK24F1 for Keil toolchain
marogi Dec 11, 2017
134f3b5
Bootloader support for MK24F1 for IAR toolchain
marogi Dec 11, 2017
b62ee44
Fix for #5676 make.py generates duplicate file entries in link_files.txt
Dec 21, 2017
ac4ff65
Greentea Wifi testcase fixes
Dec 8, 2017
42c328f
Greentea WIFI-SCAN - make possible to disable check against assumed c…
Dec 14, 2017
4d154b8
Greentea WIFI-CONNECT-SECURE must use NSAPI_SECURITY_WPA_WPA2
Dec 14, 2017
0680821
remove disconnect from test cases as it's going to be called implicit…
Dec 22, 2017
29b0bed
Security protocol made configurable via json
Dec 22, 2017
2561415
Greentea test case WIFI-CONNECT-NOCREDENTIALS- accept also parameter …
Dec 22, 2017
290c59d
platform: fix mem_trace trace_level guard
maciejbocianski Nov 29, 2017
db43173
STM32 USBHost: rename files
bcostm Sep 8, 2017
ea842b7
STM32 USBHost: Remove USBHALHost_STM_TARGET.h files
bcostm Sep 8, 2017
d9e9882
STM32 USBHost: Improvements in USBHALHost_STM.h
bcostm Sep 8, 2017
7059a26
STM32 USBHOST: Add support of DISCO_F413ZH
bcostm Oct 3, 2017
791f669
STM32 USBHOST: Add support of DISCO_F469NI and DISCO_F769NI
bcostm Oct 4, 2017
3b795ba
STM32 USBHOST: Corrections for DISCO_F429ZI
bcostm Oct 30, 2017
ed5aee1
STM32 USBHOST: Corrections for DISCO_F769NI in targets.json
bcostm Oct 31, 2017
1fb7102
STM32 USBHOST: Corrections for DISCO_F746NG
bcostm Oct 31, 2017
177c95b
STM32 USBHOST: Remove DISCO_F429ZI
bcostm Nov 30, 2017
68da43c
Access to serial device is allowed when DEVICE_SERIAL is defined
Oct 11, 2017
bbe11de
Remove destruction of WiFi interface in test runs
Dec 18, 2017
d95a253
Added init for ODIN EVK LEDs to be off by default
Nov 29, 2017
404e8ed
Added license header
Nov 30, 2017
a83068c
renesas: os tick only for rtos
0xc0170 Dec 31, 2017
89bc1a2
Travis: add RZ_A1H target
0xc0170 Dec 31, 2017
7327e8e
tools: cmsis and hal are build together
0xc0170 Jan 1, 2018
54d12c8
VK RZ A1H: fix errors from the latest cmsis updates
0xc0170 Jan 2, 2018
97a61c4
VK RZ A1H: remove target from mbed 2 release
0xc0170 Jan 2, 2018
37641d7
Update Mbed version block for patch release
adbridge Jan 2, 2018
431b2d1
Revert "Supplement the lack of "extended RTC" in RZ_A1H/rtc_api.c"
adbridge Jan 2, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,5 @@ matrix:
env: NAME=mbed2-ATMEL
- <<: *mbed-2
env: NAME=mbed2-NUVOTON
- <<: *mbed-2
env: NAME=mbed2-RENESAS
2 changes: 1 addition & 1 deletion TESTS/mbedmicro-rtos-mbed/heap_and_stack/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

#if defined(TARGET_CORTEX_A)
  #error [NOT_SUPPORTED] This function not supported for this target
#error [NOT_SUPPORTED] This function not supported for this target
#endif

#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion TESTS/mbedmicro-rtos-mbed/malloc/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ volatile bool thread_should_continue = true;
#define THREAD_MALLOC_SIZE 100

#if defined(__CORTEX_A9)
#define THREAD_STACK_SIZE DEFAULT_STACK_SIZE
#define THREAD_STACK_SIZE 512
#else
#define THREAD_STACK_SIZE 256
#endif
Expand Down
4 changes: 4 additions & 0 deletions TESTS/mbedmicro-rtos-mbed/threads/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
#endif

#define THREAD_STACK_SIZE 512
#if defined(__CORTEX_A9)
#define PARALLEL_THREAD_STACK_SIZE 512
#else
#define PARALLEL_THREAD_STACK_SIZE 384
#endif
#define CHILD_THREAD_STACK_SIZE 384

using namespace utest::v1;
Expand Down
6 changes: 4 additions & 2 deletions TESTS/network/wifi/get_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ WiFiInterface *get_interface()
{
static WiFiInterface *interface = NULL;

if (interface)
delete interface;
if (interface) {
interface->disconnect();
return interface;
}

#if MBED_CONF_APP_WIFI_DRIVER == INTERNAL
interface = new DRIVER();
Expand Down
44 changes: 44 additions & 0 deletions TESTS/network/wifi/get_security.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*
* Copyright (c) 2017, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#include <cstring>
#include "mbed.h"
#include "nsapi_types.h"

nsapi_security get_security()
{
#if defined MBED_CONF_APP_WIFI_SECURE_PROTOCOL
static const char *SEC_WEP = "WEP";
static const char *SEC_WPA = "WPA";
static const char *SEC_WPA2 = "WPA2";
static const char *SEC_WPA_WPA2 = "WPA/WPA2";

if (strcmp(MBED_CONF_APP_WIFI_SECURE_PROTOCOL, SEC_WEP) == 0) {
return NSAPI_SECURITY_WEP;
}
if (strcmp(MBED_CONF_APP_WIFI_SECURE_PROTOCOL, SEC_WPA) == 0) {
return NSAPI_SECURITY_WPA;
}
if (strcmp(MBED_CONF_APP_WIFI_SECURE_PROTOCOL, SEC_WPA2) == 0) {
return NSAPI_SECURITY_WPA2;
}
if (strcmp(MBED_CONF_APP_WIFI_SECURE_PROTOCOL, SEC_WPA_WPA2) == 0) {
return NSAPI_SECURITY_WPA_WPA2;
}
#endif
return NSAPI_SECURITY_NONE;
}
5 changes: 3 additions & 2 deletions TESTS/network/wifi/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
!defined(MBED_CONF_APP_WIFI_PASSWORD) || \
!defined(MBED_CONF_APP_WIFI_RX) || \
!defined(MBED_CONF_APP_WIFI_SECURE_SSID) || \
!defined(MBED_CONF_APP_WIFI_TX)
!defined(MBED_CONF_APP_WIFI_TX) || \
!defined MBED_CONF_APP_WIFI_SECURE_PROTOCOL
#error [NOT_SUPPORTED] Requires parameters from mbed_app.json (for secure connections)
#endif
#endif // defined(MBED_CONF_APP_WIFI_SECURE_SSID)
Expand Down Expand Up @@ -58,6 +59,7 @@ utest::v1::status_t test_setup(const size_t number_of_cases) {
// Test cases
Case cases[] = {
Case("WIFI-CONSTRUCTOR", wifi_constructor),
Case("WIFI-CONNECT-NOCREDENTIALS", wifi_connect_nocredentials),
Case("WIFI-SET-CREDENTIAL", wifi_set_credential),
Case("WIFI-SET-CHANNEL", wifi_set_channel),
#if defined(MBED_CONF_APP_WIFI_UNSECURE_SSID)
Expand All @@ -72,7 +74,6 @@ Case cases[] = {
Case("WIFI-CONNECT-PARAMS-CHANNEL", wifi_connect_params_channel),
Case("WIFI-CONNECT-PARAMS-CHANNEL-FAIL", wifi_connect_params_channel_fail),
#endif
Case("WIFI-CONNECT-NOCREDENTIALS", wifi_connect_nocredentials),
#if defined(MBED_CONF_APP_WIFI_UNSECURE_SSID)
Case("WIFI-CONNECT", wifi_connect),
#endif
Expand Down
4 changes: 4 additions & 0 deletions TESTS/network/wifi/template_mbed_app.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
"help": "WiFi Password",
"value": "\"PASSWORD\""
},
"wifi-secure-protocol": {
"help": "WiFi security protocol, valid values are WEP, WPA, WPA2, WPA/WPA2",
"value": "\"WPA/WPA2\""
},
"wifi-ch-secure": {
"help": "Channel number of secure SSID",
"value": 1
Expand Down
3 changes: 1 addition & 2 deletions TESTS/network/wifi/wifi_connect_nocredentials.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@ void wifi_connect_nocredentials(void)
WiFiInterface *wifi = get_interface();
nsapi_error_t error;
error = wifi->connect();
wifi->disconnect();
TEST_ASSERT(error == NSAPI_ERROR_PARAMETER);
TEST_ASSERT(error == NSAPI_ERROR_NO_SSID || error == NSAPI_ERROR_PARAMETER);
}
2 changes: 1 addition & 1 deletion TESTS/network/wifi/wifi_connect_params_channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void wifi_connect_params_channel(void)
return;
}

nsapi_error_t error = wifi->connect(MBED_CONF_APP_WIFI_SECURE_SSID, MBED_CONF_APP_WIFI_PASSWORD, NSAPI_SECURITY_WPA2, MBED_CONF_APP_WIFI_CH_SECURE);
nsapi_error_t error = wifi->connect(MBED_CONF_APP_WIFI_SECURE_SSID, MBED_CONF_APP_WIFI_PASSWORD, get_security(), MBED_CONF_APP_WIFI_CH_SECURE);
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, error);
}

Expand Down
2 changes: 1 addition & 1 deletion TESTS/network/wifi/wifi_connect_params_channel_fail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void wifi_connect_params_channel_fail(void)
return;
}

nsapi_error_t error = wifi->connect(MBED_CONF_APP_WIFI_SECURE_SSID, MBED_CONF_APP_WIFI_PASSWORD, NSAPI_SECURITY_WPA2, MBED_CONF_APP_WIFI_CH_SECURE);
nsapi_error_t error = wifi->connect(MBED_CONF_APP_WIFI_SECURE_SSID, MBED_CONF_APP_WIFI_PASSWORD, get_security(), MBED_CONF_APP_WIFI_CH_SECURE);
TEST_ASSERT(error==NSAPI_ERROR_CONNECTION_TIMEOUT || error==NSAPI_ERROR_NO_CONNECTION);
}

Expand Down
14 changes: 1 addition & 13 deletions TESTS/network/wifi/wifi_connect_params_valid_secure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,7 @@ void wifi_connect_params_valid_secure(void)
{
WiFiInterface *wifi = get_interface();

if(wifi->connect(MBED_CONF_APP_WIFI_SECURE_SSID, MBED_CONF_APP_WIFI_PASSWORD, NSAPI_SECURITY_WPA2) == NSAPI_ERROR_OK) {
return;
}

if(wifi->connect(MBED_CONF_APP_WIFI_SECURE_SSID, MBED_CONF_APP_WIFI_PASSWORD, NSAPI_SECURITY_WPA_WPA2) == NSAPI_ERROR_OK) {
return;
}

if(wifi->connect(MBED_CONF_APP_WIFI_SECURE_SSID, MBED_CONF_APP_WIFI_PASSWORD, NSAPI_SECURITY_WPA) == NSAPI_ERROR_OK) {
return;
}

if(wifi->connect(MBED_CONF_APP_WIFI_SECURE_SSID, MBED_CONF_APP_WIFI_PASSWORD, NSAPI_SECURITY_WEP) == NSAPI_ERROR_OK) {
if(wifi->connect(MBED_CONF_APP_WIFI_SECURE_SSID, MBED_CONF_APP_WIFI_PASSWORD, get_security()) == NSAPI_ERROR_OK) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion TESTS/network/wifi/wifi_connect_secure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void wifi_connect_secure(void)
{
WiFiInterface *wifi = get_interface();

TEST_ASSERT_EQUAL_INT(NSAPI_ERROR_OK, wifi->set_credentials(MBED_CONF_APP_WIFI_SECURE_SSID, MBED_CONF_APP_WIFI_PASSWORD, NSAPI_SECURITY_WPA2));
TEST_ASSERT_EQUAL_INT(NSAPI_ERROR_OK, wifi->set_credentials(MBED_CONF_APP_WIFI_SECURE_SSID, MBED_CONF_APP_WIFI_PASSWORD, get_security()));

TEST_ASSERT_EQUAL_INT(NSAPI_ERROR_OK, wifi->connect());
}
Expand Down
2 changes: 1 addition & 1 deletion TESTS/network/wifi/wifi_connect_secure_fail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void wifi_connect_secure_fail(void)
{
WiFiInterface *wifi = get_interface();

TEST_ASSERT_EQUAL_INT(NSAPI_ERROR_OK, wifi->set_credentials(MBED_CONF_APP_WIFI_SECURE_SSID, "aaaaaaaa", NSAPI_SECURITY_WPA2));
TEST_ASSERT_EQUAL_INT(NSAPI_ERROR_OK, wifi->set_credentials(MBED_CONF_APP_WIFI_SECURE_SSID, "aaaaaaaa", get_security()));

TEST_ASSERT_EQUAL_INT(NSAPI_ERROR_AUTH_FAILURE, wifi->connect());
}
Expand Down
11 changes: 7 additions & 4 deletions TESTS/network/wifi/wifi_scan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,23 @@ void wifi_scan(void)

for (int i=0; i<size; i++) {
const char *ssid = ap[i].get_ssid();
const uint8_t *bssid = ap[i].get_bssid();
nsapi_security_t security = ap[i].get_security();
int8_t rssi = ap[i].get_rssi();
uint8_t ch = ap[i].get_channel();
TEST_ASSERT_INT8_WITHIN(-10, -100, rssi);
if (strcmp(MBED_CONF_APP_WIFI_SECURE_SSID, ssid) == 0) {
secure_found = true;
TEST_ASSERT_EQUAL_INT(NSAPI_SECURITY_WPA2, security);
TEST_ASSERT_EQUAL_INT(MBED_CONF_APP_WIFI_CH_SECURE, ch);
TEST_ASSERT_EQUAL_INT(get_security(), security);
if (MBED_CONF_APP_WIFI_CH_SECURE) {
TEST_ASSERT_EQUAL_INT(MBED_CONF_APP_WIFI_CH_SECURE, ch);
}
}
if (strcmp(MBED_CONF_APP_WIFI_UNSECURE_SSID, ssid) == 0) {
unsecure_found = true;
TEST_ASSERT_EQUAL_INT(NSAPI_SECURITY_NONE, security);
TEST_ASSERT_EQUAL_INT(MBED_CONF_APP_WIFI_CH_UNSECURE, ch);
if (MBED_CONF_APP_WIFI_CH_UNSECURE) {
TEST_ASSERT_EQUAL_INT(MBED_CONF_APP_WIFI_CH_UNSECURE, ch);
}
}
}
TEST_ASSERT_TRUE(secure_found);
Expand Down
8 changes: 4 additions & 4 deletions TESTS/network/wifi/wifi_set_credential.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ void wifi_set_credential(void)
TEST_ASSERT((error == NSAPI_ERROR_OK) || (error == NSAPI_ERROR_UNSUPPORTED));

error = iface->set_credentials("OK", "12345678", NSAPI_SECURITY_WPA);
TEST_ASSERT(error == NSAPI_ERROR_OK);
TEST_ASSERT((error == NSAPI_ERROR_OK) || (error == NSAPI_ERROR_UNSUPPORTED));

error = iface->set_credentials("OK", "12345678", NSAPI_SECURITY_WPA2);
TEST_ASSERT(error == NSAPI_ERROR_OK);
TEST_ASSERT((error == NSAPI_ERROR_OK) || (error == NSAPI_ERROR_UNSUPPORTED));

error = iface->set_credentials("OK", "12345678", NSAPI_SECURITY_WPA_WPA2);
TEST_ASSERT(error == NSAPI_ERROR_OK);

error = iface->set_credentials("OK", "kUjd0PHHeAqaDoyfcDDEOvbyiVbYMpUHDukGoR6EJZnO5iLzWsfwiM9JQqOngni", NSAPI_SECURITY_WPA2);
error = iface->set_credentials("OK", "kUjd0PHHeAqaDoyfcDDEOvbyiVbYMpUHDukGoR6EJZnO5iLzWsfwiM9JQqOngni", get_security());
TEST_ASSERT(error == NSAPI_ERROR_OK);

error = iface->set_credentials("OK", "kUjd0PHHeAqaDoyfcDDEOvbyiVbYMpUHDukGoR6EJZnO5iLzWsfwiM9JQqOngni8", NSAPI_SECURITY_WPA2);
error = iface->set_credentials("OK", "kUjd0PHHeAqaDoyfcDDEOvbyiVbYMpUHDukGoR6EJZnO5iLzWsfwiM9JQqOngni8", get_security());
TEST_ASSERT(error == NSAPI_ERROR_PARAMETER);
}
5 changes: 5 additions & 0 deletions TESTS/network/wifi/wifi_tests.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
* app_json. */
WiFiInterface *get_interface(void);

/**
* Get security protocol to be used
*/
nsapi_security get_security(void);

/*
* Test cases
*/
Expand Down
Loading