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.

Programming issue

Other Parts Discussed in Thread: TM4C123GH6PM

I tried to DEBUG in CCS but it come "FREQUENCY OUT OF RANGE" 

I tried different usb cable but again the same problem.

how to reset the board completely ?

  • Hi Haresh,

        Your MCU might have been locked. See, "JTAG Communication Failures" sticky post in this forum.

        Try LM Flash Programmers "Debug Port Unlock" Utility. It is at the "Other Utilities" tab.

    - kel

  • Hi, I tried a program below. I cant program again, Please help me out

    As i have given the delay as 64, i cant reprogram it and also i cant unlock the board

    #include <stdint.h>
    #include <stdbool.h>
    #include "utils/ustdlib.h"
    #include "inc/hw_types.h"
    #include "inc/hw_memmap.h"
    #include "driverlib/sysctl.h"
    #include "driverlib/pin_map.h"
    #include "driverlib/debug.h"
    #include "driverlib/hibernate.h"
    #include "driverlib/gpio.h"

    int main(void)
    {
        SysCtlClockSet(SYSCTL_SYSDIV_5|SYSCTL_USE_PLL|SYSCTL_XTAL_16MHZ|SYSCTL_OSC_MAIN);

        SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF);
        GPIOPinTypeGPIOOutput(GPIO_PORTF_BASE, GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3);
        GPIOPinWrite(GPIO_PORTF_BASE,GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3, 0x08);

        SysCtlPeripheralEnable(SYSCTL_PERIPH_HIBERNATE);
        HibernateEnableExpClk(SysCtlClockGet());
        HibernateGPIORetentionEnable();
        SysCtlDelay(64);
        HibernateWakeSet(HIBERNATE_WAKE_PIN);
        GPIOPinWrite(GPIO_PORTF_BASE,GPIO_PIN_3, 0x00);

        HibernateRequest();
        while(1)
        {
        }
    }

  • Hello Haresh

    The device is in Hibernate mode and for you to be able to get it back in functional mode, either the WAKE_n pin must be driven low or Kel's suggestion to run the unlocking sequence,.

    I have used the sequence for devices in Hibernate multiple times and it works...

    Regards

    Amit

  • Hi Kel,

    I tried to unlock the board using LM Flash Programmer , got a popup window showing Unlocked.

    But when I tried to program through CCS, the board is not programming.

  • Hi Haresh,

         Using LM Flash Programmer, load a simpler program like blinky and see if it works.

         What Tiva kit are you using?

    - kel

  • Kel,

    Im using TM4C123GH6PM. Kel i programmed with blinky, its working fine. Thanks a lot for ur help