Skip to content

Add 64KB block erase functionality to QSPI#694

Open
kidproquo wants to merge 2 commits intoelectro-smith:masterfrom
kidproquo:patch-1
Open

Add 64KB block erase functionality to QSPI#694
kidproquo wants to merge 2 commits intoelectro-smith:masterfrom
kidproquo:patch-1

Conversation

@kidproquo
Copy link

libDaisy's QSPI erase uses 4KB sector erase commands (0xD7), requiring 256 erase operations for 1MB.

Discovery: We benchmarked the erase operations:

Erase 64KB (16x 4KB sectors): 80,000ms  // Calling EraseSector 16 times
Erase 64KB (bulk Erase):       1,700ms  // Still using 4KB internally
Erase 64KB (64KB block cmd):     115ms  // Using 0xD8 command

The IS25LP080D flash chip supports 64KB block erase (command 0xD8), but libDaisy wasn't using it. This PR adds it.

Some additional context is provided in this blog post: https://scopecreeplabs.com/blog/stm32-esp32-ota/

@github-actions
Copy link

github-actions bot commented Mar 2, 2026

Test Results

150 tests  ±0   150 ✅ ±0   0s ⏱️ ±0s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit c036bb8. ± Comparison against base commit 9498417.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant