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.

CCS Error when writing in P1DIR.

Other Parts Discussed in Thread: MSP430F2272

Hi Im using  Code Composer Studio Core Edition   Version: 4.0.2.01003, to program a MSP430F2272. 

It all worked well, until an error occurred while debugging via JTAG with de MSP USB-FET debuggin interface. The error occurs when y try to write de P1DIR (Port 1 direction register) of the microprocessor. 

The error details are:

MSP430: Trouble Reading Memory Block at 0x5fe on Page 0 of Length 0x2: Could not determine device state

 

When I comment the line that writes P1DIR, the debugging goes fine, so I think thats the problem.

I tried changed de uP but the error persists.

Does anyone know whats going on?

 

Thaks a lot

 

  • Hi Matias,

    I suspect you are trying to program and use what is a JTAG pin.  In other words ... you change the pin away from JTAG and therefore loose your debug connection.

    Which pins are you trying to change?  Please see the users guide

    http://www.ti.com/lit/ds/symlink/msp430f2272.pdf

    In particular see the below setup re pins 1.6 and 1.7.

    Please let me know if this explains things.

    Best Regards,
    Lisa

     

     

    P1.6/TA1/TDI/TCLK E3 37 35 I/O
    Test Data Input or Test Clock Input for programming and test
    General-purpose digital I/O pin / Timer_A, compare: OUT2 output
    P1.7/TA2/TDO/TDI(1) D2 38 36 I/O
    Test Data Output or Test Data Input for programming and test

    (1) TDO or TDI is selected via JTAG instruction.

     

     

  • Hi Lisa, thanks for your reply.

    I'm programming via the spy bi-wire, so the only pins I use are PIN1 and PIN7. So I dont think thats the problem.

    The error didn't appear the first time I run the debugger, so that's the rear thing. I could run the program many times, but suddenly this error appeared.

    Thank you!

    Matias

  • Hi Matias,


    I am at the same time trying to determine whether your post would be better dealt with in the MSP forum by the MSP430 team.  I can put your post there but first just wanted to ask a couple further questions.

    So this is not something repeatable?  Ie you could previously load and debug without issue?  Or should I understand your email that after loading this code you can not debug properly anymore?  Ie it is repeatable?

    Have you tried cleaning the project?  

    Best Regards,
    Lisa

  • Thaks Lisa,

    This issue didn't happen before. But since it happend today for the first  time, it always happens now (its repeatable). And I can not debbug any other aplication. I tried loading other applications (which worked), and I have the same problem, which didn't happen before today, so I really don't know what to do.

    Thank you for your effort.

    Matias

     

  • Hi Matias,

    did something change?  Did you change any hardware or connection?  I assume the project and software are the same.   Do you have another PC it was recently working on to go back and verify that maybe there was a change in the setup/environment?  Did a version of any tool change?

    How long were you using the software before?

    Regards,
    Lisa

  • No I really didn't change anything on purpuse. I'm working on the same PC I've always done, and with the same hardware. I think I rhould reinstall CCS in this computer or maybe change the PC to see what happens. It's really weird. 

    I will let you know whats going on.

    Thank you Lisa.

    Matias

  • Dear Lisa,

     

    Problem is solved, there was a short circuito betweet PIN38 (P1.7) and PIN7 (RST /NMI /SBWTDIO) . I really don't know why. But I cleaned it with some alcohol, and problem solved.

    Thank you very much.

  • Hi Matias,

    very glad to hear.   In this case I was not of much assistance, but all the best with the development.

    Best Regards,
    Lisa