I thought with the last help from this forum that I had fixed the problem with my SysTick not firing, but I was mistaken.
So I used the example code to create a simple project to test it:
/**
* main.c
*/
#include <stdbool.h>
#include <stdint.h>
#include "driverlib/gpio.h"
#include "driverlib/interrupt.h"
#include "driverlib/sysctl.h"
#include "driverlib/systick.h"
void SysTickISR(void) {
volatile int i;
for(i=0; i<10; i++) {
i = i;
}
}
int main(void)
{
unsigned int SysClk = SysCtlClockFreqSet((SYSCTL_XTAL_20MHZ | SYSCTL_OSC_MAIN | SYSCTL_USE_OSC), 20000000);
SysTickPeriodSet(SysClk);
SysTickIntRegister(SysTickISR);
IntMasterEnable();
SysTickIntEnable();
SysTickEnable();
while(1) {}
}
This does not work. BTW, the example code is wrong as it doesn't have the SysTickIntRegister() command ! TivaWare_C_series_2_1_4_178.
Defective MPU chip??
Thanks, Doug