LPC55S69 Systick Interrupt - A Beginner Question

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC55S69 Systick Interrupt - A Beginner Question

1,822 次查看
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) {

......

标签 (1)
0 项奖励
回复
1 回复

1,812 次查看
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