Part Number: TM4C1294NCPDT
Tool/software: Code Composer Studio
Hello! my name is Antonio Uriel and I'm from Mexico City, Mexico. I have a problem with the code in the code composer studio, this appears after I stop running the program
I made a simple program to flash a led that has the card that is the EK-TM4C1294 using the systickTimer I exposed my code, add the libraries including properties add tiva ware and driverlib.lib, I do not know if I miss add or something, I hope your prompt response is a bit urgent.
CODIGO:
#include <stdint.h>
#include <stdbool.h>
#include "inc/tm4c1294ncpdt.h"
#include "driverlib/sysctl.h"
#include "driverlib/gpio.h"
#include "inc/hw_memmap.h"
#include "driverlib/systick.h"
//VARIABLES GLOBALES
int estado=0;
//FUNCIONES GLOBALES
void DelaySysTick(int tiempo);
void main(void)
{
//PUERTO N
//Habilita el modulo GPIO N
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPION);
//Espera que el modulo GPIO N este listo
while(!SysCtlPeripheralReady(SYSCTL_PERIPH_GPION));
//Configuramos el puerto N 0 y 1 como salidas
GPIOPinTypeGPIOOutput(GPIO_PORTN_BASE,GPIO_INT_PIN_0|GPIO_INT_PIN_1);
//******************************************PROGRAMA PRINCIPAL***************************************************
while(true)
{
GPIOPinWrite(GPIO_PORTN_BASE,GPIO_INT_PIN_0|GPIO_INT_PIN_1,estado);
estado^=0x03;
DelaySysTick(16000000);
}
}
void DelaySysTick(int tiempo)
{
//Configuramos y habilitamos el Systick
SysTickPeriodSet(tiempo);
SysTickEnable();
while(SysTickValueGet()==0);
SysTickDisable();
}
