Stellaris armpit

Posted at 2014-01-16.

Armpit seems to be a scheme interpreter for ARM microcontrollers.

I saw it somewhere and knew I had to try it out. It's a pretty considerable chunk of ARM asm, but it built right out and ran. Only the last version has somehow been made to use cr terminators and some strange backspace. (Smells like old apples, but nothing else here looks like it.)

Anyway.. I also came across picocom which seems to be a not too bad way to talk to serial ports interactively. Somewhere behind the cleanness of cu and the horror that is minicom. Funny thing is, it has these input and output mappings for obscure control character or two. It also has bitrate cycling (and messages talking about bauds).

% picocom /dev/ttyACM0 --imap crcrlf  --omap delbs -b 115200
picocom v1.7

port is        : /dev/ttyACM0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv
imap is        : crcrlf,
omap is        : delbs,
emap is        : crcrlf,delbs,

Terminal ready

(_ISR throw -3)
ap> define
ap> map
ap> lambda
ap> (map (lambda (x) (* x 2)) '(1 2 3))
(2 4 6)
ap> (map (lambda (x) (* x x)) '(1 2 3 4 5))
(1 4 9 16 25)