ESP8266 Developer Zone The Official ESP8266 Forum 2015-09-23T09:38:08+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=1138 2015-09-23T09:38:08+08:00 2015-09-23T09:38:08+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1138&p=3809#p3809 <![CDATA[Re: SDK 1.4 issue os_zalloc]]> Statistics: Posted by tve — Wed Sep 23, 2015 9:38 am


]]>
2015-09-23T00:05:29+08:00 2015-09-23T00:05:29+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1138&p=3808#p3808 <![CDATA[Re: SDK 1.4 issue os_zalloc]]>
This is actually a good thing, because improperly prototyped function calls can cause crashed and other unpredictable behaviour.

Statistics: Posted by eriksl — Wed Sep 23, 2015 12:05 am


]]>
2015-09-22T03:07:28+08:00 2015-09-22T03:07:28+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1138&p=3791#p3791 <![CDATA[Re: SDK 1.4 issue os_zalloc]]>
I'd suggest including mem.h and removing any previously manually defined definitions of os_<memory> functions that you may have coded.

Neil

Statistics: Posted by kolban — Tue Sep 22, 2015 3:07 am


]]>
2015-09-22T02:30:23+08:00 2015-09-22T02:30:23+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1138&p=3789#p3789 <![CDATA[SDK 1.4 issue os_zalloc]]>
Up to now, various SDKs have been drop-in and recompile - this time with 1.4 I get an error when compiling this (which sadly I did not write so I don't want to mess it up).


void ICACHE_FLASH_ATTR QUEUE_Init(QUEUE *queue, int bufferSize)
{
queue->buf = (uint8_t*)os_zalloc(bufferSize);
RINGBUF_Init(&queue->rb, queue->buf, bufferSize);
}


mqtt/queue.c:42:2: error: too many arguments to function 'pvPortZalloc'
queue->buf = (uint8_t*)os_zalloc(bufferSize);
^

Statistics: Posted by scargill — Tue Sep 22, 2015 2:30 am


]]>