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 2-32. Open TCPIP Configuration
  2. This will open an empty TCP/IP Configuration window, as seen on the figure.
    Figure 2-33. Empty TCPIP Configuration Window
  3. Add TCP/IP Components to Configuration.
    1. Click the Basic Config button on the left panel.
      Figure 2-34. Basic Config
    2. Add TCPIP CORE component.
      Figure 2-35. Add TCPIP CORE Component
    3. Click the Data Link button on the left panel.
    4. Add G3ADPMAC component.
      Figure 2-37. Add G3ADPMAC Component
    5. Add a new Network Interface.
      Figure 2-38. Add Network Interface
    6. Link G3ADPMAC and Network Interface components.
    7. Click the Network button on the left panel and add IPv6, ICMPv6 and NDP components.
      Figure 2-40. Add Network Components
    8. Click the Transport button on the left panel and add UDP component.
      Figure 2-41. Add UDP Component
    9. Click the Overview button on the left panel and verify that all components are correctly added.
      Figure 2-42. 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 the TCP/IP STACK folder in Project Graph.
      Figure 2-43. Open TCPIP Stack Folder
    2. This opens the TCP/IP Components view. Double click the BASIC CONFIGURATION folder.
      Figure 2-44. Open Basic Configuration Folder
    3. Click the TCPIP CORE component, on Configuration Options set values to match the following figure.
      Note: Some of them are auto-configured when G3ADPMAC Component is linked to Network Interface.
      Figure 2-45. Configure TCPIP CORE
    4. Double click the DATA LINK LAYER folder.
    5. Click the NETCONFIG component, on Configuration Options set values to match the following figure.
      Note: Some of them are auto-configured when G3ADPMAC Component is linked to Network Interface.
      Figure 2-47. Configure NETCONFIG Instance
    6. Double click the NETWORK LAYER folder.
      Figure 2-48. Open Network Layer Folder
    7. IPv6 and NDP components are auto-configured, as seen on the figures.
      Figure 2-49. IPv6 Autoconfigured
      Figure 2-50. NDP Autoconfigured
    8. Double click the TRANSPORT LAYER folder.
      Figure 2-51. Open Transport Layer Folder
    9. Click the UDP component, on Configuration Options set Maximum number of Sockets to 1, as G3 does not use more.
      Note: Some of them are auto-configured when G3ADPMAC Component is linked to Network Interface.
      Figure 2-52. 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 2-53. Configure System Heap Size