我的初始化配置顺序如下:引脚配置->gpmc时钟配置->复位 ->disable CS0 (硬件接线 连接的是CS1)
GPMC 接口配置为 NOR 32bit, MASKADDRESS[11-8 ] = 0xf BASEADDRESS[5-0] = 0x11; .... 依据TRM的编程指南进行的。
读写地址(0x5100 0000)时,调试会断开连接,提示如下信息:
MAIN_Cortex_R5_0_0: Trouble Halting Target CPU: (Error -2062 @ 0x136) Unable to halt device. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 9.9.0.00040)
MAIN_Cortex_R5_0_0: Can't Single Step Target Program: (Error -1169 @ 0x70085814) Unable to flush instruction cache. Reset the device, and retry the operation. If error persists, confirm configuration,power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 9.9.0.00040)
猜测是无法访问设备内存(0x5100 0000无法访问)导致的,如果猜测正确,那么是什么原因导致的?是否与NOR timings configuration有关?