Searduino 0.9.94 released

December 6, 2015 Leave a comment

Source code (distribution):

Source code (git):

GNU/Linux binaries (64 bits):


Categories: Uncategorized

How to use the new binary dist for Debian, Ubuntu …

November 11, 2015 Leave a comment

Lazy? Wanna skip compilation? Use the binary dist for Debian, Ubuntu and friends. Here’s an intro.

Download tar.gz


Create and enter dir

mkdir -p /opt
cd /opt

Unpack tar.gz

tar zxvf searduino-bin-0.9.93-Linux-x86_64.tar.gz

Verify installation

bash /opt/searduino/share/searduino/scripts/
Categories: Uncategorized

Building from git on Ubuntu

November 11, 2015 Leave a comment

Ok, time to have some fun with Searduino again. In prep for a lecture tomorrow I am making sure Searduino is working on Ubuntu which most of the students are using.

Download Searduino from savannah:

git clone git://

Install necessary packages

cd searduino
sudo bin/

Create configure script

make -f Makefile.git

Set up environment

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/


./configure --prefix=/opt --disable-python --disable-pearduino




sudo make install

Categories: Uncategorized

New screenshot of coming version (1.0?)







Categories: Uncategorized

Searduino needs a logo, 1.0 coming up

All features for 1.0 have been implemented and tested. Lots of hard work, strange bugs and mistakes. Still we’re almost ready. Currently our time is spent on the manual preparing this for the coming 1.0 release.

Before releasing it would be nice to have a logo ….

Can you design one?

Send an email to

Categories: Uncategorized

Searduino 0.9 released

January 21, 2014 7 comments

Searduino 0.9 released

Searduino is an Arduino simulator and a C/C++ development environment for Arduino boards.

NEWS in Searduino 0.9

Upload and verify for Arduino boards.

It is now possible to use Jearduino to verify(build) and upload code for physical Arduino boards. Makes it easy to test in simulator and with two clicks upload it to a physical board.

Loading a file again will actually reload it.

Needed when rebuilding code. Previously the Arduino code didn’t get reloaded if loading the same file name as currently loaded.

No crash when halting and reloading dyn files.

Earlier versions sometimes crashed when halting and reloading a file containing Arduino code.

LCD correct after halt and start.

Earlier versions had the previous LCD data incorrectly stored and displayed when rotating left/right.


Source code:;a=shortlog;h=refs/tags/0_9

Source code dist

Binary dist


Categories: Uncategorized

0.9 up soon (one more bug (LCD) fixed)

January 21, 2014 Leave a comment

One annoying bug has been fixed. When reloading Arduino code the LCD data from previous execution was kept if rotation was in use. Ok, probably not the most important bug – bug it was one of them potential “something bigger is really the problem” bugs. It was an easy fix, although hard to find, and there were no signs of a bigger bug, so I guess we’re ready to release.

Next thing is to wait for a nice network connection. The hotel here in Auckland (NZ) doesn’t allow for ssh, let alone the poor speed. So tomorrow, when at the Auckland University of Technology, 0.9 will be released.

… finally!


Categories: Uncategorized

0.9 closer and closer

January 20, 2014 Leave a comment

Some days ago we made Searduino work way better. Jearduino/Searduino only crashed every 2000 time. Way better than every second time. Still not really a sign of something working is it… and really hard to let go of 😉

After some more hours we found the problem…. Searduino (the simulator engine) may call the function callback after they’ve been closed (dlclose). Quite easy to fix and frustratingly obvious (as always) once you found the bug.

Now, with some ugly printf/println we’ve tested more. We tested for 20 hours and after 381,687 runs with:

  • load
  • run
  • halt
  • close

we got no crashed. The code is merged so we’re going to focus on regression tests. After that,iIt’s about time to release 0.9.

We’ll give the release a nickname since Henrik is in New Zealand while the release is made. 0.9 will be called “kiwi”….. if nothing really bad happens.


Categories: Uncategorized

Final tests of thread problem. Preparing for 0.9

January 10, 2014 Leave a comment

Jearduino (the Java GUI frontend to Searduino) is using JNI to load the Searduino (in practice the Arduino Simulator Engine). When doing this two techniques are in use:

Jearduino loads a dynamic library (dlopen), finds a symbol (dlsym) and then starts a new thread (pthread_create) using the symbol found. When the user requests the thread to stop calls to pthread_cancel and to dlclose are made (looks a bit different in git right now, so this refers to my (Henrik’s) local git repo.

Since the user (rightfully) expects the simulator to execute freshly built code rather than the code before the build the same amount of call to dlclose as to dlopen must be made. Why? – dlopen keeps a reference count and if the ref count is not zero it does not load the file but reuse the previously loaded file. Uh oh – so the user thinks  (I would at least) think that the new code is run but it isn’t. So we have written some code to make sure the latest code is actually loaded.

Ok, but what is the problem? ….get on with it you stupid bastard!!

Problem is that the pthread_cancel and the dlclose seemed to occasionally crash the program when occurring to closely in time. So a couple of sleep (usleep) has been added after the call to pthread_cancel. We all hate adding sleep but in this case it does not do any harm to the user – only to use as hackers. It seems to work though, so we’re keeping it. Will try to find a real solution – with no sleeps – later on.

So right now, one laptop is running tests since some hours ago. The tests are loading/running/closing code all the time… and so far 2249 runs with no crashes (compared to 1-2 runs before a crash before)….. will run the tests all night.

Yeah, some words about preparing. We’ve added quite a few features to make Searduino (in practice Jearduino) more user friendly. Once these tests pass it’s time to release 0.9 and reestablish contact with the nice Debian people since we think Searduino is good enough to put in there now.


Categories: Uncategorized

New log window

January 6, 2014 Leave a comment

We’ve added a log window with a bigger textarea (with scrollbar). Screenshot here:


Categories: Uncategorized