[mc1322x] MC1322x, Contiki and Darjeeling

Daniel Berenguer dberenguer at usapiens.com
Thu Jun 17 12:46:58 EDT 2010


I've been intensively exchanging e-mails with Niels Brouwers, the
creator of Darjeeling, a very compact Java Virtual Machine for
microcontrollers:
http://darjeeling.sourceforge.net/

He's kindly compiled a virtual machine for us, mc1322x users, and is
even willing to work in a more serious port once he gets access to
some mc13224-based hardware. He even considered doing a dual port: one
for Contiki+mc1322x and another for libmc1322x+mc1322x. At this
moment, the current compilation should work only under Contiki though.

Darjeeling should give us a lot of flexibility, mainly for the
high-level tasks and, combined with a wireless loader, we could update
the most changing part of a program in form of Java app. Brief, I
think we all agree in the interest of adding Darjeeling to the mc1322x
project.

Darjeeling is a bit tricky in terms of compilation since java and C
sources are compiled at the same time using ant and a collection of
xml config files. When adding Contiki to the task, building Darjeeling
becomes even more complicated, having to link a good number of Contiki
resources on the fly from Darjeeling. As result, Niels thinks that
porting Darjeeling to the Contiki tree would be a serious job so he
prefers to deal with individual ports and manual operations for each
platform.

This said, I need to test the first alpha-VM on my Econotags. The
Virtual Machine comes in form of an ELF file and I need to link this
file into the final binary like done with a library. I've created a
simple example that just opens a virtual machine but this example has
to be linked against Darjeeling's ELF file. Well, I first have to
remember how to do this. Can I include the VM ELF file as any other
library in the make command? Besides, the current mesh of makefiles ,
makefile.includes and makefile.platforms in the Contiki project makes
me wonder where to add the new compilation line. Is there any way to
link the project to a new resource whilst keeping the current
../../Makefile.include dependency? Otherwise I should create a
self-contained makefile like some examples do (ex: ravenusbstick).

Thanks for your help guys and sorry again for the basic questions.

Best regards,

Daniel.



More information about the mc1322x mailing list