Thanks Phil. I'll try that. In fact I'm switching back and forth from
T2 to T1, so my current solution is to use two separate .bashrc files
for T2 and T1. When working with T1 code, I use make tmote, then
source ~/T2.bashrc, then make tmote reinstall so I can still use the
new bsl.
As of the serial forwarder, the following is the error message after
the upgrade:
$ java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at net.tinyos.packet.BuildSource.makeSerial(BuildSource.java:360)
at net.tinyos.packet.BuildSource.makeArgsSerial(BuildSource.java:349)
at net.tinyos.packet.BuildSource.makePacketSource(BuildSource.java:147)
at net.tinyos.packet.BuildSource.makePhoenix(BuildSource.java:87)
at net.tinyos.sf.SFListen.run(SFListen.java:84)
Serial Forwarder Exited Normally
I thought it is the incorrect classpath specified in T2, but after
changing it back things remain the same.
Thanks,
- Dongyan
On 12/6/05, Philip Levis <[EMAIL PROTECTED]> wrote:
> On Mon, 2005-12-05 at 14:13 -0600, Dongyan Chen wrote:
> > Dear all,
> >
> > When switching back to Tinyos-1.x tree, I changed the environment
> > variables as instructed in
> > http://www.tinyos.net/dist-2.0.0/tinyos-2.0.0pre2/doc/html/upgrade-tinyos.html.
> > While my programs compile, I can't upload them to TMote. The following
> > is the error:
> >
> > $ make tmote reinstall
> > cp build/telosb/main.ihex build/telosb/main.ihex.out
> > found mote on COM5 (using bsl,auto)
> > installing telosb bootloader using bsl
> > msp430-bsl --telosb -c 4 -r -e -I -p
> > /opt/tinyos-1.x/tos/../beta/Deluge/Deluge/T
> > OSBoot/build/telosb/main.ihex
> > MSP430 Bootstrap Loader Version: 2.0
> >
> > USAGE: /opt/msp430/bin/msp430-bsl [options] [file]
> > Version: 2.0
> >
> > If "-" is specified as file the data is read from the stdinput.
> > A file ending with ".txt" is considered to be in TI-Text format,
> > '.a43' and '.hex' as IntelHex and all other filenames are
> > considered as ELF files.
> >
> > General options:
> > -h, --help Show this help screen.
> > ...
> >
> > I believe it's coz the msp430-bsl has been upgraded by T2 and the
> > options are changed. I can get by this with changing the environment
> > variables back to 2.0 version and do a make tmote reinstall, which
> > works. However, is there any cleverer way to do this?
>
> The 2.x install process replaces a few elements of the toolchain. E.g.,
> ncc has been moved out of the nesC compiler and into TinyOS (as it's
> what has some TinyOS-specific options).
>
> So switching back to 1.x require that you replace those changed tools
> with the 1.x versions. In the case of bsl, it's in 1.x/tools/src/mspgcc-
> pybsl. Just be sure to check that when you reinstall it, it's the one
> that the make system is calling (it's possible to get into a situation
> where you install the 1.x version, but in a different place so the make
> system continues to call the 2.x one).
>
> > I also found that the SerialForwarder stopped working after the
> > upgrade. Anyone has the same experience?
>
> How did it stop working?
>
> Phil
>
>
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help