enet interrupt problem with k60fx512 + freertos + lwip

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

enet interrupt problem with k60fx512 + freertos + lwip

538 Views
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 Kudos
1 Reply

420 Views
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 Kudos