From ce028261cb2b6cd93bc314be4b0212415a6337c0 Mon Sep 17 00:00:00 2001 From: Dhaval Khandla Date: Thu, 14 Sep 2023 11:21:39 +0530 Subject: [PATCH] am243x: hdsl: Fix the linker file for am243x-lp - Allocate the buffer for LP example in MSRAM instead of DDR Fixes: PINDSW-6639 Signed-off-by: Dhaval Khandla --- .../am243x-lp/r5fss0-0_freertos/ti-arm-clang/linker.cmd | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/position_sense/hdsl_diagnostic/single_channel/am243x-lp/r5fss0-0_freertos/ti-arm-clang/linker.cmd b/examples/position_sense/hdsl_diagnostic/single_channel/am243x-lp/r5fss0-0_freertos/ti-arm-clang/linker.cmd index 44782ed..457d2f0 100644 --- a/examples/position_sense/hdsl_diagnostic/single_channel/am243x-lp/r5fss0-0_freertos/ti-arm-clang/linker.cmd +++ b/examples/position_sense/hdsl_diagnostic/single_channel/am243x-lp/r5fss0-0_freertos/ti-arm-clang/linker.cmd @@ -106,7 +106,7 @@ SECTIONS /* General purpose non cacheable memory, used in some examples */ .bss.nocache (NOLOAD) : {} > NON_CACHE_MEM - .hdslInterface_mem (NOLOAD) > DDR + .hdslInterface_mem (NOLOAD) > MSRAM } /* @@ -135,9 +135,8 @@ MEMORY /* when using multi-core application's i.e more than one R5F/M4F active, make sure * this memory does not overlap with other R5F's */ - MSRAM : ORIGIN = 0x70080000 , LENGTH = 0x60000 - /* DDR segment of memory */ - DDR : ORIGIN = 0x80000000 , LENGTH = 0x3FFFFFFF + MSRAM : ORIGIN = 0x70080000 , LENGTH = 0x00150000 + /* This section can be used to put XIP section of the application in flash, make sure this does not overlap with * other CPUs. Also make sure to add a MPU entry for this section and mark it as cached and code executable */ @@ -150,4 +149,4 @@ MEMORY USER_SHM_MEM : ORIGIN = 0x701D0000, LENGTH = 0x80 LOG_SHM_MEM : ORIGIN = 0x701D0000 + 0x80, LENGTH = 0x00004000 - 0x80 RTOS_NORTOS_IPC_SHM_MEM : ORIGIN = 0x701D4000, LENGTH = 0x0000C000 -} +} \ No newline at end of file