mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 18:27:05 +08:00
tropic-community: Add DTCM to heap move vectors to ITCM
This commit is contained in:
committed by
David Sidrane
parent
e338d8713b
commit
a89ec34e95
@@ -30,7 +30,7 @@ CONFIG_ARM_MPU=y
|
|||||||
CONFIG_ARM_MPU_RESET=y
|
CONFIG_ARM_MPU_RESET=y
|
||||||
CONFIG_BOARDCTL_RESET=y
|
CONFIG_BOARDCTL_RESET=y
|
||||||
CONFIG_BOARD_ASSERT_RESET_VALUE=0
|
CONFIG_BOARD_ASSERT_RESET_VALUE=0
|
||||||
CONFIG_BOARD_LOOPSPERMSEC=114325
|
CONFIG_BOARD_LOOPSPERMSEC=115000
|
||||||
CONFIG_BOARD_RESET_ON_ASSERT=2
|
CONFIG_BOARD_RESET_ON_ASSERT=2
|
||||||
CONFIG_BUILTIN=y
|
CONFIG_BUILTIN=y
|
||||||
CONFIG_CDCACM=y
|
CONFIG_CDCACM=y
|
||||||
@@ -73,6 +73,7 @@ CONFIG_HAVE_CXXINITIALIZE=y
|
|||||||
CONFIG_I2C=y
|
CONFIG_I2C=y
|
||||||
CONFIG_I2C_RESET=y
|
CONFIG_I2C_RESET=y
|
||||||
CONFIG_IDLETHREAD_STACKSIZE=2048
|
CONFIG_IDLETHREAD_STACKSIZE=2048
|
||||||
|
CONFIG_IMXRT_DTCM_HEAP=y
|
||||||
CONFIG_IMXRT_EDMA=y
|
CONFIG_IMXRT_EDMA=y
|
||||||
CONFIG_IMXRT_EDMA_EDBG=y
|
CONFIG_IMXRT_EDMA_EDBG=y
|
||||||
CONFIG_IMXRT_EDMA_ELINK=y
|
CONFIG_IMXRT_EDMA_ELINK=y
|
||||||
@@ -140,6 +141,7 @@ CONFIG_MEMSET_64BIT=y
|
|||||||
CONFIG_MEMSET_OPTSPEED=y
|
CONFIG_MEMSET_OPTSPEED=y
|
||||||
CONFIG_MMCSD=y
|
CONFIG_MMCSD=y
|
||||||
CONFIG_MMCSD_SDIO=y
|
CONFIG_MMCSD_SDIO=y
|
||||||
|
CONFIG_MM_REGIONS=2
|
||||||
CONFIG_MTD=y
|
CONFIG_MTD=y
|
||||||
CONFIG_MTD_BYTE_WRITE=y
|
CONFIG_MTD_BYTE_WRITE=y
|
||||||
CONFIG_MTD_PARTITION=y
|
CONFIG_MTD_PARTITION=y
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* boards/arm/imxrt/teensy-4.x/scripts/flash.ld
|
* boards/nxp/tropic-community/nuttx-config/scripts/script.ld
|
||||||
*
|
*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
* contributor license agreements. See the NOTICE file distributed with
|
* contributor license agreements. See the NOTICE file distributed with
|
||||||
@@ -67,6 +67,7 @@ SECTIONS
|
|||||||
_sitcmfuncs = ABSOLUTE(.);
|
_sitcmfuncs = ABSOLUTE(.);
|
||||||
FILL(0xFF)
|
FILL(0xFF)
|
||||||
. = 0x40 ;
|
. = 0x40 ;
|
||||||
|
*(.ram_vectors)
|
||||||
INCLUDE "itcm_static_functions.ld"
|
INCLUDE "itcm_static_functions.ld"
|
||||||
INCLUDE "itcm_functions_includes.ld"
|
INCLUDE "itcm_functions_includes.ld"
|
||||||
. = ALIGN(8);
|
. = ALIGN(8);
|
||||||
@@ -75,19 +76,6 @@ SECTIONS
|
|||||||
|
|
||||||
_fitcmfuncs = LOADADDR(.itcmfunc);
|
_fitcmfuncs = LOADADDR(.itcmfunc);
|
||||||
|
|
||||||
/* The RAM vector table (if present) should lie at the beginning of SRAM */
|
|
||||||
|
|
||||||
.ram_vectors (COPY) : {
|
|
||||||
*(.ram_vectors)
|
|
||||||
} > dtcm
|
|
||||||
|
|
||||||
|
|
||||||
/* Workaround for ethernet issue, by placing g_desc_pool into DTCM,
|
|
||||||
which effectively puts it into a no-cache region */
|
|
||||||
.dtcm : {
|
|
||||||
*(.bss.g_desc_pool)
|
|
||||||
} > dtcm
|
|
||||||
|
|
||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
_stext = ABSOLUTE(.);
|
_stext = ABSOLUTE(.);
|
||||||
|
|||||||
Reference in New Issue
Block a user