Skip to content

Commit 8d193ba

Browse files
authored
Merge pull request #1781 from MaBecker/esp32_fix_flash_section
ESP32 fix addFlashArea()
2 parents e568c6c + be30513 commit 8d193ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

targets/esp32/jshardware.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -735,9 +735,9 @@ JsVar *jshFlashGetFree() {
735735
if (!jsFreeFlash) return 0;
736736
// Space reserved here in the parition table - using sub type 0x40
737737
// This should be read from the partition table
738-
addFlashArea(jsFreeFlash, 0xE000, 0x2000);
739-
addFlashArea(jsFreeFlash, 0x2B0000, 0x10000);
740-
738+
addFlashArea(jsFreeFlash, 0xE000, 0x2000);
739+
addFlashArea(jsFreeFlash, 0x310000, 0x10000);
740+
addFlashArea(jsFreeFlash, 0x360000, 0xA0000);
741741
return jsFreeFlash;
742742
}
743743

0 commit comments

Comments
 (0)