-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
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) ?
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