Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using NONOS_SDK 3.0.x with 512Kb - Partition Table / system param partition error #372

Open
alandpearson opened this issue Feb 20, 2023 · 1 comment

Comments

@alandpearson
Copy link

alandpearson commented Feb 20, 2023

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
@alandpearson
Copy link
Author

Looks similar to this issue (with no solution that I can see) #210

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant