Skip to content

Commit 3b1445d

Browse files
authored
[bsp][imxrt1060]fix gcc can't runing issue. (#5667)
1 parent 59079fe commit 3b1445d

File tree

4 files changed

+17
-18
lines changed

4 files changed

+17
-18
lines changed

bsp/imxrt/imxrt1060-nxp-evk/board/board.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,6 @@ void BOARD_ReconfigFlexSpiRxBuffer(void)
10081008
SCB_EnableICache();
10091009
}
10101010

1011-
10121011
/**
10131012
* This function will initial rt1050 board.
10141013
*/
@@ -1021,7 +1020,7 @@ void rt_hw_board_init()
10211020
*((volatile uint32_t *)0x41044100) = 5;
10221021

10231022
BOARD_ConfigMPU();
1024-
BOARD_ReconfigFlexSpiRxBuffer();
1023+
// BOARD_ReconfigFlexSpiRxBuffer();
10251024
BOARD_InitPins();
10261025
BOARD_InitSemcPins();
10271026
BOARD_BootClockRUN();

bsp/imxrt/imxrt1060-nxp-evk/board/linker_scripts/link.lds

+13-13
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ STACK_SIZE = DEFINED(__stack_size__) ? __stack_size__ : 0x0400;
5353
/* Specify the memory areas */
5454
MEMORY
5555
{
56-
m_boot_data (RX) : ORIGIN = 0x70000000, LENGTH = 0x00001000
57-
m_image_vertor_table (RX) : ORIGIN = 0x70001000, LENGTH = 0x00001000
56+
m_boot_data (RX) : ORIGIN = 0x60000000, LENGTH = 0x00001000
57+
m_image_vertor_table (RX) : ORIGIN = 0x60001000, LENGTH = 0x00001000
5858

59-
m_interrupts (RX) : ORIGIN = 0x70002000, LENGTH = 0x00000400
60-
m_text (RX) : ORIGIN = 0x70002400, LENGTH = 0x003FDC00
59+
m_interrupts (RX) : ORIGIN = 0x60002000, LENGTH = 0x00000400
60+
m_text (RX) : ORIGIN = 0x60002400, LENGTH = 0x003FDC00
6161

6262
m_itcm (RW) : ORIGIN = 0x00000000, LENGTH = 0x00020000
6363
m_dtcm (RW) : ORIGIN = 0x20000000, LENGTH = 0x00020000
@@ -220,25 +220,25 @@ SECTIONS
220220
*(.data) /* .data sections */
221221
*(.data*) /* .data* sections */
222222
KEEP(*(.jcr*))
223+
*(NonCacheable.init)
224+
*(NonCacheable)
223225
. = ALIGN(4);
224226
__data_end__ = .; /* define a global symbol at data end */
225-
} > m_dtcm
227+
} > m_sdram
226228

227229
__NDATA_ROM = __DATA_ROM + (__data_end__ - __data_start__);
228230
.ncache.init : AT(__NDATA_ROM)
229231
{
230232
__noncachedata_start__ = .; /* create a global symbol at ncache data start */
231-
*(NonCacheable.init)
232233
. = ALIGN(4);
233234
__noncachedata_init_end__ = .; /* create a global symbol at initialized ncache data end */
234-
} > m_nocache
235+
} > m_ocram
235236
. = __noncachedata_init_end__;
236237
.ncache :
237238
{
238-
*(NonCacheable)
239239
. = ALIGN(4);
240240
__noncachedata_end__ = .; /* define a global symbol at ncache data end */
241-
} > m_nocache
241+
} > m_ocram
242242

243243
__DATA_END = __NDATA_ROM + (__noncachedata_init_end__ - __noncachedata_start__);
244244
text_end = ORIGIN(m_text) + LENGTH(m_text);
@@ -258,7 +258,7 @@ SECTIONS
258258
. = ALIGN(4);
259259
__bss_end__ = .;
260260
__END_BSS = .;
261-
} > m_dtcm
261+
} > m_sdram
262262

263263
.stack :
264264
{
@@ -267,15 +267,15 @@ SECTIONS
267267
. += STACK_SIZE;
268268
stack_end = .;
269269
__StackTop = .;
270-
} > m_dtcm
270+
} > m_sdram
271271

272272
.RTT_HEAP :
273273
{
274274
heap_start = .;
275275
. = ALIGN(8);
276-
} > m_dtcm
276+
} > m_sdram
277277

278-
PROVIDE(heap_end = ORIGIN(m_dtcm) + LENGTH(m_dtcm));
278+
PROVIDE(heap_end = ORIGIN(m_sdram) + LENGTH(m_sdram));
279279

280280
.ARM.attributes 0 : { *(.ARM.attributes) }
281281

bsp/imxrt/imxrt1060-nxp-evk/rtconfig.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
if os.getenv('RTT_EXEC_PATH'):
3030
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
3131

32-
#BUILD = 'debug'
33-
BUILD = 'release'
32+
BUILD = 'debug'
33+
# BUILD = 'release'
3434

3535
if PLATFORM == 'gcc':
3636
PREFIX = 'arm-none-eabi-'

bsp/imxrt/libraries/drivers/SConscript

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ if GetDepend('RT_USING_USB_HOST'):
7070
if GetDepend('BSP_USING_PULSE_ENCODER'):
7171
src += ['drv_pulse_encoder.c']
7272

73-
path = [cwd,cwd + '/config']
73+
path = [cwd]
7474

7575
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES=CPPDEFINES)
7676

0 commit comments

Comments
 (0)