Assert 0 with BSP for TWR_K60F120M & TWR_WIFI_AR4100

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Assert 0 with BSP for TWR_K60F120M & TWR_WIFI_AR4100

ソリューションへジャンプ
609件の閲覧回数
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.

タグ(3)
0 件の賞賛
返信
1 解決策
453件の閲覧回数
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 件の賞賛
返信
1 返信
454件の閲覧回数
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 件の賞賛
返信