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.

RTOS/PROCESSOR-SDK-C6748: C6748 MMC_SD card boot is fail

Part Number: PROCESSOR-SDK-C6748
Other Parts Discussed in Thread: OMAPL138

Tool/software: TI-RTOS

Hi.

 We are stuck on bringing up the C6748 by using SD card boot.

Please share us the working ccxml (target configuration) / Gel file / MLO / Config / APP for a try.

THanks.

BR Rio

  • While loading the gel, we have this kind of problem log shown on the CCS.

    C674X_0: Trouble Reading Memory Block at 0x1e1a100 on Page 0 of Length 0x4: (Error -1137 @ 0x1E1A100) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.0.803.0)
    C674X_0: GEL: Error while executing OnTargetConnect(): Target failed to read 0x01E1A100
    at (*((unsigned int *) (0x01E1A000+0x100))|=0x00000010) [C6748_LCDK.gel:40]
    at device_PLL1(24, 1, 0, 1, 2) [C6748_LCDK.gel:397]
    at Set_DDRPLL_150MHz() [C6748_LCDK.gel:415]
    at Set_DDR2_150MHz() [C6748_LCDK.gel:450]
    at Core_300MHz_mDDR_150MHz() [C6748_LCDK.gel:244]
    at OnTargetConnect()
    C674X_0: Trouble Reading Register CSR: (Error -1139 @ 0x41) Lost debug connection to device. 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 8.0.803.0)
    C674X_0: Trouble Reading Register CSR
  • Hi Rio,

    Can you please try running the debug GEL file?

    processors.wiki.ti.com/.../OMAP-L1x_Debug_Gel_Files

    This will tell us the device state and where the boot is hanging.
  • Hi Okur:
    The GEL seems improves some.
    Please review the below console log.

    I believe
    Thanks.
    BR Rio

    **** PDK SBL ****
    SBL Revision: 01.00.09.02 (Dec 13 2018 - 11:17:21)
    Begin parsing user application

    SD Boot - File open fails
    Error while copying the images

    *** PDK MMCSD Flash Writer ***
    Opening MMCSD handle...
    MMCSD handle opened!
    Parsing config file and flashing content to MMCSD...
    Parsed config line, received parameters: filename = MLO, address = 0x200
    Unable to open file to load: MLO
    Error parsing config file!
  • Hi Rio,

    Can you please also share the output of the debug GEL file? It should print the following information to the console log:

    • ROM ID: Revision number of the boot ROM
    • Silicon revision number
    • Boot Mode: Current boot mode, as selected by the boot pins latched at reset
    • ROM Status Code: Current status of the ROM code
    • Description: Description of any error messages that the ROM may have encountered during boot
    • Program Counter: The current program counter of the connected device (ARM or DSP)
    • Device Information: Generic device information that may be helpful when getting support from TI
    • Clock information: PLLm_SYSCLKn is output
      • Note: If your board uses an input clock other than 24 MHz you need to modify the definition at the start of the gel file accordingly.
    • PSC state information

  • Hi Ocur:

    There  is no any output regarding this GEL.

    Please tell us how to get the output console for this GEL.

    Moreover, I'm using CCS8.2

    BR Rio

  • This discussion was taken offline. The guidance provided was the following:

    "The instructions on the Processor SDK RTOS Boot page to format the SD card and running the MMCSD writer is the same for lcdk6478 and lcdkOMAPL138 but the mlo binary is different. The SDK doesn`t provide a pre-built version of the MLO for C6748.

    To build the MLO for lcdkC6748 use the following instructions on the Processor SDK RTOS Boot page:

    Setup Processor SDK RTOS environment

    cd pdk_omapl138_1_0_x\packages\ti\boot\sbl
    gmake clean BOARD=lcdkC6748
    gmake mmcsd_flashwriter_clean BOARD=lcdkC6748
    gmake all BOARD=lcdkC6748 SOC=C6748 BOOTMODE=mmcsd
    gmake mmcsd_flashwriter BOARD=lcdkC6748 SOC=C6748

    Copy app to formatted SD card, and copy MLO and config file to <PDK_INSTALL_DIR>/packages/ti/boot/sbl/tools/flashWriter/mmcsd/bin/lcdkC6748. Run mmcsd_flash_writer.out using CCS.

    A pre-built mmcsd_flash_writer.out can be found at: <PDK_INSTALL_DIR>/packages/ti/boot/sbl/tools/flashWriter/mmcsd/bin/lcdkC6748"

    Rio,

    If you have any other questions, please let us know.

  • Additionally,

    "Setting up boot switches: Boot switches on LCDK don`t directly support No boot/debug boot mode setting like we used to on the EVM so set the HW as follows based on the usecase
    • For debug and development, set the LCDK boot switches to UART boot.
    • For NAND and SD boot, set the LCDK boot switches to corresponding boot media.
    Refer: processors.wiki.ti.com/.../C6748_Development_Kit_(LCDK) (Boot switch SW1 settings)

    For connecting to the LCDK board using GEL files follow the instructions here: (Instructions apply to CCSv7 and CCSv8 as well)
    processors.wiki.ti.com/.../AM1808_EVM_board_using_CCS? (Section 3.5 applies for OMAPL138 LCDK and Section 3.6 applies to C6748 LCDK)

    Note: If you select the LCDK platform in the ccxml as described in that article the correct GEL for the platform will be auto populated.

    For SD booting the LCDK platform using SD boot using Processor SDK RTOS, follow the steps in the Processor SDK RTOS Developers guide:
    software-dl.ti.com/.../index_Foundational_Components.html

    The mmcsd_flash_writer.out doesn`t copy the image from SD and write to NAND flash. It copies the image over JTAG and programs the boot image on the raw boot sector on the SD card. If this is not working for you, please ensure that you copied the MLO and the config file to the right location and provide the log from the writer. If the writer completes successfully, then ensure that you change the boot switches to SD boot and check the boot log.

    It looks like the MLO is booting correctly otherwise, you wouldn`t have seen the log

    **** PDK SBL ****
    SBL Revision: 01.00.09.02 (Dec 13 2018 - 11:17:21)
    Begin parsing user application

    SD Boot - File open fails

    SD Boot –File open fails is a log from Secondary bootloader and it indicates some issue with the app file. "