LPCXpresso860-MAX FreeRTOS xPortSysTickHandler not triggered

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPCXpresso860-MAX FreeRTOS xPortSysTickHandler not triggered

ソリューションへジャンプ
718件の閲覧回数
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 件の賞賛
返信
1 解決策
667件の閲覧回数
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 件の賞賛
返信
1 返信
668件の閲覧回数
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 件の賞賛
返信