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.

AM335x 运行CCSv6 + XDS100V2 有没有教程啊

Other Parts Discussed in Thread: AM3358

各位好:

   我们刚买了个XDS100V2仿真器,请问这个怎么用啊,新人一枚,请大家给个教程!谢谢。

  • 刘工谢谢哦!

  • 您好:

     我按照文档调试始终不成功,有几个地方请您帮我看下,真是感谢您一直的帮助。

    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的时候总是出一些奇怪的错误,不能执行下去。

  • download程序前,有使用过GEL文件做初始化吗?

    要先用GEL文件进行初始化。

    http://www.deyisupport.com/files/m/sitara_arm/11904.aspx

  • 您好:

       遇到了新的问题,就是我的gl文件是我leving过的数据现在执行的时候出现了新的错误,请帮忙看下额,谢谢。

  • 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() .

  • 您好:

     我的是按照startkit的那个gl文件改的,不知道有没有问题。,现在点击那个下载没用了。

  • 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可以正常工作了再说。

  • 您好:

      关于这个DDR3配置和leving我是做过了,根据你们提供的MLO的方式弄得,并且板子也正常起来了,测试ddr3正常,现在只是想用ccs调下验证下,所以里面的数据应该是正确的,还有这里出错是gel出错,那个.out还没有开始呢?

  • 您好:

     能否给我一个AM335X bbblack的gel?麻烦您了。

  • 您好:

      不好意思又来麻烦您了,就是那个调试依然有很多问题,

    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的时候串口应该就有打印信息了。

  • 好的,谢谢哦

  •  您好:

      那个读写应该是正常的,我现在有点疑问的是,在我加载uboot-spl.bin的时候是不是没有下载到板子里啊,是不是要先自己烧写进去啊,还是用sd卡启动啊,我加载就是没有反应。

  •  您好:

     终于调试好了,太感谢您了。