Hello!
I use board MSC8156ADS and environment CodeWarrior. I’ve decided to check the dynamic memory function. As an example, there was used the project l2_cache_demo.
For memory allotment in memory DDR0 the following function is used:
osMalloc(BUFF_SIZE, OS_MEM_DDR0_SHARED);
In module os_config.h declared
#define OS_SHARED_MEM_DDR0_SIZE 0x1000000
OS_SHARED_MEM_DDR0_SIZE limits the max memory size which is allotted in external memory DDR0.
But the size DDR0 is 1GB.
Trying to change OS_SHARED_MEM_DDR0_SIZE more there is the mistake during compilation:
ERROR: Non-zero return status from "C:\Program Files\Freescale\CW SC v10.1\eclipse\\..\SC\StarCore_Support\compiler\bin\sc3000-ld.exe". l2_cache_core0 Unknown C/C++ Problem
Fatal(F1031): LCF configuration: in core c0, task task0_c0: virtual memory 'shared_data_ddr0_descriptor'(org=0x41000000, size=0x02000000) is not aligned to MATT/MMU constraints on address and size. os_msc815x_link.l3k l2_cache_core0/link_cmd line 54 C/C++ Problem
make: *** [../../l2_dbg.eld] Error 1 l2_cache_core0 line 0 C/C++ Problem
Could you please advise me how can I use the whole memory (1GB DRR0) and, accordingly, memory DDR1?
Thanks in advance!