enet interrupt problem with k60fx512 + freertos + lwip

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

enet interrupt problem with k60fx512 + freertos + lwip

1,854件の閲覧回数
superlee1212
Contributor I

dear sir/man:

  I have a k60fx512 project that uses freerots, lwip, ksdk1.2.0. The enet register settings have been checked many times, but the k60fx512 network interrupt never triggers. I don't know if there is a problem, but I have another project that doesn't use freertos, it works fine.
tools:
    Kds3.0
     Ksdk1.2.0
     Freertos: from the ksdk1.2.0 development library
     Lwip: from the ksdk1.2.0 development library
The attached picture is a screenshot of the enet register.
The library uses fsl_enet_hal.c and fsl_enet_drv.c
The ent receive interrupt is enabled, the receive buffer address is set, and the nvic receive interrupt and transmit interrupt are enabled.
Interrupt priority is set to 6

I really want to get some help.

0 件の賞賛
返信
1 返信

1,736件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi Chao:

It is hard to know the root cause of your issue since I can't reproduce your issue on my side.

From your description, it seems the interrupts is not enabled by FreeRTOS.

If you called FreeRTOS API, but not started the scheduler with function vTaskStartScheduler(), then the interrupts will be disabled. That is done deliberately to prevent interrupt service routines attempting to perform a context switch before the scheduler is running.

There are many LwIP freeRTOS & Baremetal demos under KSDK installation folder, you can refer to it.

Regards

Daniel

0 件の賞賛
返信