Another uniarch update.
One minor patch for TinyOS folks using tmotes, involving corrupted registers
in a shift operation (the DCO gets misconfigured).
One middling patch addressing SF 3237009: default task for main. Following
past discussions ensures that the main routine is placed in section .init9,
and the CRT code falls into it then back out again. The "hosted" attribute
can be used to eliminate this behavior; I've posted an example program to
the tracker ticket.
One huge (in effect) patch addressing SF 3207700: make watchdog optional.
Yes, from this point on, the watchdog timer is NOT turned off during CRT.
The CRT code loads r5 with the value to be used for resetting the watchdog,
and pokes the watchdog on each iteration of each loop. (I've reviewed the
manuals and am fairly convinced the reset value will work on all chips,
whether it's a WDT, WDT+, or WDT_A or on the 3xx chips that require
16-bit reads of WDTCTL. If you find I'm mistaken, open a tracker ticket.)
NOTE: If you override any of the startup functions you may need to preserve
the r5 value, which you can do by declaring it as a global register variable,
thusly:
register unsigned int r5 __asm__("r5");
This will prevent that register from being allocated by the compiler within
that translation unit. If you call routines defined in other files, the
value might get corrupted. Someday the manual will get updated to describe
all this.
An example program has been attached to the tracker ticket.
Use -mdisable-watchdog to revert to the old behavior, or just add
#include <msp430.h>
to your file if it's not already there, and add:
WDTCTL = WDTPW + WDTHOLD; /* Stop WDT */
to the top of main(). TinyOS folks, put this in your PlatformP file for
Init.init (the telosb code needs it).
Let the "My board keeps rebooting!" complaints begin....
Peter
------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now! http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users