Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit524fb94

Browse files
committed
mbed-os-to-arduino: add dedicated plc section to linker script
1 parent264de24 commit524fb94

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎mbed-os-to-arduino‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,14 @@ generate_flags () {
221221
sed -i"s?.heap (COPY)?.heap (NOLOAD)?g"$ARDUINOVARIANT/linker_script.ld
222222
sed -i"s?.stack_dummy (COPY)?.stack_dummy (NOLOAD)?g"$ARDUINOVARIANT/linker_script.ld
223223
fi
224+
225+
if [[$ARDUINOVARIANT==*OPTA* ]];then
226+
echo"Adding PLC section to$ARDUINOVARIANT/linker_script.ld"
227+
PLC_SECTION=".plc_section 0x3800F000 (NOLOAD): {\n\
228+
*(.plc_buffer)\n\
229+
} > RAM_D3\n"
230+
sed -i"s?.heap (COPY):?${PLC_SECTION}\n .heap (COPY):?g"$ARDUINOVARIANT/linker_script.ld
231+
fi
224232
fi
225233
echo"Patching linker scripts"
226234
sed -i's/0x8100000/CM4_BINARY_START/g'"$ARDUINOVARIANT"/linker_script.ld

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp