问题分析:
这种情况一般是没有对总线等内部控制寄存器进行配置,客户可以写一个初始化文件对总线等内部控制寄存器进行配置。
问题解答:
例如下面是针对s3c2410芯片和am29160db的flash芯片进行配置的初始化文件:
func void init_board(void)
{
_wword (0x53000000 ,0x00000000);
_wword (0x4a000008 ,0xffffffff);
_wword (0x4a00001c ,0x000007ff);
_wword (0x4c000014 ,0x3);
_wword (0x4c000004 ,0x0005c042);
_wword (0x56000070 ,0x00280000);
_wword (0x56000078 ,0x00000000);
_wword (0x48000000 ,0x22111110);
_wword (0x48000004 ,0x00000700);
_wword (0x48000008 ,0x00000700);
_wword (0x4800000c ,0x00000700);
_wword (0x48000010 ,0x00000700);
_wword (0x48000014 ,0x00000700);
_wword (0x48000018 ,0x00000700);
_wword (0x4800001c ,0x00018005);
_wword (0x48000020 ,0x00000700);
_wword (0x48000024 ,0x008e0459);
_wword (0x48000028 ,0x000000b2);
_wword (0x4800002c ,0x00000030);
_wword (0x48000030 ,0x00000030);
_wword (0x56000014 ,0x1);
_wword (0x56000020 ,0xaaaa55aa);
_wword (0x56000028 ,0xffff);
_wword (0x56000024 ,0x0);
}
init_board();
一般来说,在烧写时,都应该有这样的一个初始化文件。