I Have a question concerning ethernet and the BlackFin 537. Is there example code or something similiar for sending and receving UDP-Packets WITHOUT the VDK, so just in C and without any Threadhandling?
Thanks so far!
Are you talking about the LwIP stack? If so, the answer in NO, the port available from ADI is meant for multi-threaded applications - so it uses VDK as the kernel to manage packet handling. It appears that the stack 'can' run as single-threaded also, as mentioned in its Wiki page. As for the VDK, if your intention is just for UDP data transfer, you just need to create a thread, and you can encapsulate the socket API calls within the relevant 'run' function.
Ok, thanks. So, would it be possible to develop an UDP Stack on my own with the ADI_ETHER_BF537 - functions? Or is there an example how to use the device manager for ethernet communication? As you can note I don't got it yet.
You can definitely write your own stack on top of the EMAC driver, but you need to be familiar with the ADI Device Driver/System Services approach. Since most applications require a Stack to communicate over the network, I really don't have an example code for EMAC to EMAC communication (perhaps someone here might have). Take a look at the VDSP POST example code, which is a rather simple code for the EMAC hardware:
...\VisualDSP 5.0\Blackfin\Examples\ADSP-BF537 EZ-Kit Lite\Power_On_Self_Test\Ethernet_test.c
Retrieving data ...