Electronic – arduino – AVR Assembly on Arduino through USB

arduinoassemblyavr

Say I wanted to learn AVR ASM, and I had an arduino.

Now i know you can program assembly on the arduino, but is there a way to do it through USB. I assume i'd just write normal assembly and do it through avr-dude, but am I missing anything or do I need a serial programmer to do this successfully?

am I missing anything? or should this be as easy as i said above?

I believe i've heard around using "inline" assembly….but how different would this be from actually writing ASM directly to the AVR?

Best Answer

You can use AVRA (AVR Assembler) on Linux to develop your assembly language program on Linux. I'm on Linux and free both as in beer & freedom of use.

Plan to use AVRDUDE (also free - both above contexts) to burn in your object code. I have used it in Linux.

Plan to use another (cheap - free as in opensource) Arduino like as a programmer. I have used one here and documented. In my article, I download a bootloader to a new ATmegaxx, instead you can burn in your own program. I did it all through USB (as you asked).

You definitely can use an USB based Arduino or RBBB+USB cable to program your target Arduino using USB. RBBB is indeed a utility Arduino that I have used in that role.

Overall, to use my solution, you would have to use another programmer or another cheap Arduino like RBBB. I also have reviewed RBBB in my other post.

Another way to program your Arduino with another Arduino.

Programming your Arduino using a third party USB programmer. enter image description here