[bsp][imxrt1060]fix gcc can't runing issue. (#5667)

This commit is contained in:
guo 2022-03-14 22:54:12 +08:00 committed by GitHub
parent 59079fe91f
commit 3b1445d49c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 18 deletions
bsp/imxrt
imxrt1060-nxp-evk
board
board.c
linker_scripts
rtconfig.py
libraries/drivers

@ -1008,7 +1008,6 @@ void BOARD_ReconfigFlexSpiRxBuffer(void)
SCB_EnableICache(); SCB_EnableICache();
} }
/** /**
* This function will initial rt1050 board. * This function will initial rt1050 board.
*/ */
@ -1021,7 +1020,7 @@ void rt_hw_board_init()
*((volatile uint32_t *)0x41044100) = 5; *((volatile uint32_t *)0x41044100) = 5;
BOARD_ConfigMPU(); BOARD_ConfigMPU();
BOARD_ReconfigFlexSpiRxBuffer(); // BOARD_ReconfigFlexSpiRxBuffer();
BOARD_InitPins(); BOARD_InitPins();
BOARD_InitSemcPins(); BOARD_InitSemcPins();
BOARD_BootClockRUN(); BOARD_BootClockRUN();

@ -53,11 +53,11 @@ STACK_SIZE = DEFINED(__stack_size__) ? __stack_size__ : 0x0400;
/* Specify the memory areas */ /* Specify the memory areas */
MEMORY MEMORY
{ {
m_boot_data (RX) : ORIGIN = 0x70000000, LENGTH = 0x00001000 m_boot_data (RX) : ORIGIN = 0x60000000, LENGTH = 0x00001000
m_image_vertor_table (RX) : ORIGIN = 0x70001000, LENGTH = 0x00001000 m_image_vertor_table (RX) : ORIGIN = 0x60001000, LENGTH = 0x00001000
m_interrupts (RX) : ORIGIN = 0x70002000, LENGTH = 0x00000400 m_interrupts (RX) : ORIGIN = 0x60002000, LENGTH = 0x00000400
m_text (RX) : ORIGIN = 0x70002400, LENGTH = 0x003FDC00 m_text (RX) : ORIGIN = 0x60002400, LENGTH = 0x003FDC00
m_itcm (RW) : ORIGIN = 0x00000000, LENGTH = 0x00020000 m_itcm (RW) : ORIGIN = 0x00000000, LENGTH = 0x00020000
m_dtcm (RW) : ORIGIN = 0x20000000, LENGTH = 0x00020000 m_dtcm (RW) : ORIGIN = 0x20000000, LENGTH = 0x00020000
@ -220,25 +220,25 @@ SECTIONS
*(.data) /* .data sections */ *(.data) /* .data sections */
*(.data*) /* .data* sections */ *(.data*) /* .data* sections */
KEEP(*(.jcr*)) KEEP(*(.jcr*))
*(NonCacheable.init)
*(NonCacheable)
. = ALIGN(4); . = ALIGN(4);
__data_end__ = .; /* define a global symbol at data end */ __data_end__ = .; /* define a global symbol at data end */
} > m_dtcm } > m_sdram
__NDATA_ROM = __DATA_ROM + (__data_end__ - __data_start__); __NDATA_ROM = __DATA_ROM + (__data_end__ - __data_start__);
.ncache.init : AT(__NDATA_ROM) .ncache.init : AT(__NDATA_ROM)
{ {
__noncachedata_start__ = .; /* create a global symbol at ncache data start */ __noncachedata_start__ = .; /* create a global symbol at ncache data start */
*(NonCacheable.init)
. = ALIGN(4); . = ALIGN(4);
__noncachedata_init_end__ = .; /* create a global symbol at initialized ncache data end */ __noncachedata_init_end__ = .; /* create a global symbol at initialized ncache data end */
} > m_nocache } > m_ocram
. = __noncachedata_init_end__; . = __noncachedata_init_end__;
.ncache : .ncache :
{ {
*(NonCacheable)
. = ALIGN(4); . = ALIGN(4);
__noncachedata_end__ = .; /* define a global symbol at ncache data end */ __noncachedata_end__ = .; /* define a global symbol at ncache data end */
} > m_nocache } > m_ocram
__DATA_END = __NDATA_ROM + (__noncachedata_init_end__ - __noncachedata_start__); __DATA_END = __NDATA_ROM + (__noncachedata_init_end__ - __noncachedata_start__);
text_end = ORIGIN(m_text) + LENGTH(m_text); text_end = ORIGIN(m_text) + LENGTH(m_text);
@ -258,7 +258,7 @@ SECTIONS
. = ALIGN(4); . = ALIGN(4);
__bss_end__ = .; __bss_end__ = .;
__END_BSS = .; __END_BSS = .;
} > m_dtcm } > m_sdram
.stack : .stack :
{ {
@ -267,15 +267,15 @@ SECTIONS
. += STACK_SIZE; . += STACK_SIZE;
stack_end = .; stack_end = .;
__StackTop = .; __StackTop = .;
} > m_dtcm } > m_sdram
.RTT_HEAP : .RTT_HEAP :
{ {
heap_start = .; heap_start = .;
. = ALIGN(8); . = ALIGN(8);
} > m_dtcm } > m_sdram
PROVIDE(heap_end = ORIGIN(m_dtcm) + LENGTH(m_dtcm)); PROVIDE(heap_end = ORIGIN(m_sdram) + LENGTH(m_sdram));
.ARM.attributes 0 : { *(.ARM.attributes) } .ARM.attributes 0 : { *(.ARM.attributes) }

@ -29,8 +29,8 @@ elif CROSS_TOOL == 'iar':
if os.getenv('RTT_EXEC_PATH'): if os.getenv('RTT_EXEC_PATH'):
EXEC_PATH = os.getenv('RTT_EXEC_PATH') EXEC_PATH = os.getenv('RTT_EXEC_PATH')
#BUILD = 'debug' BUILD = 'debug'
BUILD = 'release' # BUILD = 'release'
if PLATFORM == 'gcc': if PLATFORM == 'gcc':
PREFIX = 'arm-none-eabi-' PREFIX = 'arm-none-eabi-'

@ -70,7 +70,7 @@ if GetDepend('RT_USING_USB_HOST'):
if GetDepend('BSP_USING_PULSE_ENCODER'): if GetDepend('BSP_USING_PULSE_ENCODER'):
src += ['drv_pulse_encoder.c'] src += ['drv_pulse_encoder.c']
path = [cwd,cwd + '/config'] path = [cwd]
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES=CPPDEFINES) group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES=CPPDEFINES)