This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3120: Unknown NETAPP event id

Part Number: CC3120

Hi, following starting up the CC3120, I am receiving a NetApp event.  The ID code associated with the event is 0x101820.  Please could you let me know what this event ID means?

  • HI Bob,

    The parameter is passed like: void SimpleLinkNetAppEventHandler(SlNetAppEvent_t *pNetAppEvent)

    So interpret this as
    typedef struct
    {
    _u32 Id;
    SlNetAppEventData_u Data;
    }SlNetAppEvent_t;

    The member Id should not be larger than 13,

    Data is interpreted as follows:

    typedef union
    {
    SlIpV4AcquiredAsync_t IpAcquiredV4; /* SL_NETAPP_EVENT_IPV4_ACQUIRED */
    SlIpV6AcquiredAsync_t IpAcquiredV6; /* SL_NETAPP_EVENT_IPV6_ACQUIRED */
    _u32 Sd; /* SL_SOCKET_TX_FAILED_EVENT */
    SlIpLeasedAsync_t IpLeased; /* SL_NETAPP_EVENT_DHCPV4_LEASED */
    SlIpReleasedAsync_t IpReleased; /* SL_NETAPP_EVENT_DHCPV4_RELEASED */
    SlIpV4Lost_t IpV4Lost; /* SL_NETAPP_EVENT_IPV4_LOST */
    SlDhcpIpAcquireTimeout_t DhcpIpAcquireTimeout; /* SL_NETAPP_DHCP_ACQUIRE_IPV4_TIMEOUT_EVENT */
    SlIpCollisionAsync_t IpCollision; /* SL_NETAPP_EVENT_IP_COLLISION */
    SlIpV6Lost_t IpV6Lost; /* SL_NETAPP_EVENT_IPV6_LOST */
    } SlNetAppEventData_u;


    -Aaron
  • Hi Aaron, Thanks for that. The problem is, the member Id isn't always in the range you indicate. Mostly we get reasonable values, e.g. SL_NETAPP_EVENT_IPV4_ACQUIRED, but occasionally we get values way outside the values defined in SlNetAppEventId_e.

    But sometimes we get 0x101820.
  • If that's the case, perhaps the serial interface between your MCU and the CC3120 is not reliably transferring data. Check the signal integrity of the physical interface, and the driver on your MCU side

    -Aaron