Hello,
I am a new TI product user.
I use a EK-LM4120XL rev B with LM4F120H5QR processor and I am on Code Compose Studio 5.5.0.
I would like to generate a reset with CCS such as pushing RESET button down.
Nothing happens and there is no signal on the oscilloscope.
Could someone please give me some helps ?
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "driverlib/sysctl.h"
#include "driverlib/gpio.h"
int main(void)
{
SysCtlClockSet(SYSCTL_SYSDIV_5|SYSCTL_USE_PLL|SYSCTL_XTAL_16MHZ|SYSCTL_OSC_MAIN);
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);
GPIOPinTypeGPIOOutput(GPIO_PORTA_BASE, GPIO_PIN_6);
GPIOPinWrite(GPIO_PORTA_BASE, GPIO_PIN_6, 0x00); // RESET
SysCtlDelay(2000000);
GPIOPinWrite(GPIO_PORTA_BASE, GPIO_PIN_6, 0xFF); // Stop RESET
SysCtlDelay(2000000);
}