Goodmorning,
I'm trying to use MSP430FR5739 and SempliciTI together because I would like to create an experimental low-power network where there is an AP (based on ez430-rf device) and four client devices (based on MSP430FR5730). So I follow a guide (http://processors.wiki.ti.com/index.php/SimpliciTI) and I flashed the examples sketch to the appropriate devices. But I encouter some problems...basically on the clients side. First of all, in the init routine (bsp_init) there is a do-while loop that never exit, then the association between a single client and the AP doesn't work. I suppose because my trick is not a good idea but the do-while loop acts as an infinite loop. Please, could you give me any advice or work around and make a good CS module initialization?
Here is the code that I cut and paste from examaples:
/* Initialize the CS module*/
CSCTL0_H = 0xA5; // Unlock registers
CSCTL1 = BSP_CONFIG_MSP430_CSCTL1; // Set DCO settings
CSCTL2 = SELA_0 + SELS_3 + SELM_3; // set ACLK = XT1; SMCLK/MCLK = DCO
CSCTL3 = BSP_CONFIG_MSP430_CSCTL3; // Se clock dividers
CSCTL4 |= XT1DRIVE_0;
CSCTL4 &= ~XT1OFF;
do
{
CSCTL5 &= ~XT1OFFG; // Clear XT1 fault flag
SFRIFG1 &= ~OFIFG;
}while (SFRIFG1&OFIFG); // Test oscillator fault flag
CSCTL0_H = 0x01; // Lock Registers
Thank you so much in advance!
Regards,
Seo