Hi,
I have tried a program for Hibernation and now i cant program the board again.
I tried from wake pin but its not working.
"Frequency out of range" error im getting
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.
Hi,
I have tried a program for Hibernation and now i cant program the board again.
I tried from wake pin but its not working.
"Frequency out of range" error im getting
Hello Haresh,
Kel's answer is the solution to unlocking the device, but it would be interesting to know why it is not waking up from Hibernate.
Can you please share the code, which TM4C device, custom or EVM or LaunchPad?
Regards
Amit
Dear Amit,
I have given SysCtlDelay(64); , which make the board to go Hibernation soon.
#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 SysCtlDelay at the clock speed mentioned would be way to fast to be able to give you time to erase the flash program. My suggestion is to use a GPIO in input mode with pull down enabled and a while loop for checking if it is 1 and then looping in it till it does not become 0. This way if you need to stop the program from executing tie it to 3.3V via a 1K Resistor and power cycle the board, allowing debug capability;ity to be restored (mentioned it earlier as well).
Regards
Amit