LPCXpresso860-MAX FreeRTOS xPortSysTickHandler not triggered

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

LPCXpresso860-MAX FreeRTOS xPortSysTickHandler not triggered

Jump to solution
712 Views
JoeSanchez
Contributor II

Hi,

I created an RTOS project for LPCXpresso860-MAX with SDK 2.15 using FreeRTOS in VS Code.

Task creation and initialization was running ok but I immediately saw that my xTimer callback wasn't triggered, so I did more investigation and found out that vTaskDelay doesn't exit. It was at this point that a narrowed the issue to xTaskIncrementTick wasn't called because xPortSysTickHandler wasn't also called.

I did verify my FreeRTOSConfig.h has the define for xPortSysTickHandler routed to SysTick_Handler 

I even checked the SysTick Registers to verify that FreeRTOS configured the registers and that the counter is running. 

So at this point, I'm stumped as to why SysTick interrupt wasn't being triggered.

 

I have attached my VS code project, I hope someone can point out what I'm missing

0 Kudos
Reply
1 Solution
661 Views
JoeSanchez
Contributor II

I found the issue, i had the an FTM peripheral configured using the MCU Config Tool and wasn't aware that the peripheral init function generated by the tool enabled the FTM interrupt and immediately started the timer, but there was no interrupt handler defined for it, so it got stuck in void intDefaultHandler which is a while (1) loop

View solution in original post

0 Kudos
Reply
1 Reply
662 Views
JoeSanchez
Contributor II

I found the issue, i had the an FTM peripheral configured using the MCU Config Tool and wasn't aware that the peripheral init function generated by the tool enabled the FTM interrupt and immediately started the timer, but there was no interrupt handler defined for it, so it got stuck in void intDefaultHandler which is a while (1) loop

0 Kudos
Reply