-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Partition table size is documented as 0xC00, but is set to 0x1000 (IDFGH-8377) #9846
Comments
@axos88 the error message is misleading here, the actual reason why the partition can't start at 0x8c00 is that we don't support partitions which aren't aligned to SPI Flash erase sector size (0x1000). |
Ah thanks for updating the title. Yeah I can see why that would be a problem, but it indeed needs to throw a better error message, and it probably needs mention in the partition table documentation |
@axos88 hey there, |
Hi @harsha123-123!
Your partition table should not have any partition offsets (leave them empty). The tool will calculate the partition offsets based on the CONFIG_PARTITION_TABLE_OFFSET and the partition size. See the partition table example https://github.com/espressif/esp-idf/blob/master/components/partition_table/partitions_two_ota.csv |
Answers checklist.
IDF version.
master
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
No response
What is the expected behavior?
With the default partition table offset at 0x8000, and the partition table length of 0xC00, the offset of the first partition should be able to start at 0x8C00, as documented here: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/partition-tables.html
What is the actual behavior?
esp-idf/components/partition_table/gen_esp32part.py
Line 26 in af28c1f
Steps to reproduce.
Using any example project, modify the partition table so that the first partition starts at offset 0x8C00, and attempt to build
Build or installation Logs.
More Information.
Either the documentation needs to be updated, or the
esp-idf/components/partition_table/gen_esp32part.py
Line 26 in af28c1f
1K space is lost this way.
The text was updated successfully, but these errors were encountered: