Assert 0 with BSP for TWR_K60F120M & TWR_WIFI_AR4100

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Assert 0 with BSP for TWR_K60F120M & TWR_WIFI_AR4100

Jump to solution
474 Views
marcbunyard
Contributor IV

I have created a BSP for the TWR-K60F120M that includes the atheros_wifi interface, and I'm running into the following code in \mqx\source\io\enet\atheros_wifi\custom_src\hw_interface\cust_hw_api.c:

    if(NULL == pCustCxt->int_cxt){           

        A_ASSERT(0);

    }

pCustCxt->int_cxt is NULL, and I can't find where pCustCxt->int_cxt is suppose to be set.

0 Kudos
Reply
1 Solution
318 Views
marcbunyard
Contributor IV

Found the problem.  There were instructions in making of the BSP for the AR4100 to delete lines 256 -258 from this file.  I did so, but the lines had alread been deleted, and the line numbers landed on code that I needed.  Oops.

The lines to keep are:

    pins[0] = pParam->INT_PIN;
    pins[1] = GPIO_LIST_END;       
    pCustCxt->int_cxt = fopen(pParam->GPIO_DEVICE, (char_ptr)&pins);

View solution in original post

0 Kudos
Reply
1 Reply
319 Views
marcbunyard
Contributor IV

Found the problem.  There were instructions in making of the BSP for the AR4100 to delete lines 256 -258 from this file.  I did so, but the lines had alread been deleted, and the line numbers landed on code that I needed.  Oops.

The lines to keep are:

    pins[0] = pParam->INT_PIN;
    pins[1] = GPIO_LIST_END;       
    pCustCxt->int_cxt = fopen(pParam->GPIO_DEVICE, (char_ptr)&pins);

0 Kudos
Reply