Hi.
I have a complex C++ Daisy patch that I’m trying to port to a Lich with OWL3, but I’m having troubles to make it fit.
Currently this is the memory usage as reported while compiling the Daisy patch:
FLASH: 122888 B 128 KB 93.76%
DTCMRAM: 0 GB 128 KB 0.00%
SRAM: 31220 B 512 KB 5.95%
RAM_D2: 16704 B 288 KB 5.66%
RAM_D3: 0 GB 64 KB 0.00%
ITCMRAM: 0 GB 64 KB 0.00%
SDRAM: 12317 KB 64 MB 18.79%
QSPIFLASH: 0 GB 8 MB 0.00%
I think that the bit that is giving me trouble (memory overflow) is that SDRAM usage taken by various audio buffers. I’m not quite sure, but I think that that amount should fit in the OWL3’s SDRAM.
-
how much SDRAM has the OWL3 exactly?
-
should I define my variables in a specific way? This is the definition in the Daisy code:
float DSY_SDRAM_BSS buffer1L[262144]; float DSY_SDRAM_BSS buffer1R[262144]; float DSY_SDRAM_BSS buffer2L[3][48000]; float DSY_SDRAM_BSS buffer2R[3][48000]; float DSY_SDRAM_BSS buffer3[1572864]; float DSY_SDRAM_BSS buffer4L[4][96000]; float DSY_SDRAM_BSS buffer4R[4][96000];
-
are there any general gotchas or things to be aware of when doing a port from Daisy to OWL3?