1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

F3 - Add support for code in CCM RAM.

This commit is contained in:
Dominic Clifton 2019-08-28 14:41:21 +02:00
parent 376d4c5294
commit 376441f89f
3 changed files with 29 additions and 0 deletions

View file

@ -53,6 +53,19 @@ SECTIONS
_etext = .; /* define a global symbols at end of code */
} >FLASH
/* Critical program code goes into CCM RAM */
/* Copy specific fast-executing code to CCM RAM */
ccm_code = LOADADDR(.ccm_code);
.ccm_code :
{
. = ALIGN(4);
ccm_code_start = .;
*(.ccm_code)
*(.ccm_code*)
. = ALIGN(4);
ccm_code_end = .;
} >CCM AT >FLASH
.ARM.extab : { *(.ARM.extab* .gnu.linkonce.armextab.*) } >FLASH
.ARM : {