On the surface it doesn’t make sense and the whole thing isĬonfusing. How is that going to work with FreeRTOS and using xTaskCreate() and trying to communicate using a queue or task notify between the two. If I am reading the lwip/Xilinx library correctly, that appears to be a wrapper for pthread create(). The very first thing I notice is that lwip says to create its threads using a sys threadnew() call. I understand I will need to limit my interaction with lwip to a single thread and use FreeRTOS to communicate with the thread. It seems that in order to use the RAW API I have to define my lwip with NO_SYS even though I am running with FreeRTOS. I would seem a better design to invoke the receiverįrom the DMA ISR (or use a task notification / semaphore) so it is interrupt / DMA driven. Show a simple mainloop design that would appear to chew up 100% CPU in a tight loop polling for packets to process. I planned on running the lwip it its own thread. Lwip says to use the RAW API for high performance TCP which I want to do. I am using the FreeRTOS 8.2.3 and LWIP1.4.1 that comes with Vivado (came with my Zybo trainer board). I am trying to come up to speed with this environment and have confused myself.
0 Comments
Leave a Reply. |