Hi,
The setup:
-Our own board with MSP430F5171.
-20MHz ceramic resonator.
-3.3V power supply.
-Spy-bi-wire programming and debug interface with MSP-FET430UIF.
-IAR 5.51.6 C compiler.
-Everything working perfectly both in Debug and Standalone mode except the "Strange behavior" described below.
The "Strange debugger behavior":
We configure the WDT with "WDTCTL = WDTPW | WDTSSEL__ACLK | WDTCNTCL | WDTIS__8192K;", compile and load the application to the MCU.
The debugger starts and halts on main() as expected, then we set a breakpoint somwhere in the code(anywhere after the init() routines) and hit RUN. The code runs perfectly, executing our clock, io, and peripherals init() routines then eventually reaches the breakpoint and stops the cpu. So far so good BUT, at this point all ios have been reset to high impendance inputs and the SYSRSTIV register shows 0x16(WDT timeout). What's very strange is that we can step out of the breakpoint and continue the execution as if everything is ok. We,re lost... Does anyone have an explanation?
Thanks