Using external memory with 21489

Hi,

I have read many posts and searched several documents to no avail, I am trying to use the external SDRAM with the ez kit 21489. The external memory is enabled in the LDF configuration.

I declared four circular buffers

typedef struct circularQueue_s
{
    int     first;
    int     last;
    int     validItems;
    long    data[RECTIME];
} circularQueue_t;

circularQueue_t   waveCh0;
circularQueue_t   waveCh1;
circularQueue_t   waveCh2;
circularQueue_t   waveCh3;


When RECTIME is 688,117 the code compiles, if RECTIME is 688,118 I get the following errors;

[Error li1040] "C:\Users\flate\cces\2.8.3\SPORTstandardserialmode\system\startup_ldf\app.ldf":425 Out of memory in output section 'dxe_block1_dm_data_prio2' in processor 'p0'
        Total of 0xa7ff9 word(s) were not mapped.
For more details, see 'linker_log.xml' in the output directory.

[Error li1040] "C:\Users\flate\cces\2.8.3\SPORTstandardserialmode\system\startup_ldf\app.ldf":455 Out of memory in output section 'dxe_block1_dm_data_prio3' in processor 'p0'
        Total of 0xa7ff9 word(s) were not mapped.
For more details, see 'linker_log.xml' in the output directory.

[Error li1040] "C:\Users\flate\cces\2.8.3\SPORTstandardserialmode\system\startup_ldf\app.ldf":536 Out of memory in output section 'dxe_block3_dm_data_prio2' in processor 'p0'
        Total of 0xa7ff9 word(s) were not mapped.
For more details, see 'linker_log.xml' in the output directory.

[Error li1040] "C:\Users\flate\cces\2.8.3\SPORTstandardserialmode\system\startup_ldf\app.ldf":566 Out of memory in output section 'dxe_block3_dm_data_prio3' in processor 'p0'
        Total of 0xa7ff9 word(s) were not mapped.
For more details, see 'linker_log.xml' in the output directory.

[Error li1040] "C:\Users\flate\cces\2.8.3\SPORTstandardserialmode\system\startup_ldf\app.ldf":663 Out of memory in output section 'dxe_block2_overflow_data' in processor 'p0'
        Total of 0xa7ff9 word(s) were not mapped.
For more details, see 'linker_log.xml' in the output directory.

[Error li1040] "C:\Users\flate\cces\2.8.3\SPORTstandardserialmode\system\startup_ldf\app.ldf":792 Out of memory in output section 'dxe_sdram_data' in processor 'p0'
        Total of 0xa7ff9 word(s) were not mapped.
For more details, see 'linker_log.xml' in the output directory.
Linker finished with 6 errors
cc3089: fatal error: Link failed (code:1)
make: *** [SPORTstandardserialmode.dxe] Error 1

Questions;
How much of the external memory am I using? (688,118 readings * 4 bytes/reading * 4 channels = 11,009, 888 bytes) This doesn't seem to be near a boundary.
If there is more memory available how do I enable it?

Update;

Added the section command before every declare statement and I have one error left.

[Error li1040] "C:\Users\flate\cces\2.8.3\dspCollector\system\startup_ldf\app.ldf":792 Out of memory in output section 'dxe_sdram_data' in processor 'p0'



additional info
[edited by: bughunter at 7:16 PM (GMT 0) on 27 May 2020]
  • Hi Dan,

    Can you please generate a map file and view the used and unused memory.

    To Enable "Generate Symbol MAP" option Go to Project-->Properties-->C/C++ Build --> SHARC Linker option in the tool setting tab --> General --> Enable the "Generate symbol map (-map)" option.A MAP.xml file will created in the 'Debug' folder after a successful build.

    If you enabled the option to "Generate Symbol Map", the Linker will generate a project_name.map.xml file which can be viewed in Internet Explorer to view the memory map of your project. It shows the memory sections declared in the LDF, their start and end bounds and - most importantly - their free/used space. Using this map file you can also determine whether there is perhaps a memory section that is being under-used that you could place more data into.

    You can enable the SDRAM from the option given below.
    Open your project in CCES->System.svc->LDF->External Memory-> Check "Use External memory(SDRAM)"
     
    Regards,
    Anand Selvaraj.

  • Hello, I would like to ask if your problem is solved? I am also experiencing this problem.

  • Hi Zhu Zhenxi,

    We hope that, you have already posted your query in the below thread. To avoid duplication of efforts, please continue the discussion there.
    ez.analog.com/.../external-memory-with-21489

    Regards,
    Santhakumari.K