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.

Debugging RF430FRL152H with TI NFC only sample project

Hello,

I’m using the TI NFC sample project to develop my own adc measurement code. So my problem starts really in the beginning. If I just import  the project and want to see how the sample code works for later debugging at the main function (where I want to put my code later) the debugger already failed with the error “MSP430: Can't Single Step Target Program: Could not single step device” This happens exactly when the sample project jumps into DeviceInit() function. So I’m not able to debug my code later at the main function if the sample code is already buggy. What I’m doing wrong?

  • The DeviceInit() could have been better commented.  At this line:

    void DeviceInit(void)
    {
    P1SEL0 = 0x00;  //disables JTAG
    P1SEL1 = 0x00; //disables JTAG
    P1DIR &= ~0xEF;

    ******

    The above code from the project by default disables JTAG communication.  To keep it enabled replace the two above lines with these ones:

    void DeviceInit(void)
    {
    
    P1SEL0 |= 0xF0; //keep JTAG
    
    P1SEL1 |= 0xF0;  //keep JTAG
    
    P1DIR &= ~0xEF;

    ****

    Even though in the default configuration the JTAG is multiplexed with 4 GPIOs that configure the device, in the NFC only project they are not used.  So it is safe to use JTAG.

  • Thank you very much. It works now!