StickOS is BASIC interpreter which runs on Microchip PIC32 and Freescale MCF52XX microcontrollers. Recently in release 1.92 support for DuinoMite-Mega was implemented so I did a test drive this weekend.
To install StickOS on DuinoMite is very easy, you should go in bootloader mode and start DuinoMite bootloader then to load this HEX: http://www.cpustick.com/downloads/StickOS.PIC32.DuinoMite-Mega.v1.92d.elf.hex and then if you are on WIndows you need this INF file for the USB VID/PID which StickOS uses: http://www.cpustick.com/cpustick.inf
when you program the HEX code and press reset new COM port will be created you can use your terminal program of choice to connect to this port and you will see:
Welcome to StickOS for Microchip PIC32MX7-F512H DuinoMite-Mega v1.92d!
Copyright (c) 2008-2012; all rights reserved.
StickOS pre-tokenize BASIC command and do syntax check while you enter your code
This is good as it speeds the execution of the code later also it prevent you to write code with syntax errors.
For instance if you want to write:
>10 non-existing command
^ – error
you will receive this error message and nothing will be stored to line 10
pre-tokenizing the source allow later the interpreter to switch the statements with single byte comparison instead the multiply byte comparison which MM/DM BASIC does and this allow speed increase, another speed increase feature is that StickOS uses just the real PIC32 peripherials and do not make bit-banging as MM BASIC does, this result it x4 times faster execution:
10 dim a
20 configure timer 1 for 1 s
30 on timer 1 do print a
40 for a = 1 to 200000
prints 112518 BASIC instructions per second
what I missing in StickOS is:
– no VGA and PS2 keyboard support
– no SD card file system
– print command is very simplified
– not open source, although there is mechanism to add new commands by skeleton source which links the core basic as pre-compiled object code
It’s very easy to go back to MM/DM BASIC by simply entering bootloader mode and re-loading the HEX file for MM/DM BASIC.
If you want to give it try to StickOS BASIC you can first learn the commands by reviewing these PDFs:
and user manual