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.

TMS320C6657: nand boot启动

Part Number: TMS320C6657

使用的自制板,采用FPGA和C6657一起,C6657的启动GPIO口由FPGA控制,缺省配为NAND BOOT直接启动,

BOOTMODE(12:0):设为“0110000000011”,IIC没有使用,NAND芯片使用的是MT29F1G08ABCHC,通过EMIF连接到C6657。

烧写采用的是https://e2echina.ti.com/support/processors/f/processors-forum/217304/tms320c6657-c6657_directrom_boot_example?tisearch=e2e-sitesearch&keymatch=C6657_directROM_Boot_example#   链接中的3034.C6657_directROM_Boot_example.zip,参照文档修改buil文件夹下的.bat和.rmd文件,.rmd文件里修改了length长度大于.out的,其中hex6x.exe需要自己添加,烧写工程使用的是其中的nandwrite.out,烧写完成。

回读没有出现问题,但是重新上电后,C6657并没有运行程序,判断的方式是,在DEBUG跑该程序时,有的灯会亮。

考虑在NAND boot时,NAND配置信息不从IIC获取,那么,这个配置信息需要从那里获取到呢?是否是需要在转换后的.dat文件里加上这一配置信息?

希望可以得到解答...

  • 建议用仿真器跟一下boot过程,看一下代码没有boot进来,还是boot进来了,没有正确运行?

    连上仿真器,板子上电,打开CCS, load symbols,然后可以设置硬件断点跟踪boot过程。

    "Load Symbols" instead of "Load Program"

    When debugging an application from flash, you want to let the application boot in its normal manner. If you select "load program" in CCS then you are overwriting the application that loaded from flash and not debugging the code as it runs normally. You should instead do "load symbols" in CCS and then select your .out file. This will allow you to debug your code using variable/function names without overwriting the code that boots from the flash.
    CCS 3.3: Go to File -> Load Symbols -> Load Symbols Only
    CCS 4.x: Right-click on the project and select Debug Options. On the "Debugger" tab choose "Load Symbols" instead of "Load Program"
    CCS 5.x: In the "Debug View" tab choose "Run"--> "Load" --> "Load Symbols"

  • load symbol 之后,连上芯片,没有任何反应... boot complete位也都是0;

  • 请测一下boot mode管脚的电平是否正确?测量一下EMIF管脚上有没有读nand flash的时序?

  • boot mode引脚电平没有错误,但是EMIF管脚没有过其他元器件连到的NAND芯片的,DSP和NAND芯片封装没有管脚露出来...  测不到

  • 连上芯片后,PC指针应该会指向ROM bootloader的源码,您可以跟踪一下ROM bootloader执行的情况,看为什么没有去加载代码。下面是ROM bootloader的源码可以对比着参考。
    https://software-dl.ti.com/sdoemb/sdoemb_public_sw/rbl/1_0_C6657/index_FDS.html