When sst_flash_erase_block() is invoked from Flash File System for PSoC6 target, I think it would never be able to erase more than 512 bytes on PSoC6 when SST emulated block is 4KB, which seems to be a concern during the initialization sequence.
Although during the write operation, we do have an implementation in driver layer of PSoC target which take care of erasing emulated block size of 4KB before write operation which doesn't seem to be adequate way, as the erase needs to happen at the SST than driver layer of the target.
Assuming these are just the workarounds here:
- Do we have a design plan to sort out this in the near future for all the targets?
- The way I see is there are 2 tasks here:
- Fix the erase.
- Remove the workaround for the write in the driver layer for all targets if any.