Other Parts Discussed in Thread: MSP430F5438A-EP
Problem of MSP430 on R&D project for product under industrialization process startup. The product I am working on is composed of a MSP430F5438A-EP and 1 external oscillator of 32.768Khz and 1 quartz 32MHz connected respectively to XIN and XT2IN and XT2OUT. We have 20 prototypes of this product and we noticed a bug that occurs randomly. In the code we are using TI software library to manage peripherals and initialize clocks etc. After investigating it seems that the CPU blocks after executing 2 functions (from ucs.c source file described in the snippet below). The library version used was updated in 2014. Do you have any idea why the MCU crashes at this step randomly. Is there an option on MSP430F5x to specify that we use an oscillator for XT1 and not a quartz (as it is on MSP430F2XX family). The toolchain to compile the code is IAR Embedded Workbench v5.40.1.50328. Thanks for your kind help.
Best regards. Mickael
UCS_turnOnLFXT1(UCS_XT1_DRIVE_2, UCS_XCAP_0)
UCS_initClockSignal(UCS_MCLK, UCS_XCAP_0UCS_XT2CLK_SELECT, 1)