Skip to content

Feature Request : custom partitions.csv in sketch folder #2258

@luc-github

Description

@luc-github

Hi,
Sorry if this has been discussed before but I did not saw it

Now there are a lot boards and lot of features that affect partition definition: WIFI/BT/SPIFFS/FAT/OTA and of course flash size

So it is hard to list all possible partitions in arduino menu , sorry I do not use platformIO.

For example currently some board like 'esp32-gateway' has even no choice to select the partition kind - so no way to get it working with BT and WiFi and BT easily,
On my side I use different boards for different purpose and change manually default.csv each time I open a project is little bit hard

Would it be possible to put a custom partition.csv file in sketch directory in a partition subdirectory? this one would be taken ifcustom partition` is selected in menu, so it add only one menu on all boards
this would make the partition selection really flexible if default one do not fit the needs

I see 3 impacts (hope not missing some) :
1 - the max file upload size
this should be taken from app partition size (not sure how)

2 - the path in platform.txt
recipe.objcopy.eep.pattern={tools.gen_esp32part.cmd} -q "{runtime.platform.path}/tools/partitions/{build.partitions}.csv" "{build.path}/{build.project_name}.partitions.bin" to always use the csv present in {build.path}/{build.project_name}/partition/partition.csv so before need to copy the right one

3 - Impact on upload tool like mkspiffs and flashfatfs
no idea as I do not use them

Not sure it is easy to implement but gain would be big IMHO, including maintenance as no need to maintain lot of entries

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions