Skip to content

Release candidate for mbed-os-5.7.6 #6195

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

Closed
wants to merge 76 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
813ae64
lwip: enable EMAC IPv6 support
juhaylinen Feb 9, 2018
87f206e
Fix NVIC Wrapper include
TomoYamanaka Feb 9, 2018
b6ab721
DISCO_F303VC : wrong STDIO pins
jeromecoutant Feb 7, 2018
5f57899
DISCO_F303VC : add IAR files
jeromecoutant Feb 8, 2018
375e1ca
DISCO_F303VC : Align clock configuration with STM32 family
jeromecoutant Feb 8, 2018
ac6f62a
Fixed serial pins and a typo for ODIN MTB
Feb 7, 2018
569dab5
cast to resolve signed/unsigned comparison compiler warning in FATFil…
bmcdonnell-ionx Feb 5, 2018
9a05451
STM32L0/4: Always try to select LSE if LPUART and baudrate <= 9600
Jan 25, 2018
c1e8cb7
STM32L0: Enable stop mode operation for the LPUART
Jan 25, 2018
bc3640c
Ble: fix size function in advertising_data_t and address_t.
pan- Feb 9, 2018
ec18173
add few files to gitignore list
ithinuel Feb 9, 2018
b4e7f58
remove magic calibration value for HSI in ST's targets
ithinuel Feb 12, 2018
15dc64e
fatfs: Removed extra MBR block
geky Feb 12, 2018
adb58a9
Added test to catch multiple nested MBRs
geky Feb 13, 2018
f8d1ca0
mbr: Added checks for extended partitions
geky Feb 13, 2018
9eb56b5
tools: build: fix handing of "--stats-depth"
TeroJaasko Feb 13, 2018
a6c69b4
F7 ST CUBE V1.10.0 F7 HAL driver V1.2.5
bcostm Feb 8, 2018
1a3c397
Add missing can legacy file
bcostm Feb 9, 2018
bbb34d5
fix for serial issue #5805
prashantrar Feb 4, 2018
1f3f42b
Fixing coding style
prashantrar Feb 5, 2018
336d50d
mbr: Added note about limitations
geky Feb 14, 2018
1e35f26
Prevent detect_targets.py tool script from crashing on known targets
daid Feb 2, 2018
a528b0c
Fix for issue #6054 - interrupts scheduled in the past.
mprse Feb 12, 2018
9c3d403
Generate/Link secure object file
Sep 22, 2017
bbb1183
gnuarmeclipse exporter uses mBed instead of proper casing
janjongboom Feb 15, 2018
b98aebe
RTX changes pulled in from d20b8aad7f5e
Feb 8, 2018
6be169c
Default values for Trustzone Idle/Timer thread updated
Feb 8, 2018
2342f75
RTX5: Pre-processor defines used for assembly
Feb 7, 2018
591b03c
Non Secure flag is required for pre-processing of linker file
Sep 22, 2017
b746ba1
Pulling in CMSIS commit 05fa9d328a
Feb 8, 2018
b184943
Added SHA record for context switch assembly files
Feb 12, 2018
cac461d
STM32F4 Cube update : file name alignment
jeromecoutant Feb 12, 2018
8d75c35
STM32F4 Cube v1.19.0 update : ST HAL files
jeromecoutant Feb 12, 2018
2954f59
STM32F4 Cube v1.19.0 update : ST CMSIS files
jeromecoutant Feb 14, 2018
6429a9e
STM32F429ZI add SERIAL_ASYNCH
pilotak Feb 13, 2018
81ee1af
remove unused variable / resolve compiler warning
bmcdonnell-ionx Feb 15, 2018
c658bab
Rework us_ticker and lp_ticker
ccli8 Jan 24, 2018
2048a8a
equeue: Removed RTOS dependencies when RTOS not present
geky Feb 15, 2018
5f9aefe
equeue: Added test for non-RTOS compilation regressions
geky Feb 15, 2018
77238d1
equeue: Added note about using global event queues in irq
geky Feb 16, 2018
26645d4
tests-events-timing - print debug info only in case of failure.
mprse Feb 19, 2018
9428d6d
Replacing i2c_xxxx(...) calls to reduce binary size and avoid any RTO…
bqam-ublox Feb 16, 2018
e2d8925
Formatting change
bqam-ublox Feb 16, 2018
a94b2eb
Formatting change - II
bqam-ublox Feb 19, 2018
78075ea
Avoid importing <memory> as this causes a typedef conflict on `error_…
pi-anl Feb 16, 2018
0ff42ca
Simplify and Improve error/warning parser for arm_gcc
steinerphilipp Jan 24, 2018
135369c
Avoid blowing away .mbedignore files in exporters
theotherjimmy Feb 16, 2018
8d04ad0
Correct sector scraping in arm-pack-manager
theotherjimmy Feb 16, 2018
3897d61
Modified 'apt-get update' to loop until successful
cmonr Feb 16, 2018
5659e88
Added missing bracket.
cmonr Feb 17, 2018
3c72e84
Support ECP H/W accelerator
ccli8 Nov 13, 2017
d53284c
Fix warning in crypto
ccli8 Jan 22, 2018
7ec5910
Refine code in ECP alter.
ccli8 Jan 22, 2018
b05ccef
Check divisor is not zero in MODOP_DIV operation in ECP alter.
ccli8 Feb 6, 2018
f4cf8ae
Remove mbedtls prefix for internal functions in ECP alter.
ccli8 Feb 6, 2018
dcf17fc
Remove mbedtls_internal_ecp_mul in ECP alter.
ccli8 Feb 6, 2018
57aacff
Support internal self-test for ECP alter.
ccli8 Feb 6, 2018
c92b650
Refine crypto_zeroize/crypto_zeroize32
ccli8 Feb 12, 2018
7417522
Refine internal_mpi_write_eccreg in ECP alter.
ccli8 Feb 12, 2018
bb24d4e
STM32 STDIO pin redefinition
jeromecoutant Feb 8, 2018
908ee77
K64F lp ticker driver - calculation bug fix.
mprse Feb 9, 2018
d75675a
littlefs: Fix incorrect lookahead population before ack
geky Feb 9, 2018
c381737
NETSOCKET pressure tests configuration
jeromecoutant Feb 14, 2018
1b05280
Make NRF52 flash work with SoftDevice
Feb 16, 2018
6c5b4ad
Added quotes around MBED_BOT parameter
cmonr Feb 16, 2018
558358a
LWIP PBUF_POOL_BUFSIZE increased to fit also IPv6 header
Feb 20, 2018
8e95e53
Fix WIFI-CONNECT-PARAMS-CHANNEL-FAIL Greentea test case
Feb 20, 2018
bfe7902
fixup! LWIP PBUF_POOL_BUFSIZE increased to fit also IPv6 header
Feb 21, 2018
9ea0f86
Pull request template update
0xc0170 Feb 13, 2018
5e9d8ee
Correct single file excludes for some exporters
theotherjimmy Feb 20, 2018
1bb801c
retarget: Fix path behaviour without leading slash
geky Feb 21, 2018
5f8c702
LPC546XX: Add support for 220MHz core speed available on LPC54628
mmahadevan108 Feb 20, 2018
b27e5df
ff_lpc546xx: Add support for 220MHz core speed.
mmahadevan108 Feb 20, 2018
2fa791d
nrf5x: gpiote uninit only needs to be run if input pin is configured …
pi-anl Feb 6, 2018
c56a71e
sleep_manager_racecondition: fix for slow devices
maciejbocianski Feb 22, 2018
569db76
Update Mbed version block for patch release
adbridge Feb 23, 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
Prev Previous commit
Next Next commit
Added test to catch multiple nested MBRs
  • Loading branch information
geky authored and adbridge committed Feb 23, 2018
commit adb58a9e18b203f6411c86a72fc55e2e4e95d523
41 changes: 41 additions & 0 deletions features/TESTS/filesystem/multipart_fat_filesystem/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,46 @@ void test_read_write() {
TEST_ASSERT_EQUAL(0, err);
}

void test_single_mbr() {
int err = bd.init();
TEST_ASSERT_EQUAL(0, err);

const bd_addr_t MBR_OFFSET = 0;
const bd_addr_t FAT1_OFFSET = 1;
const bd_addr_t FAT2_OFFSET = BLOCK_COUNT/2;

uint8_t *buffer = (uint8_t *)malloc(BLOCK_SIZE);
TEST_ASSERT(buffer);

// Check that all three header blocks have the 0x55aa signature
err = bd.read(buffer, MBR_OFFSET*BLOCK_SIZE, BLOCK_SIZE);
TEST_ASSERT_EQUAL(0, err);
TEST_ASSERT(memcmp(&buffer[BLOCK_SIZE-2], "\x55\xaa", 2) == 0);

err = bd.read(buffer, FAT1_OFFSET*BLOCK_SIZE, BLOCK_SIZE);
TEST_ASSERT_EQUAL(0, err);
TEST_ASSERT(memcmp(&buffer[BLOCK_SIZE-2], "\x55\xaa", 2) == 0);

err = bd.read(buffer, FAT2_OFFSET*BLOCK_SIZE, BLOCK_SIZE);
TEST_ASSERT_EQUAL(0, err);
TEST_ASSERT(memcmp(&buffer[BLOCK_SIZE-2], "\x55\xaa", 2) == 0);

// Check that the headers for both filesystems contain a jump code
// indicating they are actual FAT superblocks and not an extra MBR
err = bd.read(buffer, FAT1_OFFSET*BLOCK_SIZE, BLOCK_SIZE);
TEST_ASSERT_EQUAL(0, err);
TEST_ASSERT(buffer[0] == 0xe9 || buffer[0] == 0xeb || buffer[0] == 0xe8);

err = bd.read(buffer, FAT2_OFFSET*BLOCK_SIZE, BLOCK_SIZE);
TEST_ASSERT_EQUAL(0, err);
TEST_ASSERT(buffer[0] == 0xe9 || buffer[0] == 0xeb || buffer[0] == 0xe8);

free(buffer);

bd.deinit();
TEST_ASSERT_EQUAL(0, err);
}


// Test setup
utest::v1::status_t test_setup(const size_t number_of_cases) {
Expand All @@ -174,6 +214,7 @@ Case cases[] = {
Case("Testing formating", test_format),
Case("Testing read write < block", test_read_write<BLOCK_SIZE/2>),
Case("Testing read write > block", test_read_write<2*BLOCK_SIZE>),
Case("Testing for no extra MBRs", test_single_mbr),
};

Specification specification(test_setup, cases);
Expand Down