Hi,
I am using the VMware image and I wanted to perform the update as
instructed by Steve.
I did:
cd ~/tinyos-main
svn update
cd /etc/apt/sources.list.d
sudo echo "deb http://tinyprod.net/repos/debian msp430-46 main" >>
tinyprod-debian.list
sudo apt-get update
sudo apt-get install msp430-46
Then, I tested it by compiling the Blink firmware and got about 200
lines of error messages. Here are the first few ones:
tiny2@ShimmerLive:~/tinyos-main/apps/Blink$ make shimmer2rmkdir -p
build/shimmer2r
compiling BlinkAppC to a shimmer2r binary
WARNING: Minimum recommended msp430-gcc version for this TinyOS
release is 4.6.3!!!
ncc -o build/shimmer2r/main.exe -Os -fnesc-separator=__ -Wall -Wshadow
-Wnesc-all -target=shimmer2r -fnesc-cfile=build/shimmer2r/app.c -board=
-DDEFINED_TOS_AM_GROUP=0x22 -DIDENT_APPNAME=\"BlinkAppC\"
-DIDENT_USERNAME=\"tiny2\" -DIDENT_HOSTNAME=\"ShimmerLive\"
-DIDENT_USERHASH=0xe8d0c5b7L -DIDENT_TIMESTAMP=0x4ffec110L
-DIDENT_UIDHASH=0x25356caaL BlinkAppC.nc -lm
In file included from
/home/tiny2/tinyos-main/tos/platforms/shimmer/chips/msp430/msp430hardware.h:46,
from
/home/tiny2/tinyos-main/tos/platforms/shimmer2r/hardware.h:39,
from
/home/tiny2/tinyos-main/tos/system/SchedulerBasicP.nc:52:
/opt/msp430/msp430/include/io.h:93:2: warning: #warning "Unknown arch!
Please check"
In file included from
/home/tiny2/tinyos-main/tos/system/TinySchedulerC.nc:52:
In component `McuSleepC':
/home/tiny2/tinyos-main/tos/chips/msp430/McuSleepC.nc: In function
`getPowerState':
/home/tiny2/tinyos-main/tos/chips/msp430/McuSleepC.nc:77: `TACCTL0'
undeclared (first use in this function)
/home/tiny2/tinyos-main/tos/chips/msp430/McuSleepC.nc:77: (Each
undeclared identifier is reported only once
/home/tiny2/tinyos-main/tos/chips/msp430/McuSleepC.nc:77: for each
function it appears in.)
What did I do wrong?
Thanks,
Franz
On 20.06.2012 18:00, [email protected] wrote:
Message: 1
Date: Tue, 19 Jun 2012 15:03:25 -0400
From: steve ayer <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [Shimmer-users] toolchain upgrade
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
all,
i just checked in a set of small updates/upgrades, some of which will be
critical to support the first major mspgcc toolchain upgrade in tinyos
in years. as of early this month, tinyos has decided to upgrade from
version 3.2.3 (circa late 2003) to 4.6.3.
anyway, a few of my commits are bugfixes, only revealed during compiler
testing. a few others are just cleanup; and one is just a really minor
new feature (Time adds mktime).
the short story is that anyone who updates their tinyos-main repository
will find their ability to compile applications broken.
i must apologize to anyone caught by this, as i wasn't paying attention
to the fact that another member of tinyos core was busily preparing the
codebase for the new compiler, which uses slightly different
designations for the msp430 variations; when the old compiler sees the
new designation, it chokes. (this designation lives in
tos/<shimmer_variant>/.platform).
anyway, the next time you update your tinyos-main:
cd ~/tinyos-main
svn update
you will see new code scattered over the tree (depends upon how *long*
you've been neglecting this), but current shimmer-specific changes are:
tos/platforms/shimmer/Time*.nc
/shimmerAnalogSetupP.nc
/chips/msp430/Msp430I2C*.nc
/chips/msp430/FastClockP.nc
/chips/sd/SDP.nc
support/make/shimmer*.target
/span.target
what you need to do:
if you upgrade the tree, you need to
1) install a new msp430-gcc toolchain, version 4.6.3, along with
upgrading nesc to v1.3.3. the virtual package msp430-46 will manage all
of them, or you can install everything but gdb if you're short on space.
packages for ubuntu, both 32- and 64-bit platforms, are hosted at
http://tinyprod.net/repos/debian
follow the instructions in README_46. ignore the now-outdated warnings
that the release is experimental; it has logged a great many hours of
testing since that was written.
if you need to upgrade, installing nesc is similar to the other packages:
sudo apt-get install nesc
*or*
2) make a temporary hack that will allow you to use the old compiler
until you upgrade. in your platform's .platform file, file the msp430
mmcu flag, and replace msp430f1611 with the old-style msp430x1611.
i strongly recommend that you not delay upgrading for too long. the new
compiler is a real upgrade.
if anyone runs into trouble, please post here, and you will receive help.
-steve
------------------------------
_______________________________________________
Shimmer-users mailing list
[email protected]
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
End of Shimmer-users Digest, Vol 63, Issue 9
********************************************
_______________________________________________
Shimmer-users mailing list
[email protected]
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users