-->
Page 2 of 32

Re: Spi flash expansion for esp8266

PostPosted: Tue Jan 06, 2015 11:23 am
by pvvx
16MegBytes W25Q128FVSG:
https://www.youtube.com/watch?v=s6z3ZW6T3WQ
SDK does not support large flash. Supports any flash is only in my web-server. Publication soon...

Re: Spi flash expansion for esp8266

PostPosted: Tue Jan 06, 2015 1:32 pm
by alonewolfx2
pvvx wrote:16MegBytes W25Q128FVSG:
https://www.youtube.com/watch?v=s6z3ZW6T3WQ
SDK does not support large flash. Supports any flash is only in my web-server. Publication soon...

I am waiting for this :) I am so excited :)

Re: Spi flash expansion for esp8266

PostPosted: Tue Jan 06, 2015 6:38 pm
by pvvx
SDK saves configuration at [end flash] - 0x3000..0x1000 bytes.
Changing size of the flash after boot -> will switch the address config stored SDK. :)
On the next boot, configs will be read from another area. :)
The result - not sets configs and setings WiFi :)

The simplest solution, can use calls() wifi_set + ...setings :
1) Restore the size of the Flash in 512kb
2) Run the calls() settings -> configs on 0x7E000.
3) Change the size of a flash back and work next...
And so every time. :)

#include "spi_flash.h"
extern SpiFlashChip * flashchip;

if(flashchip->deviceId == 0x00newid) flashchip->chip_size = 0x???00000;
else flashchip->chip_size = 0x0080000;


Works with 16MB changing flashchip-> chip_size:
SpiFlashOpResult spi_flash_erase_sector(uint16 sec);
SpiFlashOpResult spi_flash_write(uint32 des_addr, uint32 *src_addr, uint32 size);
SpiFlashOpResult spi_flash_read(uint32 src_addr, uint32 *des_addr, uint32 size);

Re: Spi flash expansion for esp8266

PostPosted: Thu Jan 08, 2015 6:50 pm
by pvvx
How to use Flash 512k...16M in bad SDK: