Other Parts Discussed in Thread: AM1808, SYSBIOS
138的arm和dsp有段共享的128k空间
现在arm段写入 2个数, 比如
a = 1
b = 2
dsp去读
在dsp代码有查询b, 若b==2, 则读a
现在的问题是有时候, dsp读到b=2, 然后去读a的时候, 数据是上次a的数值, 需要加50ms左右延时才正确
当a内容越多的时候约明显, 当a是4字节是几乎不需要颜色, 8字节时50ms, 更多字节时延时要更长,才能保证100%正确
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
#1. 0x80000000开始是ShareRam。在系统架构上与外部内存没有区别,都是接在系统总线SCR上。
#2. Cache是CPU的,与memory本身无关。
#3. MMU可以管理CPU自身内存之外的内存空间。
#4. DSP的MAR可以管理L2之外的系统中的所有内存空间。
可以参考Starterware的MMU/Cache例程的MMU配置代码:
AM1808_StarterWare_1_00_02_02\examples\evmAM1808\cache_mmu\uartEdma_Cache.c
......
for(index = 0; index < (4*1024); index++)
{
if((index >= 0xC00 && index < 0xE00)|| (index == 0x800))
{
pageTable[index] = (index << 20) | 0x00000C1E;
}
else
{
pageTable[index] = (index << 20) | 0x00000C12;
}
}