Other Parts Discussed in Thread: REP430F, MSP430F5437, MSP430G2553, MSPBSL, MSP430F5529, MSP-EXP430F5529LP, MSP-EXP430FR6989, MSP430F5659, MSP-GANG
Tool/software: Code Composer Studio
Hi
I'm trying to creat a replicator from msp430fr6989 launchpad (host side) to ms430g2553 launchpad as a target.
I'm following the instructios from slau320z document and it's attached project slau320y.zip (in chapter 2).
From some reason the program get's trapped a this function, void SetVCoreUp (word level), LowLevelFunc430X.c .
The function call: SetVCoreUp (2);
void SetVCoreUp (word level)
{
// Open PMM registers for write access
PMMCTL0_H = 0xA5;
// Set SVS/SVM high side new level
SVSMHCTL = SVSHE + SVSHRVL0 * level + SVMHE + SVSMHRRL0 * level;
// Set SVM low side to new level
SVSMLCTL = SVSLE + SVMLE + SVSMLRRL0 * level;
// Wait till SVM is settled
while ((PMMIFG & SVSMLDLYIFG) == 0);
// Clear already set flags
PMMIFG &= ~(SVMLVLRIFG + SVMLIFG);
// Set VCore to new level
PMMCTL0_L = PMMCOREV0 * level;
// Wait till new level reached
if ((PMMIFG & SVMLIFG))
while ((PMMIFG & SVMLVLRIFG) == 0);
// Set SVS/SVM low side to new level
SVSMLCTL = SVSLE + SVSLRVL0 * level + SVMLE + SVSMLRRL0 * level;
// Lock PMM registers for write access
PMMCTL0_H = 0x00;
}
This is the loop in which the program get's trapped:
// Wait till SVM is settled
while ((PMMIFG & SVSMLDLYIFG) == 0);
Thanks in advance,
Avraham