ESP8266 Developer Zone The Official ESP8266 Forum 2015-06-24T10:21:46+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=636 2015-06-24T10:21:46+08:00 2015-06-24T10:21:46+08:00 https://bbs.espressif.com:443/viewtopic.php?t=636&p=2382#p2382 <![CDATA[Re: spi_flash functions and sntp]]>

I can neither write or read above 508KB using spi_flash_* functions.


Hi,

This problem may be because of this topic http://bbs.espressif.com/viewtopic.php?f=7&t=641

Thanks for your interest in ESP8266!

Statistics: Posted by ESP_Faye — Wed Jun 24, 2015 10:21 am


]]>
2015-06-22T02:26:26+08:00 2015-06-22T02:26:26+08:00 https://bbs.espressif.com:443/viewtopic.php?t=636&p=2333#p2333 <![CDATA[spi_flash functions and sntp]]>
a board with q25w16 flash /olimex/ , latest sdk 1.1.2 + disconnect patch.

static void ICACHE_FLASH_ATTR test_spi()
{
int addr = 0;
unsigned char buf[4096];

int rc;

while ((rc = spi_flash_read(addr, (uint32 *)buf, sizeof(buf))) == 0) {
os_printf("OK:%x\n", addr);
addr += SPI_FLASH_SEC_SIZE;
}
if (rc) {
os_printf("done at:%x with rc=%d\n", addr, rc);
}
}
results in:
..
...
OK:7f000
done at:80000 with rc=1

I can neither write or read above 508KB using spi_flash_* functions.

With esptool i can write and read the entire flash.

The flashed user1 is build with:
gen_appbin.py build/app.user1.out 2 0 0 5


----
another matter:

Please, change
sntp_get_current_timestamp() to return GMT time and if necessary add
sntp_get_current_timestamp_local() to return TZ aware time stamp.

Working internally with unix time not in GMT is asking for trouble.


--
Regards,
zaxl

Statistics: Posted by zaxl — Mon Jun 22, 2015 2:26 am


]]>