Hi,
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
spi_flash functions and sntp
Re: spi_flash functions and sntp
Postby ESP_Faye » Wed Jun 24, 2015 10:21 am
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!
Who is online
Users browsing this forum: No registered users and 101 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.