1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

add SPIFS support to up to 16MB flash chips

This commit is contained in:
ficeto
2015-05-18 16:21:48 +03:00
parent 015a833bab
commit f7a42c8843
5 changed files with 55 additions and 0 deletions

View File

@ -23,6 +23,8 @@ typedef struct{
#define SPI_FLASH_SEC_SIZE 4096
extern SpiFlashChip * flashchip; // in ram ROM-BIOS
uint32 spi_flash_get_id(void);
SpiFlashOpResult spi_flash_erase_sector(uint16 sec);
SpiFlashOpResult spi_flash_write(uint32 des_addr, uint32 *src_addr, uint32 size);

View File

@ -0,0 +1,17 @@
/* Flash Split for 8M chips */
/* irom0 940KB */
/* eeprom 20KB */
/* spiffs 7MB */
MEMORY
{
dport0_0_seg : org = 0x3FF00000, len = 0x10
dram0_0_seg : org = 0x3FFE8000, len = 0x14000
iram1_0_seg : org = 0x40100000, len = 0x8000
irom0_0_seg : org = 0x40210000, len = 0xEB000
}
PROVIDE ( _SPIFFS_start = 0x40300000 );
PROVIDE ( _SPIFFS_end = 0x40A00000 );
INCLUDE "../ld/eagle.app.v6.common.ld"

View File

@ -0,0 +1,17 @@
/* Flash Split for 16M chips */
/* irom0 940KB */
/* eeprom 20KB */
/* spiffs 15MB */
MEMORY
{
dport0_0_seg : org = 0x3FF00000, len = 0x10
dram0_0_seg : org = 0x3FFE8000, len = 0x14000
iram1_0_seg : org = 0x40100000, len = 0x8000
irom0_0_seg : org = 0x40210000, len = 0xEB000
}
PROVIDE ( _SPIFFS_start = 0x40300000 );
PROVIDE ( _SPIFFS_end = 0x41200000 );
INCLUDE "../ld/eagle.app.v6.common.ld"