Hi,
I want to ask how large an array can 6678 ? I define an array which contains 20000 float data on a single core, and it seems too large because the EVM doesn't work out. An array with 20000 float data only occupies 80000 bit, that is less 10K Byte. However, there is 32K Byte L1D and 512K Byte L2 per core, so the memory should be enough. Below is my code and linker file.
code:
#include<stdio.h>
#include<stdlib.h>
void main()
{
float a[20000];
int i;
for(i=0;i<10000;i++)
{
a[i]=i;
}
}
Linker file:
-stack 0x10000
-heap 0x8000
MEMORY
{
L2SRAM : o = 0x00800000, l = 0x00080000
MSMCSRAM : o = 0x0c000000, l = 0x00400000
}
SECTIONS
{
.cinit : > L2SRAM
.cio : > L2SRAM
.const : > L2SRAM
.data : > L2SRAM
.far : > L2SRAM
.fardata : > L2SRAM
.stack : > L2SRAM
.sysmem : > L2SRAM
.text : > L2SRAM
.neardata : > L2SRAM
.bss : > L2SRAM
.fasttext: > L2SRAM
.switch: > L2SRAM
.heap > L2SRAM
.rodata > L2SRAM
.boot: > L2SRAM
}