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
Solved! Go to Solution.
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
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