Skip to content

SD card FAT format with multipartitions are not compatible with PC #5999

@JaniSuonpera

Description

@JaniSuonpera

Description

  • Type: Bug
  • Priority: Major

Bug

Target
K64F

Toolchain:
GCC_ARM

mbed-os sha:
(git log -n1 --oneline)
caeaa49 (HEAD, tag: mbed-os-5.7.4, origin/mbed-os-5.7) Merge pull request #5954 from ARMmbed/release-candidate

Expected behavior

  • SD contains two partition which can not be read with PC but target K64F is still able to read/write SD card without any problem.

Actual behavior

  • SD parts partition type is unknown. (check with PC e.g. Linux program gparted )

Steps to reproduce
Initialize BlockDevice point to SD e.g. with
BlockDevice *bd = storage_selector();

// Create a partitions
MBRBlockDevice::partition(bd, 1, 0x83, 0, 10241024);
MBRBlockDevice::partition(bd, 2, 0x83, 1024
1024, 210241024);

// Create the block device that represents the partition
MBRBlockDevice part1(bd, 1);
MBRBlockDevice part2(bd, 2);

// Format the partitions with a FAT filesystem
FATFileSystem::format(&part1);
FATFileSystem::format(&part2);

Check SD card with PC.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions