Quantcast
Channel: 数字信号处理器 (DSP) & ARM® 微处理器
Viewing all articles
Browse latest Browse all 21822

帖子: DSP MMU Error Fault! MMU_IRQSTATUS = [0x1].

$
0
0

你好,我在DM3730的CE中的codec部分修改了部分代码,其中使用了malloc()函数申请了部分内存,如:

scratchData= (unsigned char*)malloc(sizeof(unsigned char)*pixelNums);
gradX= (short*)malloc(sizeof(short)*pixelNums);
gradY= (short*)malloc(sizeof(short)*pixelNums);
gradM= (short*)malloc(sizeof(short)*pixelNums);
nonMax= (unsigned char*)malloc(sizeof(unsigned char)*pixelNums);
numItems = (int*)malloc(sizeof(numItems));
listptr= (unsigned int*)malloc(sizeof(unsigned int)*pixelNums);

总共784K内存,编译能通过,执行时报错如下:

DSP MMU Error Fault!  MMU_IRQSTATUS = [0x1]. Virtual DSP addr reference that generated the interrupt = [0xe6fffdd8].

我尝试在all_evm3530.tci中修改相应内存配置,尝试用如下命令将malloc()分配的内存定位到DDRALGHEAP(24MB)中,

prog.module("MEM").MALLOCSEG  = bios.DDRALGHEAP;

结果仍然执行失败,我想请问:

1.DSP端的codec中使用的malloc()申请的内存本来是定位到哪部分段的?为什么784K就已经报错了?

2.我该如何修改内存分配才能解决该问题,望答复,谢谢;


Viewing all articles
Browse latest Browse all 21822

Trending Articles