Open
Description
Hi,
I'm trying to use 3.0.5 on a 512Kb ESP01. SDK 2.x works well.
I'm coming unstuck at the partition tables,( I would like the non-OTA version) and I believe below should work, however it doesn't.
I've read the doc https://github.com/espressif/ESP8266_NONOS_SDK/blob/master/documents/EN/%20Partition%20Table.md but it didn't help either.
Can someone please advise what I'm doing wrong here and how to get the board to boot with SDK 3.0.x
#define SPI_FLASH_SIZE_MAP 0
static const partition_item_t partition_table[] = {
{EAGLE_FLASH_BIN_ADDR, 0x00000, 0xB000},
{EAGLE_IROM0TEXT_BIN_ADDR, 0x10000, 0x40000}, // try 40000
{SYSTEM_PARTITION_RF_CAL, 0x7C000, 0x1000},
{SYSTEM_PARTITION_PHY_DATA, 0x7A000, 0x1000},
{SYSTEM_PARTITION_SYSTEM_PARAMETER, 0x7E000, 0x1000},
};
void ICACHE_FLASH_ATTR user_pre_init(void) {
if (!system_partition_table_regist(partition_table, sizeof(partition_table) / sizeof(partition_table[0]),
SPI_FLASH_SIZE_MAP)) {
os_printf("system_partition_table_regist fail\r\n");
while (1)
;
}
}
esptool.py" --before no_reset --after soft_reset --chip esp8266 --port "/dev/cu.usbserial-FTVB6JWH1" --baud 115200 write_flash 0x10000 /Users/apearson/dev/esp32/relay_board/.pio/build/esp01/firmware.bin.irom0text.bin 0x7c000 /Users/apearson/.platformio/packages/framework-esp8266-nonos-sdk/bin/esp_init_data_default.bin 0x7e000 /Users/apearson/.platformio/packages/framework-esp8266-nonos-sdk/bin/blank.bin 0x0
load 0x40100000, len 28948, room 16
tail 4
chksum 0x44
load 0x3ffe8000, len 2988, room 4
tail 8
chksum 0x08
load 0x3ffe8bb0, len 10992, room 0
tail 0
chksum 0x3c
csum 0x3c
emapg
map 0 err
system param partition error
boot not set
ota1 not set
ota2 not set
system_partition_table_regist fail
Metadata
Metadata
Assignees
Labels
No labels