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.

DRA78XEVM: Build SBL from SDK Vision

Part Number: DRA78XEVM


I followed the instruction in  Vision SDK TDA3xx (v03.06.00) User Guide :

3.5.1 Steps to generate qspi writer tools NOTE: SBL qspi image is built from pdk package. To build qspi, run the command gmake -s sbl from vision_sdk\build directory This generates all required tools and all sbl images under vision_sdk\binaries\$(MAKEAPPNAME)\$(MAKECONFIG)\sbl directory

But I get this error:

C:\TI\PROCESSOR_SDK_VISION_03_07_00_00\vision_sdk\build>gmake -s sbl
C:/TI/PROCESSOR_SDK_VISION_03_07_00_00/vision_sdk/apps/configs/autorules_footer_cfg.mk:58: *** CODEGEN_PATH_A15 does not exist! (C:/TI/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/cg_tools/windows/gcc-arm-none-eabi-4_9-2015q3). Stop.

Please help

  • Hi Hatem,

    please check the "Important Note" section in VisionSDK_UserGuide_TDA3xx.pdf below "3.5.1 Steps to generate qspi writer tools". There is a link for downloading the GCC tools. Make sure they are installed in directory "PROCESSOR_SDK_VISION_03_07_00_00/ti_components/cg_tools/windows/gcc-arm-none-eabi-4_9-2015q3".

    Regards,

    Yordan

  • I followed your instruction.

    Building the vision_SDK was successful

    But I found the following new folders:

    \TI\PROCESSOR_SDK_VISION_03_07_00_00\vision_sdk\binaries\apps\tda2xx_evm_bios_all

    However, I am using TDA3xx

    Does the generated binary also works for TDA3xx  ?

  • Hi Hatem,

    you need to set "MAKECONFIG=tda3xx_evm_bios_all" in vision_sdk/build/Rules.make to build for TDA3.

    (note that you will need to run also "gmake -s -j depend" when you modify Rules.make)

    Regards,

    Yordan

  • I received this when I ran    gmake -s -j depend

    MAKEFILE.MK:267: warning: overriding recipe for target 'depend'
    MAKEFILE.MK:267: warning: ignoring old recipe for target 'depend'
    MAKEFILE.MK:274: warning: overriding recipe for target 'header'
    MAKEFILE.MK:274: warning: ignoring old recipe for target 'header'
    MAKEFILE.MK:279: warning: overriding recipe for target 'footer'
    MAKEFILE.MK:279: warning: ignoring old recipe for target 'footer'
    MAKEFILE.MK:285: warning: overriding recipe for target 'all'
    MAKEFILE.MK:285: warning: ignoring old recipe for target 'all'
    gmake: Interrupt/Exception caught (code = 0xc0000005, addr = 0x41524150)
    MAKEFILE.MK:267: recipe for target 'depend' failed
    gmake[2]: *** [depend] Error 255
    Makefile:228: recipe for target 'links_fw_depend' failed
    gmake[1]: *** [links_fw_depend] Error 2
    Makefile:274: recipe for target 'depend' failed
    gmake: *** [depend] Error 2

    C:\TI\PROCESSOR_SDK_VISION_03_07_00_00\vision_sdk\build>gmake -s -j depend

    What does it mean and how to resolve it ?

  • Hi Hatem,

    can you try to run "gmake clean" and delete the "binaries" folder and then start building again.

    Regards,

    Yordan

  • I ran

    "gmake clean"

    Deleted all binaries  from  \TI\PROCESSOR_SDK_VISION_03_07_00_00\vision_sdk\binaries

    ran again   "gmake -s -j depend"

    But I still get the errors

    MAKEFILE.MK:184: warning: overriding recipe for target 'clean'
    MAKEFILE.MK:184: warning: ignoring old recipe for target 'clean'
    MAKEFILE.MK:267: warning: overriding recipe for target 'depend'
    MAKEFILE.MK:267: warning: ignoring old recipe for target 'depend'
    MAKEFILE.MK:274: warning: overriding recipe for target 'header'
    MAKEFILE.MK:274: warning: ignoring old recipe for target 'header'
    MAKEFILE.MK:279: warning: overriding recipe for target 'footer'
    MAKEFILE.MK:279: warning: ignoring old recipe for target 'footer'
    MAKEFILE.MK:285: warning: overriding recipe for target 'all'
    MAKEFILE.MK:285: warning: ignoring old recipe for target 'all'
    gmake: Interrupt/Exception caught (code = 0xc0000005, addr = 0x41524150)
    MAKEFILE.MK:267: recipe for target 'depend' failed
    gmake[2]: *** [depend] Error 255
    Makefile:228: recipe for target 'links_fw_depend' failed
    gmake[1]: *** [links_fw_depend] Error 2
    Makefile:274: recipe for target 'depend' failed
    gmake: *** [depend] Error 2

    C:\TI\PROCESSOR_SDK_VISION_03_07_00_00\vision_sdk\build>

    what   "gmake -s -j depend"   do ?

    Any more ideas to resolve these error ?

  • Hi Hatem,

    can you try without "-j" option?

    Also run "where gmake" command to make sure that the gmake from xdc folder is called.

    Regards,

    Yordan

  • I do not have any TI environment variable

    I do not have any TI folder on Windows Path

    Yet when I ran    "where gmake"

    I got

    C:\TI\PROCESSOR_SDK_VISION_03_07_00_00\vision_sdk\build>where gmake
    C:\TI\ccs910\ccs\utils\bin\gmake.exe

    But I do have a folder     C:\TI\ccs910\xdctools_3_60_01_27_core

    but is not on the path.

    How I can force to pickup the gmake in   C:\TI\ccs910\xdctools_3_60_01_27_core   without using the full path in the command window ?

  • Hi Hatem,

    the gmake.exe in <Install_dir>/ti_components/os_tools/windows/xdctools_x_xx_xx_xx must be used.

    In your case it should be something like:

    set PATH=C:\TI\PROCESSOR_SDK_VISION_03_07_00_00\ti_components\os_tools\windows\xdctools_3_32_01_22_core;%PATH%

    Can you try to ser path like this and then build?

    Regards,

    Yordan

  • I followed your instructions

    I repeated few times, but I still get the error.

    MAKEFILE.MK:171: warning: ignoring old recipe for target 'clean_files'
    MAKEFILE.MK:184: warning: overriding recipe for target 'clean'
    MAKEFILE.MK:184: warning: ignoring old recipe for target 'clean'
    MAKEFILE.MK:267: warning: overriding recipe for target 'depend'
    MAKEFILE.MK:267: warning: ignoring old recipe for target 'depend'
    MAKEFILE.MK:274: warning: overriding recipe for target 'header'
    MAKEFILE.MK:274: warning: ignoring old recipe for target 'header'
    MAKEFILE.MK:279: warning: overriding recipe for target 'footer'
    MAKEFILE.MK:279: warning: ignoring old recipe for target 'footer'
    MAKEFILE.MK:285: warning: overriding recipe for target 'all'
    MAKEFILE.MK:285: warning: ignoring old recipe for target 'all'
    gmake: Interrupt/Exception caught (code = 0xc0000005, addr = 0x41524150)
    MAKEFILE.MK:267: recipe for target 'depend' failed
    gmake[2]: *** [depend] Error 255
    Makefile:228: recipe for target 'links_fw_depend' failed
    gmake[1]: *** [links_fw_depend] Error 2
    Makefile:274: recipe for target 'depend' failed
    gmake: *** [depend] Error 2

    C:\TI\PROCESSOR_SDK_VISION_03_07_00_00\vision_sdk\build>

    I also tried 

    gmake -s sbl

    before and after

    gmake -s -j depend

    with -j and without -j

    I always start with gmake clean

    But the error still there

    Please help ?

  • I can add  the command    gmake -s sbl

    always runs successfully.

  • Please help.

    I have been waiting for nearly 24 hours.

  • Hi Hatem,

    after you set PATH variable, can you confirm with "where gmake" that the correct one is taken?

    Also, can you install git and try to use git bash console for building?

    Regards,

    Yordan

  • Thank you

    $ where gmake
    C:\TI\PROCESSOR_SDK_VISION_03_07_00_00\ti_components\os_tools\windows\xdctools_3_32_01_22_core\gmake.exe
    C:\TI\ccs910\ccs\utils\bin\gmake.exe

    Using git bash,   the SBL was build successfully from vision_sdk .

    Now I need to flash the SBL  to load the app from the SD card 

    From the::    Vision SDK TDA3xx (v03.06.00) User Guide,  Section ::   3.6 Load using QSPI and SD boot

    I can see

    1. The flash writer is present in vision_sdk\binaries\$(MAKEAPPNAME)\$(MAKECONFIG)\sbl\qspi_flash_writer\$(P LATFORM)\qspi_flash_writer_ipu1_0_release.xem4

    2. The SBL images are present in vision_sdk\binaries\$(MAKEAPPNAME)\$(MAKECONFIG)\sbl\qspi_sd\$(OPP)\$(PL ATFORM)\sbl_qspi_sd_$(OPP)_ipu1_0_release.tiimage

    Not sure what to do with these two files ?

    also in Section   3.6.2 Steps to generate appImage

    What appImage is refered to here ?

    Please help

  • Hi Hatem,

    please check section "3.6.3 Flashing steps" how to use flash writer and flash the sbl image.

    Copy the AppImage to root folder in SD card and insert SD card and power on EVM to boot it. SD card should be formatted as FAT32 with 512 bytes per sector.

    Regards,

    Yordan

  • SECTION    3.6.3 Flashing steps

    Is this using CCS and the JTAG to do the following:

    1. Connect M4 (IPU). Do CPU reset   is this from menu Run > Reset > CPU Reset ??

    2. Load image on M4

    3. Run the core.

    I am using a custom built board very similar to the TDA3x EVM but not 100% identical

    Does the still apply ?

  • Please help with the above questions.

  • Hi

    Is this using CCS and the JTAG to do the following: Yes.

    Your custom board is similar to DRA78xEVM or TDA3x?

    Please choose proper board selection during a new target configuration file creation in CCS.

    Regards

    Gaviraju

  • my custom board has SoC DRA788  .

  • Hi,

    Follow the steps we mentioned in previous post.

    Thanks

    Gaviraju