+ Reply to Thread
Results 1 to 8 of 8

Thread: opc ua open62541 xmc4800

  1. #1
    Advanced Advanced Janet is on a distinguished road
    Join Date
    Feb 2019
    Posts
    54
    Points
    735

    opc ua open62541 xmc4800

    Hi,
    I'm implement an opc ua server on the xmc4800 automation board. I've tried to use the Matrikon SDK, but now i'm trying with the open62541 https://github.com/open62541/open62541.
    I've followed the instructions for the LWIP implementation, that include adding the following defines to the lwipopts.h file

    Code:
    #define LWIP_COMPAT_SOCKETS 0 
    #define LWIP_SOCKET 1 
    #define LWIP_DNS 0 
    #define SO_REUSE 1 
    #define LWIP_TIMEVAL_PRIVATE 1
    the NO_SYS define is set to 1.

    When I compile I get this error from the lwip library init.c file
    Code:
    #if ((LWIP_SOCKET || LWIP_NETCONN) && (NO_SYS==1))
      #error "If you want to use Sequential API, you have to define NO_SYS=0 in your lwipopts.h"
    #endif
    I need to use socket and I have to set NO_SYS = 1, so i don't know what to do.
    Do anyone has suggestions?

    Thank you

  2. #2

    Infineon Employee
    Infineon Employee
    jferreira will become famous soon enough
    Join Date
    Oct 2012
    Posts
    716
    Hi,

    See attachment (upcoming example for the next lwIP release) and as a reference https://open62541.org/doc/current/bu...#freertos-lwip
    You need to set NO_SYS to 0, to use the SOCKET interface see http://www.nongnu.org/lwip/2_1_x/gro...ts__nosys.html

    Regards,
    Jesus
    ?????
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  3. #3
    Advanced Advanced Janet is on a distinguished road
    Join Date
    Feb 2019
    Posts
    54
    Points
    735
    I've downloaded the projecty, but when i compile it stop at 30%, after build the task.c file, and goes no further. Is this a DAVE problem or is this project so heavy that the compilation may takes more than ten minutes?

  4. #4

    Infineon Employee
    Infineon Employee
    jferreira will become famous soon enough
    Join Date
    Oct 2012
    Posts
    716
    Hi,

    Yes, it will take longer than usual because open62541.c/.h are quite big files.

    Regards,
    Jesus
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  5. #5
    Advanced Advanced Janet is on a distinguished road
    Join Date
    Feb 2019
    Posts
    54
    Points
    735
    Hi,
    I've build the project and run it in the xmc4800 automation board, but I don't think the server is working. I'm not able to ping the board and I've made test with a client, but it can't find the server at the board ip.
    Am I missing somenthing?

  6. #6
    Advanced Advanced Janet is on a distinguished road
    Join Date
    Feb 2019
    Posts
    54
    Points
    735
    Hi,
    I've build the project and run it in the xmc4800 automation board, but I don't think the server is working. I'm not able to ping the board and I've made test with a client, but it can't find the server at the board ip.
    Am I missing somenthing?

  7. #7
    Advanced Advanced Janet is on a distinguished road
    Join Date
    Feb 2019
    Posts
    54
    Points
    735
    Nevermind, I've solved the problem. It was just the rx and tx ethercat defines in the main.c. I've set both to 4 and now everithing works fine

  8. #8
    Advanced Advanced Janet is on a distinguished road
    Join Date
    Feb 2019
    Posts
    54
    Points
    735
    How can I add variables to the address space? through UART, or maybe with segger_rtt?

+ Reply to Thread
Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.