附件是电路图,代码如下:
EMIF_Config MyConfig = {
0x00003001, /* gblctl */
0x22711523, /* cectl0 */
0x22711503, /* cectl1 */
0xFFFF3F23, /* cectl2 复位值*/
0xFFFF3F23, /* cectl3 复位值*/
0x0388F000, /* sdctl 复位值*/
0x00080080 /* sdtim 复位值 */
};
EMIF_config(&MyConfig);
对CE1的FLASH:
void NOR_flashWriteCmd (Uint32 offset, Uint32 cmd)
{
Uint32 addr= 0x01400000+ offset;
*(Uint32 *)addr = cmd;
}
现在程序执行到红色部分就会死掉
麻烦帮助看下,代码是否有问题?或者还有需要配置的地方我漏掉了?
非常感谢