On 13/12/2011 00:03, William Lopes wrote:
> Now I understood. Then I can to program using ELF file only?
> What is command for this?
>
> Thanks.
>

Conversion to hex format can be useful too - while mspdebug (and 
msp430-bsl) can open elf files, some other programming tools can't.  Hex 
files are an easy-to-parse format with just the required programming 
information (no debugging data), and any programming tool will support 
it.  So leave that in in your makefile.


TI's "TXT" format, on the other hand, is a silly format and best 
avoided.  It's not much different from ".hex", but it's non-standard and 
the ".txt" name leads to confusion.


One other point about your makefile - it refers to "cp", "mv" and "rm" 
which are standard on *nix, but not on Windows.  If you don't have a 
"rm" on your path, then "make clean" is going to fail.  So if you ever 
feel you want to play with more advanced makefiles (or other 
command-line utilities), install "msys" on your Windows machine - it 
makes it possible to use Windows like a real computer!  (Avoid cygwin if 
you can - it's big, slow, and feels alien in windows.  If msys is not 
posix enough for you, switch to Linux.)

mvh.,

David



>
> 2011/12/12 Peter Bigot<big...@acm.org>
>
>> On Mon, Dec 12, 2011 at 11:29 AM, William Lopes
>> <williamlopes....@gmail.com>  wrote:
>>> Well, I solved some problems, but now shows other.
>>>
>>> Running make -n:
>>>
>>> "Generating dependencies blink.d from blink.c"
>>>> echo "Compiling blink.c"
>>>> msp430-gcc -c -mmcu=msp430g2231 -g -Os -Wall -Wunused -IInclude
>> -Iinclude
>>>> -Ilib
>>>>     -o blink.o blink.c
>>>> echo "Linking blink.elf"
>>>> msp430-gcc blink.o -mmcu=msp430g2231 -Wl,-Map=blink.map  -o blink.elf
>>>> echo
>>>> echo ">>>>  Size of Firmware<<<<"
>>>> msp430-size blink.elf
>>>> echo
>>>> msp430-objcopy -O ihex blink.elf blink.hex
>>>> srec_cat -O blink.txt -TITXT blink.hex -I
>>>>
>>>>
>>> Running make:
>>>
>>> "Compiling blink.c"
>>>> "Linking blink.elf"
>>>> ECHO is off.
>>>> ">>>>  Size of Firmware<<<<"
>>>>     text    data     bss     dec     hex filename
>>>>      130       0       0     130      82 blink.elf
>>>> ECHO is off.
>>>> process_begin: CreateProcess((null), srec_cat -O blink.txt -TITXT
>>>> blink.hex -I,
>>>> ...) failed.
>>>> make (e=2): The system cannot find the file specified.
>>>> gmake: *** [blink.txt] Error 2
>>>>
>>>
>>> Above shows that not found txt file and I noticed that no was created
>> too.
>>>
>>> What can to be?
>>
>> I'm not a windows user, but it looks like the makefile's trying to run
>> the srec_cat program in order to create blink.txt, and can't find it.
>>
>> You may not need that, nor the conversion from elf to hex, depending
>> on what you use to program the board.  mspdebug will happily program
>> using the ELF version.
>>
>> Peter
>>
>>>
>>>
>>> 2011/12/12 Przemek Klosowski<przemek.klosow...@gmail.com>
>>>
>>>>
>>>>
>>>> On Mon, Dec 12, 2011 at 11:28 AM, William Lopes<
>>>> williamlopes....@gmail.com>  wrote:
>>>>
>>>>> Anyway thanks.
>>>>>
>>>>> I go hope somebody to help me then.
>>>>>
>>>>> Hugs.
>>>>>
>>>>> Perhaps run 'make -n' and copy (cut-and-paste) the commands that are
>>>> executed, and post them to the mailing list, so we can see what exactly
>> is
>>>> going on?
>>>>
>>>>


------------------------------------------------------------------------------
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to