AnsweredAssumed Answered

Memory Mapping Doesnt work

Question asked by Mildocate on Jan 20, 2017
Latest reply on Feb 1, 2017 by Jithul_Janardhanan

Hej all,

 

My Board EZ Lite 21489

I have a lot of data and need to map this into internal memory to calculate a CFFTF.

RxBlockA0 / A1 are sampled data from SPORT port. All other array are needed for CFFTF.

My data arrays:

NUM_SAMPLES = 16384

 

#pragma align NUM_SAMPLES
float dm input_r[NUM_SAMPLES];
#pragma align NUM_SAMPLES
float pm input_i[NUM_SAMPLES];

float dm twid_r[NUM_SAMPLES/2];
float pm twid_i[NUM_SAMPLES/2];
float dm temp_r[NUM_SAMPLES];
float pm temp_i[NUM_SAMPLES];
int dm RxBlock_A0[NUM_SAMPLES];
int dm RxBlock_A1[NUM_SAMPLES];

I already changed the LDF file like this:

 

seg_dmda { TYPE(DM RAM) START(0x00092150) END(0x0009dfff) WIDTH(32)   }

seg_pmda { TYPE(PM RAM) START(0x000b2000) END(0x000bdFFF) WIDTH(32) }

seg_my_ram_block2 {TYPE(DM RAM) START(0x000c1000) END(0x000c7fff) WIDTH(32) }

seg_my_ram_block3 {TYPE(DM RAM) START(0x000e0000) END(0x000e7fff) WIDTH(32) }

 

seg_dmda DM
{
INPUT_SECTIONS( $OBJECTS(seg_dmda) $LIBRARIES(seg_dmda))
} > seg_dmda

seg_dmda2
{
// use unused space in seg_pmda for dmda
INPUT_SECTIONS( $OBJECTS(seg_dmda) $LIBRARIES(seg_dmda))
} > seg_pmda

seg_dmda3 DM
{
INPUT_SECTIONS( $OBJECTS(seg_dmda) $LIBRARIES(seg_dmda))
} > seg_my_ram_block2

seg_dmda4 DM
{
INPUT_SECTIONS( $OBJECTS(seg_dmda) $LIBRARIES(seg_dmda))
} > seg_my_ram_block3

 

seg_pmda2
{
// use unused space in seg_dmda for pmda
INPUT_SECTIONS( $OBJECTS(seg_pmda) $LIBRARIES(seg_pmda))
} > seg_dmda

 

seg_sram
{
INPUT_SECTIONS( $OBJECTS(seg_int_data) $LIBRARIES(seg_int_data))
INPUT_SECTIONS( $OBJS_LIBS_INTERNAL(seg_dmda))
INPUT_SECTIONS( $OBJS_LIBS_NOT_EXTERNAL(seg_dmda))
INPUT_SECTIONS( /*$OBJECTS(seg_dmda))*/$LIBRARIES(seg_dmda))
INPUT_SECTIONS( $OBJECTS(seg_sram) $LIBRARIES(seg_sram))
} > seg_sram

 

The problem is, that seg_my_ram_block2 and 3 are unused and instead the data is mapped to SRAM. And when the data is in SRAM nothing works correctly -.-

What is going wrong?

 

best regards

 

W

Outcomes