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.

Error in .bin file

Hi ,

    I am using tms320dm365 custom board with ccs v3.3.  I am using the XDS510 USB emulator from spectrum digital for debugging and loading the code to target. I tried editing the boot load code (done some changes in uart0, pll1, pll2 init functions). I am using ubl and uboot as boot loaders for my board. To load the code to NOR Flash, i tried generating the bin file from the .out file of css using  hex470.exe with the below command in command prompt:

 hex470.exe  UBL2BIN.cmd -o=UBL_DM365_NOR.bin NORWriter.out.

In command prompt on execution of above command , the following is seen and the .bin file got created.


F:\DM365_TO_DM368\correct\board_utilities\flash_utils\DM36x\CCS\UBL>hex470.exe
UBL2BIN.cmd -o=UBL_DM365_NOR.bin NORWriter.out.


Translating to Binary format...
   "NORWriter.out."   ==> .text
warning: section NORWriter.out.(.text) at 08e000000h falls in unconfigured
   memory (skipped)
   "NORWriter.out."   ==> .const
warning: section NORWriter.out.(.const) at 08e0194c8h falls in unconfigured
   memory (skipped)
   "NORWriter.out."   ==> .cinit
warning: section NORWriter.out.(.cinit) at 08e019908h falls in unconfigured
   memory (skipped)

 Surprisingly the bin file generated is containing null data (all zeros.). Can any one tell me what went wrong. how to solve this and create a successful bin file.

Thanks in advance,

Kiran.

 

  • Where does this ubl2bin.cmd hex470 command file come from?  How do you know that is the correct file to use in your case?  I ask because I suspect you need to hear from the authors of that file.  That's not us compiler folks, but your answers should help me direct your question.

    Thanks and regards,

    -George

  • Hi George,

          Thanks for replying.  My goal was to see the updated changes in uart and pll sections. I am using a preexisting code. The code has 2 work spaces:

    1. NORWriter
    2. UBL

    The NORWriter workspace consist of code for which generates the .out file, which in conjunction with the ubl and uboot code can be flashed to nor flash of target.

    The UBL workspace consisted of code updating hte ubl boot loader.

    the problem arised, when i tired to conver the .out file generated on building project form NORWriter workspace to .bin format. To do this conversion  only , i used the hex470.exe and ubl2bin.cmd files. (by searching in ti site i came to know that hex470.exe can be used to do .out to .bin conversion). The result is the .bin file created as a result of this .out to .bin conversion was having all zeros.

    can anyone tell me what exactly are ubl and u-boot. what is the difference between the two?

     

    Thanks and regards,

    Kiran.

  • We compiler experts can't help you with these details.  I'm pretty sure the best forum for this is the Linux Forum.  So I'll move this thread there.

    Thanks and regards,

    -George