Hi All,
Have been working with a board I designed with the G2402. All was going well for a couple of weeks until this morning. Made some changes to my code - primarily added the following few lines to the source in main() -
P1SEL = 0x00;
P2SEL = 0x00;
P1SEL2 = 0x00;
P2SEL2 = 0x00;
P1REN = 0x00;
P2REN = 0x00;
P1DIR = 0xFF;
P2DIR = 0xFF;
P1OUT = 0x00;
P2OUT = 0x00;
Rebuilt project and downloaded using FET430UIF (JTAG 4 wire mode). Download was successful. Tried to run the code with some breakpoints; the debug session died on me (has never done this before; has been always very reliable in the past). I tried to restart a debug session with F11 and now I have started getting an error "MSP430: Error connecting to the target: Unknown device". The code before I added the above lines was -
P1REN = 0xFF;
P2REN = 0xFF;
P1DIR = 0xFF;
P2DIR = 0xFF;
I tried another board. The code downloads the first time; then the debug session dies; and after that the FET cannot communicate with my boards anymore. Have already destroyed two boards, it seems.
I have also tried two different FET430UIF modules. Same problem.
I would have thought that the FET would always be able to reset the G2402 over the JTAG. But somehow adding those few lines (P1SEL, P2SEL, P1SEL2, P2SEL2, and changing P1REN and P2REN to 0x00) kills the G2402 so that even the FET cannot reset it again.
I downloaded the elprotronic software and tried using it - it fails too. See attached screenshot.
Did the two lines that disable the pull up resistors kill the G2402? I have looked at all the I/O lines on the schematics and none of them should damage the G2402 just because the pull ups get disabled on the chip. Can someone give me some ideas to try to see if I can recover these two boards without having to replace the G2402? Thanks in advance.