[mc1322x] MC1322x, Contiki and Darjeeling
Niels Brouwers
niels.brouwers at gmail.com
Fri Jun 18 02:48:52 EDT 2010
>> 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.
Compiling Darjeeling right now is complicated because of a couple of things:
1) It's a mix of C and Java, with some integration between the two
(i.e C header files generated from the Java 'java.lang' library which
are needed for the vm).
2) The build system needs to work with different architectures
(msp430, msp430x, avr, arm, x86), platforms (contiki, tinyOS, posix,
'bare metal'), and combinations of those.
3) The Java code is currently linked into final .elf as a binary blob.
The way I build on Contiki is by obtaining a contiki-[platform].a and
contiki-[architecture]-main.o by building the hello world example for
the target platform. Then I copy these files into the Darjeeling build
system which then takes care of the rest and produces the final
executable.
Number three is something I want to fix by writing an ISP interface,
to make it possible to access the program flash of a chip as a block
device, and write a tiny file system on top. This would make
over-the-air reprogramming easier, but it would also mean that you
don't have to re-link the VM to change the Java code, so that we can
just distribute pre-linked binaries for a given target.
> Neat! Niels, where are you located?
Delft, the Netherlands.
- Niels
More information about the mc1322x
mailing list