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.

如何用CCS擦除TMDSICE3359 SPI

Other Parts Discussed in Thread: AM3359, PROFIBUS

ccs debug初始化板子失败需要擦除SPI,相关文档 processors.wiki.ti.com/.../AM335x_SYSBIOS_Industrial_SDK_Getting_Started_Guide 已经看过但是还是不知道,有没有前辈帮帮忙?不胜感激。

  • Flashing Binaries to SPI Flash on ICE V1/V2 Using CCS

    This section describes how to flash a binary image to the SPI flash on ICE.
    The pre-built CCS tool for SPI flash(isdk_spi_flasher.out) can be found in $(IA_SDK_HOME)\tools\flashing tools\SPI_Flash\pre_built\CCS_based.

    • Make sure that USB cable is connected to PC from ICE
    • Launch CCS 
    • Launch Target configuration for XDS100 emulator. See " Target Configuration" section for details.
    • Load GEL file and execute "AM335x_EVM_Initialization" or "AM3359_ICE_Initialization" script(See "GEL File Loading" section for details), if not done.This is to initialize DDR and On-Chip RAM. GEL file can be found in $(IA_SDK_HOME)\tools\gel
    • Load pre-built  ${IA_SDK_HOME}\tools\flashing_tools\SPI_Flash\pre_built\CCS_based\isdk_spi_flasher.out  to the ICE EVM. See Launching and Debugging application section for details.
    • Ensure that the binary image (e.g. MLO or ethercat_SPI.bin or profibus_slave_SPI.bin) to be flashed is present in the Windows Machine.
    • Enter the board type when prompted as shown below. 
    Enter the board type [0-ICE, 1-IDK ]
    • Enter the operation when prompted as shown below. 
    Enter Operation [1 - Flash ] [2 - Erase] :  
    • For Erase
      • Bootloader - Offset 0, Size 64
      • Application- Offset 20000, Size 248
    • Enter type of the binary to be flashed when prompted as shown below. 
    Enter the binary type [0-Bootloader, 1-Other ]
    • Enter the offset when prompted as shown below. This offset is the start location from where the image should be flashed. NOTE: This offset should be in hex. In case of boot loader,the offset should be 0x0. In-case of application the offset shall be 0x20000.
    Enter the Offset in bytes (in HEX eg:- bootloader :0x0 app : 0x20000) 
    • Pause program Execution and Load binary file into memory 0x80100000 using Load Memory option of CCS->Memory Browser, when prompted as below . Once load operation is completed, continue flashing by entering 0.
    Load .bin file to 0x80100000 

              Load binary file to Memory - Using LoadMemory 
                  Pause Program Execution by pressing the Suspend '||' button
                  Open Memory window in CCS (View->Memory Browser)
                  Select "'Tools->'Load Memory".
                  Browse and select the .bin file to be loaded )
                  Select 'TI RAW' for the format and Click 'Next'. (File should be named as *.bin)
                  Enter 0x80100000 in "Start Address' field.
                  Select '32 bits' for 'Type-size' field 
                  Keep the swap tick box un-checked.
                  click 'Finish'
                  Wait for the memory to be loaded 
                  Press the Green 'Resume' Arrow

    Enter 0 to continue
    • After this the tool should first erase the flash and then start flashing the new image..
    • Finally the following message will shown.
    • Verifying...Success 
    • These steps are performed when loading the Bootloader and loading the application
    • Once both have been loaded
      • Disconnect CCS and then turn off the board.
      • Boot the Board & verify 

    NOTE : If you see an error in CCS console right after loading the Flasher binary, just click on "Resume(F8)" 
  •     您好,谢谢您之前的回答。我一开始就是按照这里做,但是经常出现各种错误,问题无法解决。

    • Launch Target configuration for XDS100 emulator. See " Target Configuration" section for details.
    • Load GEL file and execute "AM335x_EVM_Initialization" or "AM3359_ICE_Initialization" script(See "GEL File Loading" section for details), if not done.This is to initialize DDR and On-Chip RAM. GEL file can be found in $(IA_SDK_HOME)\tools\gel
    • Load pre-built  ${IA_SDK_HOME}\tools\flashing_tools\SPI_Flash\pre_built\CCS_based\isdk_spi_flasher.out  to the ICE EVM. See Launching and Debugging application section for details.
    • Ensure that the binary image (e.g. MLO or ethercat_SPI.bin or profibus_slave_SPI.bin) to be flashed is present in the Windows Machine.
    • Enter the board type when prompted as shown below. 

    请问这几个步骤有没有具体的截图教程,本人是新手能力比较差,再次期盼您的指教。谢谢

  • 直接

    想方便可以自己加载已经编译好的文件,C:\ti\AM335X_StarterWare_02_00_01_01\tools\flash_writer\spi_flash_writer_AM335X.out

    想打开源代码,重新编译生成.out文件,可以打开spi flash的工程,位置在:

    C:\ti\AM335X_StarterWare_02_00_01_01\tools\flash_writer\src\spi-flash-writer_AM335x\SPI_Flasher

  • 具体遇到什么错误?CCS连接的时候有什么错误么?

  •     连接没问题了。load .out文件以后出现错误提示:

    并且菜单-run里面找不到run选项。

    第二个run的找不到。我用的是ccs 5.5.0版本。