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.
I've spent a couple hours searching the forums and wikis for an answer and could not find one. Please help if you can.
I am using:
micro/DSP: TMS320C2800
IDE: CCSv4.2
Code generation tools: TI v5.2.6
I simply want the linker to generate ELF output files. It seems the only option is "legacy COFF", or the *.out file. It seems some more recent compilers have the -abi option, but not compiler I am using apparently (I'm using CCSv4.2, so I assume I have the latest compiler/linker for the micro I'm using). Perhaps there is a utility that will convert "legacy COFF" to ELF? Or even one that will generate ELF from hex/S19 format? Thanks.
Hi Randall,
I don't know if this helps as I'm running CCS4.1and TMS570, but I set ELF under build options...runtime model options as follows:
Regards, Tony.
Thanks Tony, but the options listed under "Runtime Model Options" are different for me. There is no "use the ELF output file format" options.
Can anyone else help?
Thanks for verifying the compiler/linker for the C2800 cannot generate ELF output.
Does anyone know of any alternatives? (i.e. way to generate an ELF file from a COFF file - or a s19/hex file).
There is no easy conversion from COFF to ELF or vice versa. Sorry, I am not familiar with "S19".
Could you say a little more about what you are trying to do? Why is the COFF file not acceptable?
S19 is basically a Motorola hex file format.
There is an existing tool used by a vehicle manufacturer that accepts an ELF format file, and outputs yet another executable/object format (proprietary format). That format can then be used to reprogram a vehicle controller over the vehicle network.
I just want avoid writing a program to convert COFF to ELF. I was hoping I was missing the compiler/linker option to generate an ELF file, or perhaps someone would have a quick solution.
Hi Randall,
Do you explicitly need the ELF file for something, or is it on a route to generate something else. If so, what are you ultimately after?
Regards, Tony.
I'm also looking for a decent output format, in my case for the MSP430. I'm porting things over to CCSv4 since my existing system doesn't support all the X parts well. I just need a format with useful debug information that I can load into my simulator/debugger. Of course it doesn't read COFF format (deja vu, I remember hassling with COFF conversions way back on the TMS32010 part in the 1980s!).
For general info, if I can get source to load into my debugger then I wouldn't care if the TI debugger worked or not. All I need CCSv4 to do is compile and link, I've got my own OS, debug facilities, etc. For that matter, if needed I could call cl430 from another development environment and skip all the rest of CCSv4.
Please read this Wiki article for information about object formats produced by TI compiler tools. You can convert from TI produced object code to one of several hex formats with hex430, the hex convert utility in the compiler package. You can read about it in the MSP430 Assembly Language Tools User's Guide.
Thanks and regards,
-George