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.

DM8168裸机调试 GPMC读写片选地址时,程序跑飞



一、硬件及资源分配

使用CCS5.5 裸机(无操作系统)调试DM8168X的GPMC模块,使用片选CS0-3。片选容量和区间如下:

片选                           区间                                                 用途

CS0 (16MB)-----------0x00 0000  ---  0xFF FFFF                随意

CS1 (16MB)-----------0x100  0000 --- 0x1FF FFFF             随意

CS2 (32MB)-----------0x200  0000 --- 0x3FF FFFF             随意

CS3 (256MB)--------- 0x400  0000 --- 0x13FF FFFF          FPGA

注:目前主要调试CS3片选控制的  FPGA,而CS0-2随意设置。

DM8168 同FPGA接线:

地址:GPMC_A[7:0] 和GPMC_A[27]

数据:GPMC_D[7:0]

GPMC的初始化流程参考 TI官方手册。

 

二、遇到问题

问题1:程序中直接访问 CS3地址时,出现程序跑飞,地址无法访问。为什么?是不是GPMC读写时,需要地址映射或者其他什么原因?

        执行该条语句  *(Uint32 *) (0x04000000) = 0x55;,出现跑飞。  我遇到问题和这个朋友一样,http://www.deyisupport.com/question_answer/dsp_arm/davinci_digital_media_processors/f/39/t/15918.aspx

谢谢