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.

TM4C1294NCPDT: CAN'T DEBUG MY PORTS

Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: UNIFLASH,

Hi community

So a couple of days ago I was testing a circuit with my tiva

But now, every time I upload a program to my micro, I can't read any port information, I've tried using the UNIFLASH software and the LMPROGRAMMER.

When I use the UNIFLASH software, I follow all the instructions, before powering up, I hold the reset button, select the appropiate option, and click on unlock....

It seems to start, but then it pops up a message "Module closed", so I guess it doesn't finish debugging the ports

On the other hand, when I use LMPROGRAMMER, I repeat the same process, hold the reset button before powering up, click the appropiate option, click on unlock, and to finish it says to complete a power cycle, not sure what that means.

I'm kinda frustrated, I don't know what else to do.

Please HELP!!

Thank you, community

  • Hi Diego,
    When the LM flash programmer says to power cycle it means to power off the device and then power up the device again. Please go to section 5.3 of this app note for instructions on the unlock procedure.
    Do you remember what you changes you did to your last program before the device was locked out?
  • I'm not sure what kind of changes I did. I was testing a circuit. I don't think I'd burnt the board. If that was the case, would it even power up?

    Where exactly can I find the guide for this program?

    Thank you for the answer, Charles

  • Hi Diego,
    Sorry, I forgot to provide the link to the app note that I mentioned earlier. Here it is. www.ti.com/.../spma075
  • Hi again Charles.

    Is it strictly neccessary to declare the ports to read them?

    I did the all the steps you told me to read in the guide, and uploaded this code:

    #include<stdint.h>
    #include<stdbool.h>
    #include"inc/tm4c1294ncpdt.h"

    int main(void)
    {
    SYSCTL_RCGCGPIO_R=0X0033;
    GPIO_PORTA_AHB_DEN_R=0X03;
    GPIO_PORTB_AHB_DEN_R=0X03;
    GPIO_PORTE_AHB_DEN_R=0X03;
    GPIO_PORTF_AHB_DEN_R=0X03;
    GPIO_PORTA_AHB_DIR_R=0X03;
    GPIO_PORTB_AHB_DIR_R=0X03;
    GPIO_PORTE_AHB_DIR_R=0X03;
    GPIO_PORTF_AHB_DIR_R=0X03;
    GPIO_PORTA_AHB_DATA_R=0X00;
    GPIO_PORTB_AHB_DATA_R=0X00;
    GPIO_PORTE_AHB_DATA_R=0X00;
    GPIO_PORTF_AHB_DATA_R=0X00;
    while(1){

    }
    return 0;
    }

    I tried to read the data in the specified ports and it shows me the appropiate information for the ports I declared. The other ports seem to be blocked. Is that normal?

    Thanks, Charles
  • Hi Diego,
    Is this a new question or continuation of your original question? Earlier in your post you were having problem connecting to the device and you were trying to unlock the device using LM flash programmer. Did this issue get resolved? Can you connect to the device and run some programs?

    If this is a new question you should open a new thread. I don't understand what you meant that other ports are blocked. What ports are you talking about. Please be specific when you ask questions in a new thread. I will close this thread for now if you are asking new questions. If your question is related to your original post about not able to connect to the device then you can just reply back here.

    Second thing is that you are using DRM (direct register manipulation) style of coding without using the TivaWare. Normally we don't support this style of coding. Please refer to #4 in the FAQ guide. e2e.ti.com/.../695568