Procházet zdrojové kódy

update ld file for esp32-s2

duyi před 6 roky
rodič
revize
18a05e2ee0

+ 3 - 3
components/bootloader/subproject/main/ld/esp32s2beta/bootloader.ld

@@ -5,9 +5,9 @@
 
 MEMORY
 {
-  iram_loader_seg (RWX) :           org = 0x40060000, len = 0x4000  /* 16KB, SRAM Block_18 */
-  iram_seg (RWX) :                  org = 0x40064000, len = 0x4000  /* 16KB, SRAM Block_19 */
-  dram_seg (RW) :                   org = 0x3FFF8000, len = 0x4000  /* 16KB, SRAM Block_20 */
+  iram_loader_seg (RWX) :           org = 0x40050000, len = 0x4000  /* 16KB, SRAM Block_14 */
+  iram_seg (RWX) :                  org = 0x40054000, len = 0x4000  /* 16KB, SRAM Block_15 */
+  dram_seg (RW) :                   org = 0x3FFE8000, len = 0x2800  /* 10KB, Top of SRAM Block_16, and before ROM data and stack */
 }
 
 /*  Default entry point:  */

+ 1 - 1
components/esp32s2beta/ld/esp32s2beta.ld

@@ -48,7 +48,7 @@ MEMORY
 
   /* Even though the segment name is iram, it is actually mapped to flash
   */
-  iram0_2_seg (RX) :                 org = 0x40080020, len = 0x380000-0x20
+  iram0_2_seg (RX) :                 org = 0x40080020, len = 0x780000-0x20
 
   /*
     (0x20 offset above is a convenience for the app binary image generation.