Reply by Sly March 31, 20062006-03-31
I don't think the problem is about path problem.

I've tried to put my file in the same folder as the exec and TI's
example. There is no space in my file's name.

Here's a print screen of what I'm trying :

C:\temp>dir
 Volume in drive C is Systeme
 Volume Serial Number is XXXX-XXXX

 Directory of C:\temp

2006-03-31  08:41       <DIR>          .
2006-03-31  08:41       <DIR>          ..
2000-11-14  16:00               19 441 f240_hex.exe
2006-03-30  16:58               10 938 fastdrive.out
2000-11-14  16:00                  486 l20.out
               3 File(s)         30 865 bytes
               2 Dir(s)  16 568 446 976 bytes free

C:\temp>f240_hex.exe l20.out
COFF1-to-HEX Converter for TMS320F240 RS232 Flash Programmer Version
2.0b
(c) Copyright 1998 Texas Instruments
* Reading data from file : l20.out
* Reading entries for section: .text
* Reading entries for section: .data
* Reading entries for section: .bss
*
* No of sections in file l20.out: 3
* No of converted sections: 1

OK, it's done

C:\temp>f240_hex.exe fastdrive.out
COFF1-to-HEX Converter for TMS320F240 RS232 Flash Programmer Version
2.0b
(c) Copyright 1998 Texas Instruments

ERROR: Unable to open fastdrive.out
       Conversion aborted

C:\temp>

Reply by Jack Klein March 30, 20062006-03-30
On 30 Mar 2006 13:33:03 -0800, "Sly" <sylvain.piette@ctaq.ca> wrote in
comp.dsp:

> Hi, > > I'm trying to convert a file to obtain a .hex file (myfile.out to > myfile.hex) using f240_hex.exe provided by TI. > > Unfortunately, I always get this error message : > > "ERROR: Unable to open myfile.out > Conversion aborted" > > myfile.out is obtained by compiling my project with Code Composer > Studio (version 2.20). > > In Build options, Linker, Advanced, the COF output format selected is > COFF1 (as recommended in TI's documentation). > > When I convert example provided with the tool, it works well. > > Any idea ?
I don't use these particular tools, or even the 24xx DSPs, but the message does not seem to complain about the format or the content of the file, but say that it can't even open the file. It sounds like it could be a path problem. Perhaps you need to specify the proper path to the file. Or perhaps, if this is a command line tool, you need to using paths without any spaces in any of the directory names. Some command line tools still have problems with spaces in Windows file and directory names. -- Jack Klein Home: http://JK-Technology.Com FAQs for comp.lang.c http://c-faq.com/ comp.lang.c++ http://www.parashift.com/c++-faq-lite/ alt.comp.lang.learn.c-c++ http://www.contrib.andrew.cmu.edu/~ajo/docs/FAQ-acllc.html
Reply by Sly March 30, 20062006-03-30
Hi,

I'm trying to convert a file to obtain a .hex file (myfile.out to
myfile.hex) using f240_hex.exe provided by TI.

Unfortunately, I always get this error message :

"ERROR: Unable to open myfile.out
       Conversion aborted"

myfile.out is obtained by compiling my project with Code Composer
Studio (version 2.20).

In Build options, Linker, Advanced, the COF output format selected is
COFF1 (as recommended in TI's documentation).

When I convert example provided with the tool, it works well.

Any idea ?