大家好,
我现在在使用DM8168进行开发,前段时间使用DVRRDK开发包进行应用开发,由于公司提供的开发板子上的底层工作是比较完备的,所以我拿来直接在上面使用RDK进行开发,对一些底层的硬件了解较少。现在我要实现时间同步的功能,与外部传入的时间进行同步,这要涉及到底层的驱动部分了,我以前对这方面了解很少。
希望大家能给我一些入门指导,我看哪些资料啊,现在很迷茫,不知如何下手。本来想用CCS写几个程序看看的,可今天debug CCS中的一个基础实例"hello world",出现了如下错误,现在真不知道该如何下手了,求大神们指导。。。
CortexA8: GEL Output: EVM816x Startup Sequence
CortexA8: Trouble Writing Memory Block at 0x48181414 on Page 0 of Length 0x4: (Error -1065 @ 0x48181414) Unable to access device memory. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 5.0.747.0)CortexA8: GEL: Error while executing OnTargetConnect(): target access failed at *((unsigned int *) (0x48180000+0x1414))=(unsigned int) 2 [evm816x.gel:325] at Setup_PRCM() [evm816x.gel:43] at OnTargetConnect() .
CortexA8: Failed Software ResetCortexA8: GEL Output: GEL Reset
CortexA8: Trouble Writing Memory Block at 0x40305b40 on Page 0 of Length 0x1d0: (Error -2130 @ 0x40305B40) Unable to access device memory. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 5.0.747.0)CortexA8: GEL: File: D:\ti\ccsv5\workspace\hello\Debug\hello.out: Load failed.
Chris Meng:
你好,
CCS给你提示了错误的原因:: Trouble Writing Memory Block at 0x48181414 on Page 0 of Length 0x4,也就是向0x48181414写入数据遇到了问题。如果你查看DM8168的memory map,你会发现这块区域是L4外设的寄存器区域。不是OCMC或者IRAM。
建议你基于EVM的参考例程,修改为自己的工程。
http://support.spectrumdigital.com/boards/evm816x/reve/