3. I have WinAVR installed so I changed the default compiler to GNU AVR GCC and set the path to WinAVR folder. After I build the file I will get an EXE file but not a HEX file like I need to burn to the MC. How can I solve this?
You can generate a hex file in a post build step with CB like
cmd /c <architecture>-objcopy -O ihex Input.elf Output.hex
Hi,
put the command of avr objcopy in the bost-puilt step like
cmd /c avr-objcopy -O ihex <executable> <converted_hex_file>
Replace the <executable> by name of your executable or use instead a CB variable like $(TARGET_OUTPUT_FILE). Then specify the name for the resulting hex file.
If the programmer is a command line tool you could even do the flash programming in a post build step too.