On 11.08.2011 12:36, aliko wrote:
> It seems that my controller is getting reseted by a watchdog during
> initialization of variables and calling of C++ constructors. I had have
> a similar problem in IAR and to solve it I've redefined
> __low_level_init() function. But I haven't found one in msp430gcc.
extern "C" __attribute__((naked, section(".init3"))) void __low_level_init()
{
WDTCTL = WDTPW + WDTHOLD;
}
--
Regards,
Sergey A. Borshch mailto: [email protected]
SB ELDI ltd. Riga, Latvia
------------------------------------------------------------------------------
FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
Subversion made easy with a complete admin console. Easy
to use, easy to manage, easy to install, easy to extend.
Get a Free download of the new open ALM Subversion platform now.
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users