[dorkbotpdx-blabber] assembler on the arduino?
Ben Bleything
ben at bleything.net
Mon Jan 28 14:35:52 EST 2008
On Mon, Jan 28, 2008, Greg Borenstein wrote:
> 1) write some ASM and compile it to hex (any tips on the tools for
> this?)
The avr toolchain you can get from macports will have an assembler.
Check avrfreaks, I'm sure you'll find a small tutorial on getting
started there.
> 2) learn the Arduino pins-AVR port mapping
I'm pretty sure most of the pins are PORTC, but I don't know why so
don't trust me there.
> 3) write an LED flasher hello world in ASM
Cake.
> 4) upload hex of hello world to arduino with avrdude
Double cake. Steal the upload code from RAD ;)
> Is there something I'm missing here? Is there any danger of nuking my
> Arduino's chip in the process here or does the bootloader offer some
> protection/restrictions in this regard?
I think there's some danger of overwriting your bootloader if you muck
up the flags, but you can always reflash it. I've got an STK-500 (as do
a number of other folks) and would be happy to reflash it if it
comes to that.
That goes for everyone else, too... if you ever need something burned to
an AVR, let me know and I'll bring my programmer to next meeting.
> Ben -- I'd still like to take you up on the programmer/uC beer-lesson
> offer if you're up for it. Never hurts to approach things like this
> from multiple directions.
Emailed you off-list :)
Ben
More information about the dorkbotpdx-blabber
mailing list