LPC55S69 Systick Interrupt - A Beginner Question

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC55S69 Systick Interrupt - A Beginner Question

1,119 Views
ChrisLei
Contributor I

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) {

......

Labels (1)
0 Kudos
Reply
1 Reply

1,109 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

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

xiangjun_rong_0-1640309504460.png