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

[TW#26497] NVS Partition Generator Utility problem #2472

Closed
karawin opened this issue Sep 25, 2018 · 2 comments
Closed

[TW#26497] NVS Partition Generator Utility problem #2472

karawin opened this issue Sep 25, 2018 · 2 comments

Comments

@karawin
Copy link

karawin commented Sep 25, 2018

Environment

  • IDF version (git rev-parse --short HEAD to get the commit id.):
    3276a13
  • Development Env: [other]
  • Operating System: [Windows]
  • Power Supply: [USB|external 5V]

Problem Description

I created a nvs partition hardware of 0x1000
Partition table binary generated. Contents:
*******************************************************************************

# Espressif ESP32 Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,16K,
otadata,data,ota,0xd000,8K,
phy_init,data,phy,0xf000,4K,
ota_0,app,ota_0,0x10000,1792K,
ota_1,app,ota_1,0x1d0000,1792K,
device,64,0,0x390000,4K,
stations,65,0,0x391000,64K,
device1,66,0,0x3a1000,4K,
hardware,data,nvs,0x3a2000,4K,
*******************************************************************************

I created a csv file with
key,type,encoding,value
gpio_space,namespace,,
PIN_NUM_MISO,data,u8,19
PIN_NUM_MOSI,data,u8,23
PIN_NUM_CLK,data,u8,18

When i want to create a bin i have this error:
$ python C:/msys32/home/jp/esp/esp-idf/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py standard.csv standard.bin 4KB
Size parameter is insufficient.

With 8KB partition (0x2000) it works.
Why a 4KB size is not accepted?

@negativekelvin
Copy link
Contributor

Nvs needs at least 2 sectors

@Alvin1Zhang Alvin1Zhang changed the title NVS Partition Generator Utility problem [TW#26497] NVS Partition Generator Utility problem Sep 26, 2018
@karawin
Copy link
Author

karawin commented Sep 27, 2018

Not documented?

@igrr igrr closed this as completed in c44f154 Nov 28, 2018
igrr pushed a commit that referenced this issue Feb 28, 2019
(cherry picked from commit c44f154)
catalinio pushed a commit to catalinio/pycom-esp-idf that referenced this issue Jun 28, 2019
(cherry picked from commit c44f154)
espressif-bot pushed a commit to espressif/esp-idf-nvs-partition-gen that referenced this issue Nov 20, 2023
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

2 participants