I've been successfully using the ATWINC1500 as an HTTP client for 6 months without issue using Atmel's standard provided library functions and an STM32F4. I just switched over to HTTPS and am still successfully sending data. However after about 6 hours of operation, a disconnect occurs and my code automatically attempts a reconnect but DNS lookup using gethostbyname() returns an error. I've tracked the error down to the following line in hif_send()
ret = nm_read_reg_with_ret(0x150400,(uint32 *)&dma_addr);
The nm_read_reg_with_ret function successfully queries the module and returns, but dma_addr = 0 which produces the error M2M_ERR_MEM_ALLOC when hif_send() returns. The only way to recover from this error is to reinitialize the wifi and start AP scan, etc. all over again.
Has anyone else experienced this problem?