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.
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