forked from espressif/esp-idf
Merge branch 'master' into feature/newlib_locking
This commit is contained in:
@@ -20,16 +20,10 @@
|
|||||||
//and all variables in shared RAM. This can be redirected to IRAM if
|
//and all variables in shared RAM. This can be redirected to IRAM if
|
||||||
//needed using these macros.
|
//needed using these macros.
|
||||||
|
|
||||||
//Forces data and flash into IRAM instead of flash / shared RAM
|
// Forces code into IRAM instead of flash
|
||||||
#define IRAM_ATTR __attribute__((section(".iram1")))
|
#define IRAM_ATTR __attribute__((section(".iram1")))
|
||||||
|
|
||||||
|
// Forces data into DRAM instead of flash
|
||||||
#define DRAM_ATTR __attribute__((section(".dram1")))
|
#define DRAM_ATTR __attribute__((section(".dram1")))
|
||||||
|
|
||||||
//Forces data and flash into the IRAM section of a specific core.
|
|
||||||
//Normally, you shouldn't have to use this: the linker will take care of
|
|
||||||
//only linking in the functions for that specific core.
|
|
||||||
#define IRAM_C0_ATTR __attribute__((section(".iram1pro")))
|
|
||||||
#define DRAM_C0_ATTR __attribute__((section(".iram1pro")))
|
|
||||||
#define IRAM_C1_ATTR __attribute__((section(".dram1app")))
|
|
||||||
#define DRAM_C1_ATTR __attribute__((section(".dram1app")))
|
|
||||||
|
|
||||||
#endif /* __ESP_ATTR_H__ */
|
#endif /* __ESP_ATTR_H__ */
|
||||||
|
@@ -106,6 +106,7 @@ SECTIONS
|
|||||||
KEEP(*(.sdata2.*))
|
KEEP(*(.sdata2.*))
|
||||||
KEEP(*(.gnu.linkonce.s2.*))
|
KEEP(*(.gnu.linkonce.s2.*))
|
||||||
KEEP(*(.jcr))
|
KEEP(*(.jcr))
|
||||||
|
*(.dram1 .dram1.*)
|
||||||
_data_end = ABSOLUTE(.);
|
_data_end = ABSOLUTE(.);
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_heap_start = ABSOLUTE(.);
|
_heap_start = ABSOLUTE(.);
|
||||||
|
@@ -30,6 +30,9 @@ function run_tests()
|
|||||||
git clone ${ESP_IDF_TEMPLATE_GIT} template
|
git clone ${ESP_IDF_TEMPLATE_GIT} template
|
||||||
cd template
|
cd template
|
||||||
|
|
||||||
|
print_status "Updating template config..."
|
||||||
|
make defconfig || exit $?
|
||||||
|
|
||||||
BOOTLOADER_BINS="bootloader/bootloader.elf bootloader/bootloader.bin"
|
BOOTLOADER_BINS="bootloader/bootloader.elf bootloader/bootloader.bin"
|
||||||
APP_BINS="app-template.elf app-template.bin"
|
APP_BINS="app-template.elf app-template.bin"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user