2.7 Adding and Configuring TCP/IP Stack to Project

  1. Open TCP/IP Configuration from the Plugins drop-down on the Project Graph window.
    Figure . Open TCPIP Configuration
    Open_TCPIP_Configuration
  2. This will open an empty TCP/IP Configuration window, as seen on the figure.
    Figure . Empty TCPIP Configuration Window
    Empty_TCPIP_Configuration_Window
  3. Add TCP/IP Components to Configuration.

    1. Click on Basic Config button on the left panel.
      Figure . Basic Config
      Basic_Config
    2. Add TCPIP CORE component.
      Figure . Add TCPIP CORE Component
      Add_TCPIP_CORE_Component
    3. Click on Data Link button on the left panel.
      Figure . Data Link
      Data_Link
    4. Add G3ADPMAC component.
      Figure . Add G3ADPMAC Component
      Add_G3ADPMAC_Component
    5. Add a new Network Interface.
      Figure . Add Network Interface
      Add_Network_Interface
    6. Link G3ADPMAC and Network Interface components.
      Figure . Link Components
      Link_Components
    7. Click on Network button on the left panel and add IPv6, ICMPv6 and NDP components.
      Figure . Add Network Components
      Add_Network_Components
    8. Click on Transport button on the left panel and add UDP component.
      Figure . Add UDP Component
      Add_UDP_Component
    9. Click on Overview button on the left panel and verify that all components are correctly added.
      Figure . Verify Components
      Verify_Components
    10. Close TCP/IP Configuration window.

  4. At this point, close MCC and re-open it again. This will auto configure some of the TCP/IP options during MCC start-up, since G3ADPMAC component is linked to it.

  5. Configure TCP/IP Components.

    1. Double-click on TCP/IP STACK Folder in Project Graph.
      Figure . Open TCPIP Stack Folder
      Open_TCPIP_Stack_Folder
    2. This opens the TCP/IP Components view. Double-click on BASIC CONFIGURATION folder.
      Figure . Open Basic Configuration Folder
      Open_Basic_Configuration_Folder
    3. Click on TCPIP CORE component, on Configuration Options set values to match the following figure (Note: some of them are autoconfigured when G3ADPMAC Component is linked to Network Interface):
      Figure . Configure TCPIP CORE
      Configure_TCPIP_CORE
    4. Double-click on DATA LINK LAYER folder.
      Figure . Open Data Link Layer Folder
      Open_Data_Link_layer_Folder
    5. Click on NETCONFIG component, on Configuration Options set values to match the following figure (Note: some of them are autoconfigured when G3ADPMAC Component is linked to Network Interface):
      Figure . Configure NETCONFIG Instance
      Configure_NETCONFIG_Instance
    6. Double-click on NETWORK LAYER folder.
      Figure . Open Network Layer Folder
      Open_Network_layer_Folder
    7. IPv6 and NDP components are autoconfigured, as seen on the figures.
      Figure . IPv6 Autoconfigured
      IPv6_Autoconfigured
      Figure . NDP Autoconfigured
      NDP_Autoconfigured
    8. Double-click on TRANSPORT LAYER folder.
      Figure . Open Transport Layer Folder
      Open_Transport_layer_Folder
    9. Click on UDP component, on Configuration Options set Maximum number of Sockets to 1, as G3 does not use more. (Note: some of them are autoconfigured when G3ADPMAC Component is linked to Network Interface):
      Figure . UDP Configuration
      UDP_Configuration
  6. After TCP/IP Configuration, go back to Root view on Project Graph window and select System component. Configure the Heap Size as seen on the figure to allocate the memory that was previously configured for the TCP/IP Stack.
    Figure . Configure System Heap Size
    Configure_System_Heap_Size