各位好:
我们刚买了个XDS100V2仿真器,请问这个怎么用啊,新人一枚,请大家给个教程!谢谢。
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.
您好:
我按照文档调试始终不成功,有几个地方请您帮我看下,真是感谢您一直的帮助。
1.加载uboot-spl.bin的时候出现下面那个错误。
CortxA8: Unable to terminate memory download: NULL buffer pointer at 0x3a9f
CortxA8: Trouble Writing Memory Block at 0x402f0400 on Page 0 of Length 0x7ff0: (Error -1065 @ 0x3D5A) 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.1.507.0)
2.当我不从sd卡启动的时候,是不是emmc里面必须烧程序啊,我手动加载一些东西的时候,uart根本没有信息打印,跟文档不同。
3.还有我run的时候总是出一些奇怪的错误,不能执行下去。
log这边,
CortxA8: GEL: Error while executing OnTargetConnect(): Target failed to read 0x44E10040 at (*((unsigned int *) (0x44E10000+0x40))>>22) [AM3358_bbblack.gel:381] at GetInputClockFrequency() [AM3358_bbblack.gel:452] at ARM_OPP100_Config() [AM3358_bbblack.gel:372] at AM3358_SK_Initialization() [AM3358_bbblack.gel:358] at OnTargetConnect() .
log发布出去?
CortxA8: GEL: Error while executing OnTargetConnect(): Target failed to read 0x44E10040 at (*((unsigned int *) (0x44E10000+0x40))>>22) [AM3358_bbblack.gel:381] at GetInputClockFrequency() [AM3358_bbblack.gel:452] at ARM_OPP100_Config() [AM3358_bbblack.gel:372] at AM3358_SK_Initialization() [AM3358_bbblack.gel:358] at OnTargetConnect() .
log如下:
CortxA8: Output: **** AM335x ALL PLL Config for OPP == OPP100 is in progress .........
CortxA8: GEL: Error while executing OnTargetConnect(): Target failed to read 0x44E10040 at (*((unsigned int *) (0x44E10000+0x40))>>22) [AM3358_bbblack.gel:381] at GetInputClockFrequency() [AM3358_bbblack.gel:452] at ARM_OPP100_Config() [AM3358_bbblack.gel:372] at AM3358_SK_Initialization() [AM3358_bbblack.gel:358] at OnTargetConnect() .
1这个是你自己的板子吗?如果是的话,需要根据你的ddr的型号做EMIF,PHY配置的,而且如果是DDR3的话,还需要做software leveling。这个没做的话,程序时运行不起来的。
2.从哪里启动,哪里就应该有相关的boot image,这个image里面需要对ARM做初始化,还需要对DDR做初始化,也就是说上面的一步中对DDR的配置是一定要进行的,逃不了。建议你先检查一下DDR的配置,确认在当前配置下,DDR可以正常工作了再说。
您好:
不好意思又来麻烦您了,就是那个调试依然有很多问题,
1.当我加载完spl后开始运行时,按黄色pause健的时候minicom端口并没有弹出### ERROR ### Please RESET the board ###这些,还是cccccc,
2.我直接加载u-boot时出现错误,log如下
CortxA8: Error connecting to the target: (Error -1204 @ 0x3D5B) Unable to access the DAP. 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 5.1.507.0)
CortxA8: Trouble Reading Memory Block at 0x402f03fc on Page 0 of Length 0xd: (Error -1204 @ 0x3D5B) Unable to access the DAP. 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 5.1.507.0)
CortxA8: Error: (Error -1204 @ 0x3D5B) Unable to access the DAP. 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 5.1.507.0)
CortxA8: Unable to determine target status after 20 attempts
CortxA8: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging

BBB gel文件如上面所示。
建议你用BBB gel文件初始化后,打开memory browser,在0x8000 0000地址空间上,尝试写入数据,看数据的写入读出是否正常。然后再进行下一步。
导入u-boot-spl.bin的时候串口应该就有打印信息了。