-1

I'm using Linux in my work lab to convert .c code to .elf/.hex in order to load it to a Teensy++ 2.0. How could I do this using Windows at home? Is there a C to HEX converter?

This is the terminal commands I'm using in Linux:

avr-gcc -mmcu=at90usb1286 –o <output.elf> <input.c> usb_serial.c

avr-objcopy –O ihex <output.elf> <output.hex>

jsan
  • 1,047
  • 8
  • 20
  • 33

3 Answers3

1

Clearly, if you are already used to avr-gcc on Linux and want to accomplish the same task on windows, then what you want is a build of avr-gcc for your windows box.

An easy way to obtain one is to install the Arduino IDE, which brings along its own copy. You can simply ignore the IDE and arduino libraries, and use the installed avr-gcc directly just as you do now.

Another source of a windows port is winavr

Chris Stratton
  • 39,853
  • 6
  • 84
  • 117
1

avr-gcc is available for Windows too, so you can do it in exactly the same way on Windows. You need WInAVR

Clifford
  • 88,407
  • 13
  • 85
  • 165
-1

Maybe this is what you're looking for:http://www.engineersgarage.com/forums/8051/how-convert-c-code-hex-code-using-keil-compiler