Skip to content

Commit ce20340

Browse files
authored
Merge pull request #339 from yosinski/master
Add .ramfunc attribute to flash_with_bootloader.ld to enable keeping functions in RAM
2 parents 6ed425f + a6b4ae7 commit ce20340

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

variants/feather_m4/linker_scripts/gcc/flash_with_bootloader.ld

+4
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ SECTIONS
170170
KEEP(*(.fini_array))
171171
PROVIDE_HIDDEN (__fini_array_end = .);
172172

173+
. = ALIGN(4);
174+
/* Keep .ramfunc functions in RAM */
175+
KEEP(*(.ramfunc))
176+
173177
KEEP(*(.jcr*))
174178
. = ALIGN(16);
175179
/* All data end */

0 commit comments

Comments
 (0)