Skip to content

Commit 0e29cb3

Browse files
davids5dagar
authored andcommitted
nxp_fmurt1062-v1:Pull more code into XIP Flash
1 parent ff3a76d commit 0e29cb3

File tree

1 file changed

+78
-1
lines changed

1 file changed

+78
-1
lines changed

boards/nxp/fmurt1062-v1/nuttx-config/scripts/ocram-script.ld

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,90 @@ SECTIONS
101101
} > flash
102102

103103
/* Catch all the section we want not in OCRAM so that the *(.text .text.*) in flash does not */
104+
/* Sift and sort with arm-none-eabi-nm -C -S -n build/nxp_fmurt1062-v1_default/nxp_fmurt1062-v1_default.elf > list.txt */
104105

105106
.flashxip : ALIGN(4)
106107
{
107108
FILL(0xff)
108109
/* Order matters */
109110
*(.text.__start)
110111
*(.text.imxrt_ocram_initialize)
111-
112112
*(.slow_memory)
113+
*(.text.romfs*)
114+
*(.text.cromfs*)
115+
*(.text.mpu*)
116+
*(.text.arm_memfault*)
117+
*(.text.arm_hardfault*)
118+
*(.text.up_assert*)
119+
*(.text.up_stackdump*)
120+
*(.text.up_taskdump*)
121+
*(.text.up_mdelay*)
122+
*(.text.up_udelay*)
123+
*(.text.board_on_reset*)
124+
*(.text.board_spi_reset*)
125+
*(.text.board_query_manifest*)
126+
*(.text.board_reset*)
127+
*(.text.board_get*)
128+
*(.text.board_mcu*)
129+
*(.text.imxrt_xbar_connect*)
130+
*(.text.bson*)
131+
*(.text.*print_load*)
132+
*(.text.*px4_mft*)
133+
*(.text.*px4_mtd*)
134+
*(.text.syslog*)
135+
*(.text.register_driver*)
136+
*(.text.nx_start*)
137+
*(.text.nx_bringup*)
138+
*(.text.irq_unexpected_isr*)
139+
*(.text.group*)
140+
*(.text.*setenv*)
141+
*(.text.*env*)
142+
*(.text.cmd*)
143+
*(.text.readline*)
144+
*(.text.mkfatfs*)
145+
*(.text.builtin*)
146+
*(.text.basename*)
147+
*(.text.dirname*)
148+
*(.text.gmtime_r*)
149+
*(.text.chdir*)
150+
*(.text.devnull*)
151+
*(.text.ramdisk*)
152+
*(.text.files*)
153+
*(.text.unregister_driver*)
154+
*(.text.register_blockdriver*)
155+
*(.text.bchdev_register*)
156+
*(.text.part*)
157+
*(.text.ftl*)
158+
*(.text.*I2CBusIterator*)
159+
*(.text.*SPIBusIterator*)
160+
*(.text.*BusCLIArguments*)
161+
*(.text.*WorkQueueManager*)
162+
*(.text.*param_export*)
163+
*(.text.*param_import*)
164+
*(.text.*param_load*)
165+
*(.text.*BusInstanceIterator*)
166+
*(.text.*PRINT_MODULE_USAGE*)
167+
*(.text.*px4_getopt*)
168+
*(.text.*main*)
169+
*(.text.*instantiate*)
170+
*(.text.*ADC*)
171+
*(.text.*MS5611*)
172+
*(.text.*I2CSPIDriver*)
173+
*(.text.*CameraCapture*)
174+
*(.text.*i2cdetect*)
175+
*(.text.*usage*)
176+
/* *(.text.*Bosch*) 2% CPU .5% RAM */
177+
*(.text.*Tunes*)
178+
*(.text.*printStatistics*)
179+
*(.text.*init*)
180+
*(.text.*test*)
181+
*(.text.*task_spawn*)
182+
*(.text.*custom_command*)
183+
*(.text.*print_usage*)
184+
*(.text.*print_status*)
185+
*(.text.*status*)
186+
*(.text.*CameraInterface*)
187+
*(.text.*CameraTrigger*)
113188
*(.text.*ModuleBase*)
114189
*(.text.*print_message*)
115190
*(.text._ZN4Ekf2C2Eb)
@@ -127,6 +202,8 @@ SECTIONS
127202
*(.text.*configure_streams_to_default*)
128203
*(.text.*_main)
129204
*(.text.*GPSDriverAshtech*)
205+
*(.text.*GPSDriver*)
206+
*(.text.*Mavlink*)
130207
*(.rodata .rodata.*)
131208
*(.fixup)
132209
*(.gnu.warning)

0 commit comments

Comments
 (0)