Hi,
I own an arduino UNO and I wrote a little piece of assembler code with Atmel Studio to understand it better. Until now I do not own an ISP to transfer the code to the microcontrollers memory. Is it somehow possible to use the bootloader of my arduino to transfer the code to the microcontroller? Preferable from Atmel Studio or if it is not possible with the tools of Arduino IDE?
PSaR:
You think I should embed my assembler code in C code and then using Arduino IDE to upload it? Is this right?
It's that, or write to the hex and upload using avrdude from the command line (there are pages with the information on this -just google), or buy an isp programmer.
Ok, thanks for your replies. I hoped there was a way to generate a hex file with Atmel Studio and upload it.
Does anyone know if there are differences between Arduino IDE hex-files and Atmel Studio hex-files? If not I think it should not be very difficult to upload the code.
Try a simple program in each and compare them.
Keep in mind the IDE will have code that sets up millis() and micros() and main() and other stuff that makes an 'empty' sketch some 400 bytes:
Is it somehow possible to use the bootloader of my arduino to transfer the code to the microcontroller?
Yes, the bootloader will upload arbitrary .hex files; they don't have to be Arduino Sketches.
You'll have to set Atmel Studio up with an "external command" to use avrdude to do the upload, though.
try the tutorial here: ASENSAR AUTOMATION - Your Product Development Partner