Skip to content

Commit 947095b

Browse files
facchinmsebromero
authored andcommitted
TEST: port PDM buffer patch to build script
arduino/mbed-os#13
1 parent abdd361 commit 947095b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

mbed-os-to-arduino

+6-2
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,13 @@ generate_flags () {
180180
OPENAMP_SECTION=".openamp_section (NOLOAD) : {\n \
181181
. = ABSOLUTE(0x38000000);\n \
182182
*(.resource_table)\n \
183-
} >RAM_D3 AT > FLASH"
183+
} >RAM_D3 AT > FLASH\n \
184+
.pdm_section (NOLOAD) : {\n \
185+
. = ABSOLUTE(0x3800FC00);\n \
186+
*(.pdm_buffer)\n \
187+
} > RAM_D3"
184188
sed -i "s?.heap (COPY):?${OPENAMP_SECTION}\n .heap (COPY):?g" $ARDUINOVARIANT/linker_script.ld
185-
OPENAMP_REGIONS="__OPENAMP_region_start__ = 0x38000400;\n__OPENAMP_region_end__ = 0x38000400 + LENGTH(RAM_D3);"
189+
OPENAMP_REGIONS="__OPENAMP_region_start__ = 0x38000400;\n__OPENAMP_region_end__ = 0x38000400 + LENGTH(RAM_D3) - 1K;"
186190
sed -i "s?ENTRY(Reset_Handler)?${OPENAMP_REGIONS}\nENTRY(Reset_Handler)?g" $ARDUINOVARIANT/linker_script.ld
187191
fi
188192
fi

0 commit comments

Comments
 (0)