NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

DM813x PSP Flashing Tools Guide

From Texas Instruments Wiki
Jump to: navigation, search


Warning Warning: This user guide does not cover using CCS on Linux host and does not support makefile based build.

NoteNote: Before connecting CCS, the bootswitch S1 should be all 0's (BTMODE[4:0] = 00000). Also make sure switch SW2 is set as mentioned in EVM Switch Settings section in U-Boot User Guide for the respective boot media (NAND/SPI). Change bootswitch to required bootmode only after flashing the image, this applies to all memory device (NAND/SPI).

Read This First[edit]

The u-boot elf file can be build using any of the 2nd stage configurations and copy it to the windows machine before proceeding.Please refer the u-boot user guide for building steps U-boot Build steps. Package u-boot.zip contains the per-build u-boot.bin image.

About this Manual[edit]

This document describes steps to flash the u-boot in to any media supported on DM813x platform. There are no separate Flashing tools provides with the PSP release package because of the capability of doing the it from the u-boot prompt.This approach can be used to flash u-boot when the board is using a different UART console other than UART0 Refer Console config for update the configurations. u-boot elf is the file "u-boot" generate while building any of the 2nd stage configurations.The ELF image can be directly loaded over CCS and run the program to get the u-boot prompt from where we can proceed flashing to any media supported by the u-boot.You can use UART or ETHERNET method to transfer the images required for flashing.


NoteNote: The two stage u-boot approach do all the DDR, PLL and Pin-mux initializations in the fist stage of the u-boot. Here we are loading the 2nd stage u-boot binary directly using the CCS and all the 1st stage initializations must be done explicitly before loading the u-boot image using the GEL file provides in the wiki page. If any additional Pin-mux or PLL configuration is required for the custom UART must be done in the GEL file or from the CCS memory browser.

Setup[edit]

Configure a different UART as console in u-boot[edit]

For DM813x, change the address defined as CONFIG_SYS_NS16550_COM1 in include/configs/ti813x_evm.h to the base address of the UART you want to designate for console.

Similarly, for DM813x, update file include/configs/ti813x_evm.h.

In addition, if the chosen UART requires pinmux to be set (non-mode0 setting), this needs to be done in board_init() function.

For DM814x:

  1. Identify the mux configuration register number and the mode to be set for UART pin(s)
  2. Update the bit fields in board/ti/ti813x/mux.h accordingly

E.g., to set UART3 Tx (mode5) on vout1_b_cb_c7 pin, which comes to mux entry 211, change following in board/ti/ti813x/mux.h:

 /* -212 */      BIT(0), BIT(0), BIT(0), BIT(0),

to,

 /* -212 */      BIT(0), BIT(0), BIT(0), BIT(5),


NoteNote: Please note that the additional pin-mux configurations needed for the custom UART must be added the GEL file pin-mux function before loading the GEL file.

Starting CCS[edit]

  • System Requirements – CCS v5.1 or above installed on Windows XP with Service Pack 2
  • Use the Configuration and gel file to set up CCS from host-tools package for the respective release

NoteNote: The bootmode switch S1 should be all 0s (i.e. BTMODE[4:0] = 00000)

  • Connect the Spectrum Digital XDS560V2 STM USB emulator to the DM814x EVM
  • Start CCS by navigating to 'Start' menu in Windows XP
  • Select the workspace folder where you want to store your project
    • Select "View -> Target Configurations"
    • In the "Target Configurations" tab select "New Target Configuration File" button (in the top left corner)
    • Name the file (example, ti813x_usb.ccxml)
    • Click "Finish"
    • Connection = Spectrum Digital TI XDS560V2 STM USB Emulator
    • Board or Device = TI814x
    • Save configuration
    • From next run, the project and target configuration will be readily available and can be skipped
  • Select "Debug Perspective" in CCS if you are not there already: Window --> Open Perspective --> CCS Debug
  • Select View -> Target Configurations.
  • Expand "User Defined" configuration tree, Right click on the newly created target configuration and select "Launch Selected Configuration"
  • This should launch debug session
  • In Debug view, (scroll till the end) Select "Spectrum Digital XDS560V2 STM USB Emulator_0/Cortex A8" connection.
  • Right click on the Cortex A8 core listed and click on "Connect Target"

Warning Warning: If you get the following error in CCS "ARM9_TPPSS: Failed to retrieve the Wait in Reset Mode: Failed to get PRSC status" then press "Power ON Reset" push button and then repeat the previous step. A "Disassembly" view with PC halted should pop up in one of the tabs. If not, do a 'System Reset' from Target menu and then Halt (for GP device)

  • From the View menu --> Registers, open CPSR and set "T" field as "0". This is required to change ARM state from "Thumb" to "ARM" mode.

Loading GEL File[edit]

IMPORTANT

* Flashing step expects the GEL file to initialize the PLLs, DDR, on-chip RAM and GPMC.
  • The GEL file in Linux PSP release is just for reference hence might not work on all boards.
  • Please find the attached GEL file with the document.
  • Ensure that the GEL file package File:DM813x.zip is copied to the Windows Machine
  • Select Tools --> GEL Files from CCS IDE
  • This opens a new tab in the Debug view. On right hand side empty area in this window, right click and select "Load GEL". This should open the file browser dialog.
  • Navigate to the directory containing gel file and select the (DM813x.gel) gel file .
  • A "Scripts" menu item (on top) should now be available.
NOTE

Sometimes the Scripts menu will be disabled. In this case, go to Debug window and select Spectrum Digital XDS560V2 STM USB Emulator_0/CortexA8 (top level node) and the Scripts menu should get activated.
  • Select Scripts --> DM385 System Initialization --> DM385_System_Initialisation_GP_device. This should setup all clocks.
  • Now select Scripts --> DM385 Peripheral Clock Init --> GPMC_ClkEnable_API. This should initialize GPMC and other peripherals.
  • and then select Scripts --> DM385 VDB DDR Configurations --> EVM_DDR3_EMIF0_400MHz_Config. This should setup EMIF for DDR3.

Running u-boot(using CCS)[edit]

  • Start CCS using steps mentioned in Starting CCS
  • Ensure that the elf image (e.g. u-boot) to be loaded is present in the Windows XP Machine
  • Load u-boot elf and run it ("Run -> Load -> Load Program" Browse to "u-boot" elf file, open it and then run it). u-boot should be available in the release package
  • Start the application from Run -> Resume. Or hit F8.
  • You will get a u-boot prompt(DM385_EVM#) in the console.
  • Transfer the images to be flashed over UART or ETHERNET and flash using uboot commands.

Please refer PSP User-Guide on how to proceed further with U-Boot configuration and how to flash u-boot to NAND/SPI/NOR from u-boot prompt .

E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article DM813x PSP Flashing Tools Guide here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article DM813x PSP Flashing Tools Guide here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article DM813x PSP Flashing Tools Guide here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article DM813x PSP Flashing Tools Guide here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article DM813x PSP Flashing Tools Guide here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article DM813x PSP Flashing Tools Guide here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article DM813x PSP Flashing Tools Guide here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article DM813x PSP Flashing Tools Guide here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article DM813x PSP Flashing Tools Guide here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity