Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flash erase fix #801

Merged
merged 1 commit into from
Jul 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ bool Esp32FlashDriver_EraseBlock(void* context, ByteAddress address)
// ets_printf("EraseBlock start part adr:%X start mem: %X size:%X erase adr:%X\n", g_pFlashDriver_partition->address, g_esp32_flash_start_ptr, g_pFlashDriver_partition->size, address);

uint32_t start_addr = address * SPI_FLASH_SEC_SIZE;
uint32_t size = 4096 * 20; // g_pFlashDriver_partition->size
uint32_t size = g_pFlashDriver_partition->size;
// ets_printf("EraseBlock start addr %X\n", start_addr);

if (esp_partition_erase_range(g_pFlashDriver_partition, start_addr, size) != ESP_OK)
Expand Down