8000 esp32: Move the user flash area starting address to the end of the ap… · micropython/micropython-esp32@4e8fbed · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit 4e8fbed

Browse files
author
Daniel Campora
committed
esp32: Move the user flash area starting address to the end of the application area.
1 parent b28dc7a commit 4e8fbed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esp32/modesp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ STATIC mp_obj_t esp_flash_size(void) {
7777
STATIC MP_DEFINE_CONST_FUN_OBJ_0(esp_flash_size_obj, esp_flash_size);
7878

7979
STATIC mp_obj_t esp_flash_user_start(void) {
80-
return MP_OBJ_NEW_SMALL_INT(0x200000);
80+
return MP_OBJ_NEW_SMALL_INT(0x10000 + 0x200000); // App offset + max app size
8181
}
8282
STATIC MP_DEFINE_CONST_FUN_OBJ_0(esp_flash_user_start_obj, esp_flash_user_start);
8383

0 commit comments

Comments
 (0)
0