We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 524fb94 commit 65aa13bCopy full SHA for 65aa13b
mbed-os-to-arduino
@@ -224,10 +224,13 @@ generate_flags () {
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
+ PLC_SECTION=".plc_d3_section 0x3800F000 (NOLOAD): {\n \
+ *(.plc_buffer)\n \
+ } > RAM_D3\n \
+ .plc_d2_section 0x30000000 (NOLOAD): {\n \
231
+ *(.plc_code)\n \
232
+ } > RAM_D2\n"
233
+ sed -i "s?.heap (COPY):?${PLC_SECTION} .heap (COPY):?g" $ARDUINOVARIANT/linker_script.ld
234
fi
235
236
echo "Patching linker scripts"
0 commit comments