Browse Source

Merge branch 'bugfix/esp32c3_wrong_iram_alignment_v4.3_2' into 'release/v4.3'

System/memprot: ESP32C3 IRAM section alignment fix (v4.3)

See merge request espressif/esp-idf!14506
Mahavir Jain 4 years ago
parent
commit
82b868a4b2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      components/esp32c3/ld/esp32c3.project.ld.in

+ 2 - 1
components/esp32c3/ld/esp32c3.project.ld.in

@@ -392,7 +392,8 @@ SECTIONS
   /* Marks the end of IRAM code segment */
   .iram0.text_end (NOLOAD) :
   {
-    /* C3 memprot requires 512 B alignment for split lines */
+    /* C3 memprot requires 16B padding for possible CPU prefetch and 512B alignment for PMS split lines */
+    . += 16;
     . = ALIGN (0x200);
     /* iram_end_test section exists for use by memprot unit tests only */
     *(.iram_end_test)