This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Thanks for the reply Bruce.
If we have TI program our chips before they are sent to manufacturer, we should be able to avoid this issue then?
Hi George,
The chip should already have the calibration constants for the DCO stored in Flash from whatever supplier you get the chips themselves. As Bruce said, if the BSL is used to load the software through a warm start (the device jumps immediately to the program after the BSL without resetting the device) the device can remain in an unlocked state causing something to erroneously erase the entire Flash including the calibration data. It is recommended to load the program through the BSL with a cold start to prevent mistakenly erasing the calibration constants. More details can be found in the MSP430 FLash Device BSL User's Guide.
Also as Bruce said, if the calibration constants are erased, they can be re-initialized using msp430g2xx3_dco_flashcal.c with a clock reference.
Are you having the boards initially programmed by your board manufacturer. Can you check with them that they are initially programming the chips through the BSL cold start?
Thanks,
Ryan
**Attention** This is a public forum