SparkFun Forums 

Where electronics enthusiasts find answers.

Discussions on the software and hardware for Atmel's STK standard.
By spartan228
#111879
I currently have a Serial Controlled Motor Driver
http://www.sparkfun.com/commerce/produc ... ts_id=9571

and the AVR Pocket Programmer

http://www.sparkfun.com/commerce/produc ... ts_id=9825

I successfully connected the two and got it working in AVRDUDE, the problem Im having is that I want to update the firmware on the motor driver with a modified version. The firmware comes with three files: a main.h, main.c and a makefile. From what Ive read I need to make it into a hex file in order to write it to the board. How do I go about doing this? This is my first experience with AVR programming so any help would be greatly appreciated.

Thanks
By Hexum
#111882
the .h file is the header file. The .c file is the actual C code file. You could use something like AVR GCC to compile them into a .hex file. You then take AVRDUDE and push it to your microcontroller. There is probably a lot more detail that could be given on this but for now, maybe this can get you going.