mikevoyt opened a new pull request #2377: URL: https://github.com/apache/mynewt-core/pull/2377
## Description Without a hff_erase implementation for HAL flash functions, the HAL flash layer will default to sector erase for all erase functions, regardless of length. This PR implements hff_erase, and will issue a chip erase or 64KB block erase where possible based on the address and length of area to be erased. ## How was this tested? On the nRF52840 DK (PCA10056) using the provided MX25R6435F QSPI flash, I measured a 4K sector erase of about 84 mS. With this patch, a 64KB block erase averages about 1164 mS. This saves about 176 mS per 64K erase. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org