Skip to content

Commit 94484be

Browse files
authored
Add dedicated section for pdm buffer (#13)
* Add dedicated section for pdm buffer
1 parent 9fefb7d commit 94484be

File tree

2 files changed

+9
-2
lines changed
  • targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI

2 files changed

+9
-2
lines changed

targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7_M4/TOOLCHAIN_GCC_ARM/STM32H747xI.ld

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ MEMORY
3030
{
3131
RAM (xrw) : ORIGIN = RAM_START + 0x298, LENGTH = RAM_SIZE - 0x298
3232
OPENAMP_RSC_TAB (rwx) : ORIGIN = 0x38000000, LENGTH = 1K
33-
OPEN_AMP_SHMEM (rwx) : ORIGIN = 0x38000400, LENGTH = 63K
33+
OPEN_AMP_SHMEM (rwx) : ORIGIN = 0x38000400, LENGTH = 62K
34+
/*PDM_MEM (rwx) : ORIGIN = 0x3800FC00, LENGTH = 1K Reserved for PDM and M7 */
3435
FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
3536
}
3637
__OPENAMP_region_start__ = ORIGIN(OPEN_AMP_SHMEM);

targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7_M7/TOOLCHAIN_GCC_ARM/STM32H747xI.ld

+7-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ MEMORY
3333
RAM (xrw) : ORIGIN = RAM_START + 0x298, LENGTH = RAM_SIZE - 0x298
3434
RAM_D2 (xrw) : ORIGIN = 0x30000000, LENGTH = 288K
3535
OPENAMP_RSC_TAB (rwx) : ORIGIN = 0x38000000, LENGTH = 1K
36-
OPEN_AMP_SHMEM (rwx) : ORIGIN = 0x38000400, LENGTH = 63K
36+
OPEN_AMP_SHMEM (rwx) : ORIGIN = 0x38000400, LENGTH = 62K
37+
PDM_MEM (xrw) : ORIGIN = 0x3800FC00, LENGTH = 1k
3738
FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
3839
}
3940
__OPENAMP_region_start__ = ORIGIN(OPEN_AMP_SHMEM);
@@ -192,6 +193,11 @@ SECTIONS
192193
*(.resource_table)
193194
} >OPENAMP_RSC_TAB AT > FLASH
194195

196+
.pdm_section (NOLOAD) : {
197+
. = ABSOLUTE(0x3800FC00);
198+
*(.pdm_buffer)
199+
} > PDM_MEM
200+
195201
/* .stack_dummy section doesn't contains any symbols. It is only
196202
* used for linker to calculate size of stack sections, and assign
197203
* values to stack symbols later */

0 commit comments

Comments
 (0)