Hi Experts,
I'm trying to get data from HTTP server and I succedded in that but after getting the data when I try to use following statement I'm getting configASSERT.
ret = sl_NetCfgGet(SL_NETCFG_MAC_ADDRESS_GET, 0, &macAddressLen, &macAddress[0]);
//SlSecParams_t secParams;
SlWlanSecParams_t secParams; // added by Manish
secParams.Key = (signed char *)pstWiFi->Sta_Profile.Key;
secParams.KeyLen = pstWiFi->Sta_Profile.Key_Length;
secParams.Type = pstWiFi->Sta_Profile.Sec_Type;
sl_WlanProfileAdd((_i8*)pstWiFi->Sta_Profile.SSID,
pstWiFi->Sta_Profile.SSID_Length,
macAddress,&secParams,0,7/*WiFi priority*/,0);
configASSERT error is from port.c file.
void vPortEnterCritical( void )
{
portDISABLE_INTERRUPTS();
uxCriticalNesting++;
/* This is not the interrupt safe version of the enter critical function so
assert() if it is being called from an interrupt context. Only API
functions that end in "FromISR" can be used in an interrupt. Only assert if
the critical nesting count is 1 to protect against recursive calls if the
assert function also uses a critical section. */
if( uxCriticalNesting == 1 )
{
configASSERT( ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0 ); // Gets stuck here
}
}
Can anyone please let me know what is error in that. I have verified this with network_terminal demo code it works fine there but not in my application. Please help me in this matter.