I'm using an MSP430 chip with 10K of RAM. If I go above 5k of RAM usage, it's never capable of making it to main(). The init code calls __data20_memzero
to clear out the used RAM space.
It look like it increments through memory and clears bytes till R14=R12. R14 is 0x34B4. But the max value of R12 is 0x2c86 before it reboots and starts over again. I manually turned off the watchdog through the debugger, and it started running just fine. I can't see this as being normal. Any idea how to get around this problem?
#include <msp430.h>
as the other options were causing some linker problems. I think it's only required to define the values of WDTCTL, WDTPW, and WDTHOLD. – Breadroot