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.

loading binary through UART

Actually i am trying to load a binary for my code through UART that i generated by code composer studio. it is simple a led blinking program.

i used hex470.exe utility to convert the .out file to .bin file

when i load this program it loads at the address in the RAM.But when i allow it to run using the 'go' command it gets halt.

Is that thing write.

 

  • you did not specify which DaVinci device you are using, but if you put the device in UART boot mode then you can connect via CCS/JTAG and load the .out file and run it.  No need to convert it to other formats.

  • We have made our own custom board.The Davinci device i am using is DM6446.Actually i have put u-boot in the board and was just trying to put a binary file through the u-boot command loadb .but when i load it to RAM and give the instruction to go it gets halt.

    Do u have any idea how to do that?

  • To be honest, I have not done this before.  Assuming you are downloading file correctly thru serial port (loadb), the only think I can think of is that the file is not in the proper format to execute and that is why it halts. 

    What I have done before is break into u-boot prompt (ensures u-boot is running) and use CCS w/ JTAG to load .out file (CCS generated) onto ARM and run it.

  • ya i know how to burn the .out file of the code composer studio.i have made a LED blinking program and load that file through JTAG its working file.

    But my question is i just want to put that file through u-boot and for that i need to convert that in the binary.i have converted that in binary using the hex utility and but i load it it

    gets halt.does someone done dis before.

  • If I understood correctly, you want to load a program at the DSP using u-boot. I have never done that. Usually, you either boot the DSP directly (not sure this is possible for this part), or you boot your Linux kernel and file system and load your DSP executable using DSPLINK or Codec Engine.

  • Thanks atleat some1 else replied anyways i have written an led program for arm.It works fine when i load it through CCS/JTAG i.e its .out file.

    Now actually i was trying to put the linux for that i have sucessfully UBL,U-boot,Kernel but not the filesystem.i am halt dere you can see my post with kernel halt topic.if you can help me in dat.

    But some how i thought to load the program in the ARM memory using u-boot command loadb.

     

    For that i converted the .out file to .bin file using the hex470.exe utility.when i load that program into the the memory using loadb command in the u-boot it gets load at the specified address in the memory.But when i execute it using the go command it gets halt.

    I think it should run correctly.but don't knw why it gets halt.i will be thankfu if u can help me on dat

  • i am having problem with the booting the kernel have suceesfully reached the kernel part but i am uable to mount the kernel on a linux machine plz see my posts at

     

    http://e2e.ti.com/forums/t/9050.aspx?PageIndex=2

    and answer me if you have sample file system can you plz email me or send me a link to download.