Skip to content

Issue with features-storage-tests-blockdevice-general_block_device #12575

@miteshdedhia7

Description

@miteshdedhia7

Description of defect

BUG: The test_random_program_read_erase and test_thread_job and potentially other tests in features-storage-tests-blockdevice-general_block_device test query the block_size using get_erase_size(). For a QSPIFBlockDevice, when using the sector map table the
get_erase_size()/_min_common_erase_size is calculated by checking if all sectors have a common erase type in _sfdp_parse_sector_map_table(). If all sectors in a Flash device do not have a common erase type (which may be a valid use case) then get_erase_size() returns 0 and the the tests will fail since block_size == 0 with nothing to erase, program or read. Note that _sfdp_detect_erase_types_inst_and_size also sets the _min_common_erase_size but this is overriden by _sfdp_parse_sector_map_table() which was never called before due the bug in header parsing mentioned before.

Target(s) affected by this defect ?

CYW9P62S1_43012EVB_01 (Potentially other targets)

Toolchain(s) (name and version) displaying this defect ?

All Toolchains

What version of Mbed-os are you using (tag or sha) ?

fe12608

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

mbed-cli 1.10.2

How is this defect reproduced ?

Related to issue #11722

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions