Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Enough of the STK500 protocol in Erlang to control the Arduino boot loader
Erlang Processing Makefile Shell
tree: 0e5af3b21a

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
include
src
.gitignore
Makefile
README.md
rebar.config
start.sh

README.md

stk500 is an Erlang implementation of enough of the STK500 protocol to talk to an Arduino.

Example

% Open the serial device attached to the Arduino
% The Diecimila uses 19200
{ok,FD} = stk500:open("/dev/ttyUSB0", [{speed, 19200}]),

% Read a hex file generated by the Arduino IDE
%
% hex_file/1 returns a list of binaries as read from the
% file (16 bytes). It's faster to use 128 bytes chunks.

Hex = stk500:hex_file("doc/counter.cpp.hex"),
Bytes = stk500:chunk(Hex, 128),

stk500:load(FD, Bytes).

Resources

The STK500 protocol documentation can be found here:

http://www.atmel.com/Images/doc2525.pdf
Something went wrong with that request. Please try again.