I am still quite a beginner in regards to LPC and MCUXpresso...
Currently I try to learn to work with a LPC55S69.
Where / How do I set up a Systick interrupt?
I have defined a handler, but it is never called. In the Clock Tool I have configured Core 0 Systick Clock to 1 MHz.
#include <stdio.h>
#include "board.h"
#include "peripherals.h"
#include "pin_mux.h"
#include "clock_config.h"
#include "LPC55S69_cm33_core0.h"
#include "fsl_debug_console.h"
/* TODO: insert other include files here. */
#include "fsl_gpio.h"
/* TODO: insert other definitions and declarations here. */
volatile uint32_t g_systickCounter = 1000000;/*
* @brief Application entry point.
*/void SysTick_Handler(void)
{
if (g_systickCounter != 0U)
{
}
}int main(void) {
......
Hi, Christoph,
As the following figure, you have to insert the (2) line if (SysTick_Config(SystemCoreClock / 1000U)), the line configures the interrupt cycle time and enable the interrupt.
The void SysTick_Handler(void) is defined in the startup_lpc55s69_cm33_core0.c
Hope it can help you
BR
XiangJun Rong