Skip to content

Release candidate for mbed-os-5.9.5 #7753

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 68 commits into from
Aug 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
1b792d6
Cellular: updated unit tests.
Jun 20, 2018
39c8d29
Merge multiple ARM/ARMC6 sys.cpp into one
ccli8 Jul 25, 2018
7fcf7de
Fix __user_setup_stackheap and ARM_LIB_STACK/ARM_LIB_HEAP cannot co-e…
ccli8 Jul 25, 2018
9219208
On STM32F439xI IAR linker file decreased stack size and increased heap
Jun 21, 2018
cb11945
Fix for max_stack not returning right value when OS_STACK_WATERMARK i…
SenRamakri Jul 18, 2018
81b75d4
MPS2 platform: Enable interrupt on rx for UART
nismad01 Jul 27, 2018
b630133
Optimize the configuration for RTX evr events to disable the ones not…
SenRamakri Jul 27, 2018
ff16f69
Remove debug print
Jul 27, 2018
fa06653
Fixing incorrect NetID causing ABP Failures
Jul 30, 2018
b307836
Update mbed-coap version to 4.5.1
Jul 31, 2018
37aa036
Fixed NUC472 SD & EMAC IP reset define
cyliangtw Jul 20, 2018
7e3bd64
Add error handling for getting null tx buffer
cyliangtw Jul 20, 2018
a2b6751
Initialized return value of numaker_emac link-out
cyliangtw Jul 31, 2018
4f14ea7
WiFiInterface::get_target_default_instance() added to TARGET_WICED.
KariHaapalehto Jul 31, 2018
2a16bae
Removed device emac check from emac greentea tests
Jul 31, 2018
553cfe9
Changing default SPI CS pin to SD card on MTB
Jul 30, 2018
70435d2
Lora: Fix cancel_sending
Jul 27, 2018
7449c11
F1 ST CUBE V1.6.1
bcostm Jul 25, 2018
659ceba
F1 ST CUBE V1.6.1: add I2C patches
bcostm Jul 26, 2018
b5fee23
Implementation of LPTICKER feature for Renesas mbed boards
TomoYamanaka Jul 19, 2018
b9bb017
Add the clear process of "inited" flag in lp_ticker_free()
TomoYamanaka Jul 30, 2018
57bd710
Skip a few tests if not enough memory can be allocated for them.
Jul 10, 2018
a709e91
Add init reference count to all block devices
Jul 30, 2018
522ef29
cellular: astyle fix
0xc0170 Jul 27, 2018
6d75e61
cellular: fix tests that astyle breaks
0xc0170 Jul 31, 2018
9222e97
fix comment copy/paste error
bmcdonnell-ionx Jul 31, 2018
87d7b2b
An incomplete connect (either abandoned with a disconnect() or just f…
EnsilicaEdd Jul 31, 2018
96cc814
STM32F7: remove HAL_InitTick() declaration in us_ticker_data.h files
bcostm Aug 1, 2018
5d516f5
Cellular: fixed greentea tests C027 and BG96.
Jun 29, 2018
daf5b77
Renesas : Improve Flash iap
TomoYamanaka Aug 2, 2018
1ca35fe
Organize file structure
ccli8 Aug 1, 2018
14e04bc
Remove inclusion of mbed.h and mbed namespace from filesystem code
Jul 31, 2018
f7b83f6
FlashIAP: Add timing test
Jun 29, 2018
0dbcf97
set correct default privacy configuration for centrals
paul-szczepanek-arm Aug 3, 2018
a84f6e9
PR template: fix target update list
0xc0170 Aug 3, 2018
d380a35
STM32: remove uart force_reset at init
bcostm Jul 30, 2018
ded45f9
Add __ADUCM4050__ and __ADUCM3029__ to include MCU specific configura…
Aug 6, 2018
5f98d4d
Add C++ linkage for adi_tmr.h
Aug 6, 2018
63223b5
Disable unused Configuration data from compiler warning Add __ADuCM30…
Aug 6, 2018
2992546
Resolve adi_tmr_ConfigTimer discrepancy between __ADuCM4050__ and __A…
Aug 6, 2018
5aa9b38
Resolve adi_tmr_ConfigTimer api conflict in us_ticker.c for both EV_C…
Aug 6, 2018
42bee88
Nanostack: fix error code
juhaylinen Aug 2, 2018
4907f92
events: astyle fix
0xc0170 Aug 3, 2018
e517862
MIMXRT1050_EVK: Add Low Power Manager files
mmahadevan108 Aug 6, 2018
b1166d4
MXRT1050_EVK: Ensure certain low power function are linked to interna…
mmahadevan108 Aug 6, 2018
5d509d2
MXRT1050_EVK: Sleep: add pre/post processing steps
mmahadevan108 Aug 6, 2018
935e07e
MXRT1050_EVK: Enable Sleep function and add SKIP_SYSCLK_INIT macro
mmahadevan108 Aug 6, 2018
e837425
sms gt tests
Jul 17, 2018
7d2d835
sms gt tests: changes after review
Aug 7, 2018
3608cc7
sms gt tests: rebase and astyle fix
Aug 7, 2018
7461844
iar: remove nxp duplicate definitions
0xc0170 Jul 30, 2018
b9ab52e
frdm-k22f: fix IAR definition
0xc0170 Aug 3, 2018
a261fe1
iar: kl43 - use nxp MCU definition
0xc0170 Aug 3, 2018
faaa14c
iar: MK22F use xx12 Freescale for 7.80.x
0xc0170 Aug 7, 2018
cea311d
Fix owner restoration and discard across nvstore init
Aug 7, 2018
de9bb5d
call the correct ltk function when SC is used
paul-szczepanek-arm Aug 3, 2018
986c422
replaced lesc field usage with ediv&rand check
paul-szczepanek-arm Aug 6, 2018
3bbdf34
factor out invalid rand function
paul-szczepanek-arm Aug 8, 2018
dbeded5
MACRO the size of rand
paul-szczepanek-arm Aug 8, 2018
37985e5
factored out whole ediv rand check
paul-szczepanek-arm Aug 8, 2018
7c1942c
STM32: check for UART ongoing transfers before entering deepsleep
LMESTM Aug 6, 2018
a89e26c
Use HAL coding style for function naming
LMESTM Aug 7, 2018
4d5ee56
Update Lwip error calls to use new error codes and mbed_error call
SenRamakri Aug 7, 2018
5d46e28
Cellular: WISE_1570's system clock back to HSE_XTAL
Aug 8, 2018
5769f52
Fix Microlib compatibility for -t ARM
theotherjimmy Aug 7, 2018
68a1629
Rename text region in ARM linker file for Renesas & Realtek boards
Aug 8, 2018
038365f
Update Mbed version block
adbridge Aug 13, 2018
5dd2904
Stabilize macro ordering in mbed_config.h
theotherjimmy Jul 30, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
-->
[ ] Fix
[ ] Refactor
[ ] New target
[ ] Target update
[ ] Feature
[ ] Breaking change

83 changes: 82 additions & 1 deletion TESTS/mbed_drivers/flashiap/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#endif

#include "utest/utest.h"
#include "utest/utest_serial.h"
#include "unity/unity.h"
#include "greentea-client/test_env.h"
#include <algorithm>
Expand Down Expand Up @@ -178,15 +179,95 @@ void flashiap_program_error_test()
TEST_ASSERT_EQUAL_INT32(0, ret);
}

void flashiap_timing_test()
{
FlashIAP flash_device;
uint32_t ret = flash_device.init();
TEST_ASSERT_EQUAL_INT32(0, ret);
mbed::Timer timer;
int num_write_sizes;
unsigned int curr_time, byte_usec_ratio;
unsigned int avg_erase_time = 0;
unsigned int max_erase_time = 0, min_erase_time = (unsigned int) -1;
const unsigned int max_writes = 128;
const unsigned int max_write_sizes = 6;
const unsigned int max_byte_usec_ratio = 200;

uint32_t page_size = flash_device.get_page_size();
uint32_t write_size = page_size;

uint32_t end_address = flash_device.get_flash_start() + flash_device.get_flash_size();

utest_printf("\nFlash timing:\n");
uint32_t sector_size = flash_device.get_sector_size(end_address - 1UL);
uint32_t base_address = end_address - sector_size;
timer.start();
for (num_write_sizes = 0; num_write_sizes < max_write_sizes; num_write_sizes++) {
if (write_size > sector_size) {
break;
}
uint8_t *buf = new (std::nothrow) uint8_t[write_size];
if (!buf) {
// Don't fail the test on lack of heap memory for the buffer
break;
}
memset(buf, 0x5A, write_size);
timer.reset();
ret = flash_device.erase(base_address, sector_size);
curr_time = timer.read_us();
avg_erase_time += curr_time;
TEST_ASSERT_EQUAL_INT32(0, ret);
max_erase_time = std::max(max_erase_time, curr_time);
min_erase_time = std::min(min_erase_time, curr_time);
uint32_t address = base_address;
unsigned int avg_write_time = 0;
unsigned int max_write_time = 0, min_write_time = (unsigned int) -1;
int num_writes;
for (num_writes = 0; num_writes < max_writes; num_writes++) {
if ((address + write_size) > end_address) {
break;
}
timer.reset();
ret = flash_device.program(buf, address, write_size);
curr_time = timer.read_us();
avg_write_time += curr_time;
TEST_ASSERT_EQUAL_INT32(0, ret);
max_write_time = std::max(max_write_time, curr_time);
min_write_time = std::min(min_write_time, curr_time);
address += write_size;
}
delete[] buf;
avg_write_time /= num_writes;
utest_printf("Write size %6u bytes: avg %10u, min %10u, max %10u (usec)\n",
write_size, avg_write_time, min_write_time, max_write_time);
byte_usec_ratio = write_size / avg_write_time;
TEST_ASSERT(byte_usec_ratio < max_byte_usec_ratio);
write_size *= 4;
}

if (num_write_sizes) {
avg_erase_time /= num_write_sizes;
utest_printf("\nErase size %6u bytes: avg %10u, min %10u, max %10u (usec)\n\n",
sector_size, avg_erase_time, min_erase_time, max_erase_time);
byte_usec_ratio = sector_size / avg_erase_time;
TEST_ASSERT(byte_usec_ratio < max_byte_usec_ratio);
}

ret = flash_device.deinit();
TEST_ASSERT_EQUAL_INT32(0, ret);
}


Case cases[] = {
Case("FlashIAP - init", flashiap_init_test),
Case("FlashIAP - program", flashiap_program_test),
Case("FlashIAP - program across sectors", flashiap_cross_sector_program_test),
Case("FlashIAP - program errors", flashiap_program_error_test),
Case("FlashIAP - timing", flashiap_timing_test),
};

utest::v1::status_t greentea_test_setup(const size_t number_of_cases) {
GREENTEA_SETUP(20, "default_auto");
GREENTEA_SETUP(120, "default_auto");
return greentea_test_setup_handler(number_of_cases);
}

Expand Down
11 changes: 8 additions & 3 deletions TESTS/mbed_platform/error_handling/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ void test_error_logging()
}

#define NUM_TEST_THREADS 5
#define THREAD_STACK_SIZE 512

//Error logger threads
void err_thread_func(mbed_error_status_t *error_status)
Expand All @@ -211,16 +212,20 @@ void err_thread_func(mbed_error_status_t *error_status)
*/
void test_error_logging_multithread()
{
uint8_t *dummy = new (std::nothrow) uint8_t[NUM_TEST_THREADS * THREAD_STACK_SIZE];
TEST_SKIP_UNLESS_MESSAGE(dummy, "Not enough memory for test");
delete[] dummy;

mbed_error_ctx error_ctx = {0};
int i=0;
int i;
Thread *errThread[NUM_TEST_THREADS];
mbed_error_status_t error_status[NUM_TEST_THREADS] = {
MBED_ERROR_INVALID_ARGUMENT, MBED_ERROR_INVALID_DATA_DETECTED, MBED_ERROR_INVALID_FORMAT, MBED_ERROR_INVALID_SIZE, MBED_ERROR_INVALID_OPERATION
};


for(; i<NUM_TEST_THREADS; i++) {
errThread[i] = new Thread(osPriorityNormal1, 512, NULL, NULL);
for(i=0; i<NUM_TEST_THREADS; i++) {
errThread[i] = new Thread(osPriorityNormal1, THREAD_STACK_SIZE, NULL, NULL);
errThread[i]->start(callback(err_thread_func, &error_status[i]));
}
wait(2.0);
Expand Down
4 changes: 0 additions & 4 deletions TESTS/network/emac/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@
#endif
#endif

#ifndef DEVICE_EMAC
#error [NOT_SUPPORTED] Device EMAC has to be enabled for the target
#endif

#include "greentea-client/test_env.h"
#include "unity.h"
#include "utest.h"
Expand Down
Loading