Other Parts Discussed in Thread: UNIFLASH
Tool/software: Code Composer Studio
Hi,
while trying to reduce the power consumption of my MSP430F2012 microcontroller, I tried to use the 32kHz ACLK clock as system clock (MCLK). After flashing the corresponding code to the device, I cannot access it anymore. This includes flash operations with Code Composer Studio as well as with the UniFlash tool (this tool cannot even automatically detect the connected device).
Some detailed information:
- I'm using the MSP-EXP430G2 launchpad with the 32kHz crystal soldered on it, Windows 10 (all updates installed), Code Composer Studio 9.1.0.00010 and UniFlash 5.1.0.2397
- I have bought 5 MSP430F2012 microcontrollers, 2 of them have the described problem. I have not flashed the code to the other 3, so I am able to test the connection with these devices. Therefore, I can say, that there is no problem at any other place, because the 3 "good" microcontrollers work as expected.
- The code I used to modify the MCLK looks as follows:
DCOCTL = 0; BCSCTL1 = XT2OFF + DIVA_0; BCSCTL2 = SELM_3 + DIVM_0; volatile unsigned int i; do { IFG1 &= ~OFIFG; for(i = 0; i < 1000; i++){} // wait at least 50us => 800 cycles for 16MHz => round up to 1000 cycles! } while (IFG1 & OFIFG);
- The code I'm trying to flash now is the standard blink example from TI
While flashing this example to the broken microcontrollers, following error is returned by the CCS:
This message is followed by the Information "Unable to connect to the target".
I'm trying to solve this problem since several days, so I've already tried things that I found somewhere on this forum and somewhere else, but nothing worked until now. Things I've already tried:
- Updating all used tools, drivers, software, etc.
- Replacing available ressources like USB-Ports, Cables, microcontrollers, etc.
- Using the cloud tools - failed due to the longer existing and already known problem with the cloud agent that is described in this thread.
- Lowering the JTAG Clock speed (TCLK) as described here.
Can anyone help me to get back control over my microcontrollers?
Thank you in advance, best regards,
Franz