Compiling and uploading code without an IDE

Hi everyone

These are my first forays into embedded programming.
Is it possible to cross-compile the code and push it into an Arduino UNO/Mega without using the ide.
I know that it uses the avr-gcc cross-compiler, but how do i push the binaries/hex into the board.

Thanks
Sam

avrdude

but how do i push the binaries/hex into the board.

The included AVRDUDE is the tool used to upload a hex file to an attached board.

Lefty

Example usage:

avrdude -p atmega328p -D -Uflash:w:"main.hex" -v -v -F -c avrisp -P /dev/ttyACM0


<br>-p atmega328p<br>

Upload to an Arduino Uno, which comes with an ATmega328p


<br>-D<br>

"Disable auto erase for flash memory" - Actually I have no idea why I am using that option...
-Uflash:w:"main.hex" Upload main.hex to flash memory


<br>-v -v<br>

Very verbose output


<br>-F<br>

ignore invalid signatures - This is because due to the Arduino bootloader, the signature avrdude is expecting isn't the right one


<br>-c avrisp<br>

The type of the programmer - avrisp works for the Arduino
-P /dev/ttyACM0 Path to the programmer device. On Windows/Mac this will look different.

Thanks

Suppose i have a custom board for an embedded application, using let's say LPC1768 or STM32F2 ARM cortex M3 series of processors.
How would i port binary.hex code onto it?
Which compilers would you recommend?

Regds
Sam

for the ARM there is an IDE that look similar to arduino ide and lets you program the ARM using a language close to the one used in arduino check here for more detaisl Maple | LeafLabs