Forum Discussion
Subsector erase with Generic QUAD SPI controller II
- 3 years ago
Hi,
We have generic Driver API's for QSPI memory like memory info, read data, write data, erase block/sector.
List of Driver API is given in below link-
https://www.intel.com/programmable/technical-pdfs/683130.pdf
We don't have specific Sub-sector erase Driver API.
-Tiwari
Hi
In the Generic QUAD SPI Controller II, you do not need to worry about the sector size.
You will just need to indicate the block that you would like to erase and it will determine the size of the block to be erased.
alt_qspi_controller2_erase_block(alt_flash_dev *flash_info, int block_offset)
Regards
Jingyang, Teh
- HOcg3 years ago
New Contributor
Hi Jingyang,
Thank you for your answer, but my question here is if I can erase just part of a block. According to the comment of the function alt_qspi_controller2_erase_block(alt_flash_dev *flash_info, int block_offset):
/* ...
* Arguments:
* - *flash_info: Pointer to QSPI flash device structure.
* - block_offset: byte-addressed offset, from start of flash, of the sector to be erased...*/
Thus from here I understand that I can only erase the memory in sectors. But I need to erase only a subsector within a given sector.