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.

need help on generation Ubl.bin file from Ubl-spi.out

Other Parts Discussed in Thread: TPS65023

Hi

Team

I want to know the procedure to generate the Ubl.bin file from UBL ARM source folder that is provided as ARM UBL bootloader .

when I compile it in ccsv5 I get the .out file I want to know how to generate the ubl.bin file, Should I use the AIS tool to generate the bin file as DSp.bin is generated from AIS .for DSP UBL

Thank you

Deepak R  

  • I think, CCS project itself convert the .out to .bin using "ubl2bin.cmd"
    Please do make sure that cmd file is executing.
  • Hi

    Thanks for your reply!

    I could see the file that you have mentioned ubl2bin.cmd the folder but not sure where it has created the .bin file that is generated I tried clicking on that ubl2bin.cmd in the folders not able to find the bin file in any folder!

    Let me know  the details more I can try it!

    Thank you

    Deepak R

  • Hi

    I am trying to add the logs for more support!

    asm_directory="C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3" --obj_directory="C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3" -z -m"C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3/ubl-spi.map" -i"C:/ti/ccsv5/tools/compiler/tms470_4.9.5/lib" -i"C:/ti/ccsv5/tools/compiler/tms470_4.9.5/include" -i"C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3/ubl-omapl1x7" -i"C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3" --reread_libs --warn_sections --display_error_number -o "C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3/ubl-omapl1x7/../../ccsv3.3/ubl-spi.out" "C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3/util.obj" "C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3/ubl.obj" "C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3/uartboot.obj" "C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3/uart.obj" "C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3/tps65023.obj" "C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3/spiboot.obj" "C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3/spi_mem.obj" "C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3/spi.obj" "C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3/nandboot.obj" "C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3/nand.obj" "C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3/i2c.obj" "C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3/device_nand.obj" "C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3/device.obj" "C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3/debug.obj" "C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3/boot.obj" "C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ubl.cmd"
    <Linking>
    warning #10247-D: creating output section ".const" without a SECTIONS
    specification
    'Finished building target: C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3/ubl-omapl1x7/../../ccsv3.3/ubl-spi.out'
    ' '
    C:/ti/ccsv5/utils/bin/gmake --no-print-directory post-build
    "C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3/ubl-omapl1x7/postBuildStep_BOOT_SPI.bat" PROJECT_ROOT C:/Users/1011467/Desktop/armubl-03.20.00.14.tar/armubl-03.20.00.14/ccsv3.3/ubl-omapl1x7 !
    'hex470.exe' is not recognized as an internal or external command,
    operable program or batch file.

    I have ubl2bin file command in the C:\Users\1011467\Desktop\armubl-03.20.00.14.tar\armubl-03.20.00.14 directory when i try to click on that i dont get any bin file generated!

    Need help on this ASAP

    Thank you

    Deepak R 

  • If its ARM project, use the following command.
    C:\ti\ccsv6\tools\compiler\ti-cgt-arm_5.2.5\bin\armhex.exe

    If its DSP project, use the following command.
    C:\ti\ccsv6\tools\compiler\c6000_7.4.14\bin\hex6x.exe
  • Hi

    I am facing a Issue while building .bin files for DSP as well as ARM

    ---------------------------------------------------------DSP SIDE------------------------------------------------------------

    I have generated a .out file from the source code provided and I have fed the .out file to the AIS GEN 

    NOTE:I have not configured any values on AIS gen (i,e DEFAULT SETTINGS and I generate a file and when I flash that file with the pre compiled images provided (ARM-UBL, UBOOT) I get the prompt working of U-BOOT  AND THE SIZE OF THE FILE THAT I GENERATE IS SAME AS THE FILE SIZE IN PRE BUILT IMAGES 6K

    1>>>NOT SURE WHY I SHOULD NOT SET ANY PARAMETERS ON AIS GEN( HOPE IS IT THERE IN ARM UBL CODE THAT SETS THIS PARAMETERS ?????????? NEED CLARITY)

    ARM-SIDE

    I am really not able to figure out how to generate the binary file for the ARMUBL as specified in the link I have used the tool and attached the reference for what I have executed and tried flashing the ARMUBL in spi writer I dont get the uboot prompt


    Not sure how to generate the UBL.bin for ARM and  the file that is generated  from the command line is JUST 7KB and if i compare with the file that is in pre-built images of ARMUBL is 20kb and when I flash the code of 7 KB the uboot dosent pops up

    I am doing an experiment changing the armubl and dspubl by compiling the source code provided and trying to get the new images  and flash to get uboot

    IF AIS GUI TOOL CAN BE USED TO GENERATE THE ARM-UBL KINDLY SHARE SCREEN SHOT IF POSSIBLE

    Kindly need help on this!!!

    Thank you

    Deepak R

  • Are you able to run your CCS built DSP UBL and ARM UBL (.out) on your board using CCS IDE ?
  • Hi

    Stalin 

    Thanks for your response!

    I am not able to run the compiled code in instep debugging it goes to loop the says abnormal termination

    ****************************************************************************/
    /* ABORT - ABNORMAL PROGRAM TERMINATION. CURRENTLY JUST HALTS EXECUTION. */
    /****************************************************************************/
    _CODE_ACCESS void abort(void)
    {
    #pragma diag_suppress 1119
    #ifndef __VIRTUAL_ENCODING__
    /*-------------------------------------------------------------------*/
    /* SET C$$EXIT LABEL SO THE DEBUGGER KNOWS WHEN THE C++ PROGRAM HAS */
    /* COMP

    I am trying to build the images and  to write that through spiwriter and boot but when i generate the dsp-ubl.bin from the .out out using AIS gen tool if i set any parameters like sdram clock pinmux  and other fields of the gui the bin file generated and will not work when written by spi writer, but if i dont use any fileds and generate .bin as mentioned in the above post and flash the file i get the uboot prompt!

    In  case of ARM I am not sure how to build the the .bin file that is compatible for booting from the .out file

    Need help on generating the images and converting it to .bin in ARM & DSP and test the images by writing from flash writer!

    As far I have used the pre built images folder provided!

    tHANK YOU

    dEEPAK r