But then the lwip documentation talks about RAW API mode is for standalone without an OS. I would think both of those would need to be set for the FreeRTOS layer to be present that you mention. But when I look at the lwipopt include file it has NO SYS set (and there is no mention of OSIS_FREERTOS). I would think the Xilinx SDK would have handled this. So far that is all I have done and the examples passes. I used the SDK to create a FreeRTOS project and I added in the lwip to the BSP settings and I generated the FreeRTOS hello world example that the SDK creates for me. With that task via the FreeRTOS stuff described in the book like task notifications, event groups, etc. I really just want to let lwip run in a single task and interact Or do I ignore the lwip docs and use xTaskCreate() for my single lwip task - perhaps systhread_new is only when using socket/netconn API. 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |