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.

dm8168 NAND FLASH固化完u-boot,串口打印????????这是怎么回事?

Other Parts Discussed in Thread: CDCV304

 使用dm8168的片子,通过CCS固化完NAND FLASH,重新上电后,串口打印 ????????,这是怎么回事?

  • Zhang Xiaobing,

    用SD卡可以正常启动么?

    板子有仿真器可以连上么?如果可以,请参考:http://processors.wiki.ti.com/index.php/Debug_Tips_for_DM81xx_Boot_Fail



  • 板子没有SD卡,只有NAND,以太网口,串口,我通过CCS 仿真器使用提供的 nand-flash-writer.out 加载U-BOOT.  请问,U-BOOT烧写到NAND FLASH ,再次烧写时会重新从第一个block烧写,该怎样烧写U-BOOT,怎么设置NAND FLASH的烧写地址地址以及读NAND Flash地址?

  • Zhang Xiaobing,

    我提供的链接提到的查看寄存器的方法,你是否有尝试。

    关于uboot烧写uboot,请参考:http://processors.wiki.ti.com/index.php/TI81XX_PSP_UBOOT_User_Guide#TI816X_3。

  • 首先,谢谢您的回复

    这是从TRM文档中截取的,请问如何用CCS查看这些地址的寄存器?

  • CCS->View->Memory Browser

  • 谢谢,写NAND的命令

    I8168_EVM# nand write <addr> <offset> <len> 

    都是基于EVM板的,启动后在板子的终端上执行的,

    我连接板子只有仿真器能执行这样的命令吗?  只有仿真器如何设置这些参数?

  • Zhang Xiaobing,

    请参考:http://processors.wiki.ti.com/index.php/DM816x_AM389x_PSP_Flashing_Tools_Guide#Burning_images_to_NAND_Flash_.28using_CCS.29。

  • 感谢您的回复:

    这是我从寄存器读出的

      R0=0X00000004

    R14=0X40307748

      R1=0X00000808

     R9=0X4031CFF4

    R5=0X00028078

    R12=0X40306D9B

    R7=0X4031CD7C

     

    能从这些值看出什么?

  • 这是我在固化时的console打印,并没有出现设置偏移地址的选项,请问在哪能下载到设置偏移地址的nand-flash-writer.out 文件

     

     

    [CortexA8] Welcome to CCS Nand Flash Utility
    [CortexA8]
    [CortexA8]
    [CortexA8] Choose your operation
    [CortexA8] Enter 1 ---> To Flash an Image
    [CortexA8] Enter 2 ---> To ERASE the whole NAND
    [CortexA8] Enter 3 ---> To DDR Simple test
    [CortexA8] Enter 4 ---> To EXIT

    1
    [CortexA8] Enter image file path

    F:\uart_test\programming\u-boot.bin
    [CortexA8] Starting NETRA NAND writer
    [CortexA8]
    [CortexA8] The the NAND Flash is ONFI compatible
    [CortexA8] 
    [CortexA8]
    [CortexA8] ----------------------
    [CortexA8]   NAND FLASH DETAILS
    [CortexA8] ----------------------
    [CortexA8]  Device ID : 0xca
    [CortexA8]  Manufacture ID : 0x2c
    [CortexA8]  Page Size : 2048 Bytes
    [CortexA8]  Spare Size : 64 Bytes
    [CortexA8]  Pages_Per_Block : 64
    [CortexA8]  Number_of_Blocks : 2048
    [CortexA8]  Device_width : 2 Byte
    [CortexA8]  DeviceSize : 256 MB
    [CortexA8]
    [CortexA8]  Setting the ECC scheme for U-Boot
    [CortexA8]   Set the BCH 8 bit ECC scheme  .... done
    [CortexA8] Preparing to Flash Application image ....
    [CortexA8] Opening image ... done.
    [CortexA8] Erasing Required Blocks [start = 0, count = 2]...[CortexA8] Done
    [CortexA8] Flashing Application image ...
    [CortexA8] Number of blocks needed for header and data: 0x2
    [CortexA8] Attempting to start write in block number 0x0.
    [CortexA8] Writing image data to Block 0 Page0x0
    [CortexA8] Writing image data to Block 0 Page0x1

     

  • Zhang Xiaobing,

    你使用的nand write out文件是下面链接的最新的psp里面的么?

    http://processors.wiki.ti.com/index.php/TI81XX_Linux_PSP_Releases

  • 感谢您的回复,可以用仿真器对不同地址进行NAND_flash烧写了。

    但是例如“#fw_setenv bootdelay 3;fw_setenv gatewayip 192.168.1.1;fw_setenv netmask 255.255.255.0;fw_setenv ipaddr 192.168.1.8;fw_setenv serverip 192.168.3.21”

    “fw_setenv bootcmd 'nboot 0x81000000 nand0 0x580000;bootm 0x81000000”

    “fw_setenv bootargs 'mem=128M console=ttyO0,115200n8 ubi.mtd=4,2048 root=ubi0:rootfs rootwait=1 rootfstype=ubifs rw ip=192.168.1.8:192.168.3.21:192.168.1.1:255.255.255.0::eth0:off vram=20M notifyk.vpssm3_sva=0xBEE00000'”

    这样的配置命令应该怎样通过仿真器写入到板子上呢?

     

  • Zhang Xiaobing,

    你发的这些配置,看起来都是uboot的设置,可以在uboot运行起来后,在uboot里面设置。

  •  chris,谢谢您的回复。

      1、我固化完uboot到NAND后,掉电后,串口波特率设置为57600,打印信息为 ?   ?   ?  ?,是uboot并没有固化成功?请问波特率应该怎么设置?

       2、uboot固化完成后,要设置外设的配置参数,saveenv 如何配置到板子,如果串口调通,能否通过串口配置,还是仿真器?  主要是想知道网口和串口怎样配置,实现与板卡交互。

     

  • xiaobing zhang 说:

    感谢您的回复:

    这是我从寄存器读出的

      R0=0X00000004

    R14=0X40307748

      R1=0X00000808

     R9=0X4031CFF4

    R5=0X00028078

    R12=0X40306D9B

    R7=0X4031CD7C

     

    能从这些值看出什么?

    我在下面帖子里有分析过类似的trace信息,你能参考分析一下你的情况么?

    http://www.deyisupport.com/question_answer/dsp_arm/davinci_digital_media_processors/f/39/t/112781.aspx?pi2132219853=2

  • Chris,    请问, TI8168 evm板原理图在哪可以下载?

  •  关于dm8168的27M时钟输入,我看evm板是这样的,

    我们的板子是这样的

    在C19脚直接接地,一个CDCV304的片子外供的时钟,请问这样可以吗?

  • Chris,

    我在使用gel进行Scripts 测试时,出现如下错误:

    CortexA8: Output: Device type is GP
    CortexA8: Output: Netra Main PLL Init is in Progress, Please wait .....
    CortexA8: Output: Netra Main PLL Init is Done .....
    CortexA8: Output: Netra DDR PLL Init is in Progress for 400 MHz DDR Clock, Please wait .....
    CortexA8: Output: Netra DDR PLL Init is Done .....
    CortexA8: Output: Netra DDR2/3 PRCM Init is in progress .....
    CortexA8: Output: Netra DDR2/3 PRCM Init is Done .....
    CortexA8: Trouble Writing Memory Block at 0x4c000010 on Page 0 of Length 0x4: (Error -2130 @ 0x4C000010) 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)
    DDR3_400MHZ_doall() cannot be evaluated.
    target access failed
    at *((unsigned int *) (0x4C000000+0x10))=(unsigned int) (0x10000000|SDREF) [DM816x.gel:229]
    at EMIF4P_Init(0x0CCCE524, 0x30308023, 0x009F82CF, (0x10000C30&0xfffffff), 0x62A41032, 0x0000030B) [DM816x.gel:1303]
    at NetraDDRPLL_400() [DM816x.gel:1004]
    at DDR3_400MHZ_doall()
    CortexA8: Trouble Reading Register CP15_CONTROL_REGISTER: (Error -2131 @ 0x20013F00) Unable to access device register. 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.0.747.0)
    CortexA8: Trouble Reading Register CP15_MMU_XLATION_TABLE_BASE_CONTROL: (Error -2131 @ 0x20023F40) Unable to access device register. 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.0.747.0)
    CortexA8: Trouble Reading Register CP15_MMU_XLATION_TABLE_BASE_0: (Error -2131 @ 0x20023F00) Unable to access device register. 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.0.747.0)
    CortexA8: Trouble Reading Register CP15_MMU_XLATION_TABLE_BASE_1: (Error -2131 @ 0x20023F20) Unable to access device register. 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.0.747.0)
    CortexA8: Trouble Reading Register CP15_MMU_DOMAIN_ACCESS_CONTROL: (Error -2131 @ 0x20033F00) Unable to access device register. 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.0.747.0)
    CortexA8: Trouble Reading Register CP15_CONTROL_REGISTER: (Error -2131 @ 0x20013F00) Unable to access device register. 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.0.747.0)
    CortexA8: Trouble Reading Register CP15_MMU_XLATION_TABLE_BASE_CONTROL: (Error -2131 @ 0x20023F40) Unable to access device register. 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.0.747.0)
    CortexA8: Trouble Reading Register CP15_MMU_XLATION_TABLE_BASE_0: (Error -2131 @ 0x20023F00) Unable to access device register. 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.0.747.0)
    CortexA8: Trouble Reading Register CP15_MMU_XLATION_TABLE_BASE_1: (Error -2131 @ 0x20023F20) Unable to access device register. 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.0.747.0)
    CortexA8: Trouble Reading Register CP15_MMU_DOMAIN_ACCESS_CONTROL: (Error -2131 @ 0x20033F00) Unable to access device register. 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.0.747.0)
    CortexA8: Trouble Reading Memory Block at 0x25fb6 on Page 0 of Length 0xd: (Error -1205 @ 0x25FB4) Device memory bus has an error and may be hung. 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: Error: (Error -1044 @ 0xFFFFEC70) The emulator reported an error. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Emulation package 5.0.747.0)
    CS_DAP_DebugSS: Error: (Error -5008 @ 0xFFFFEC70) 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.0.747.0)

    这是什么原因引起的?

  • Zhang Xiaobing,

    请尝试降低JTAG的速度,看看是否有改善?