How to specify path for partition table

Posts: 6
Joined: Tue Feb 11, 2020 5:00 pm

How to specify path for partition table

Postby bluefarmer » Mon Mar 23, 2020 2:36 pm


I've got a custom partition table that has some differences from the default single app one.
I've indicated that I'm using a custom partition table in the menuconfig and left the filename as "partitions.csv".
For now I've put the file in the project root but ideally I'd put it somewhere else.

When I run app from the root folder it tells me it can't find "partitions.csv".

Code: Select all

Traceback (most recent call last):
  File "/Users/bla/bla/myproject/esp-idf/components/partition_table/", line 346, in <module>
  File "/Users/bla/bla/myproject/esp-idf/components/partition_table/", line 315, in main
    target = ParttoolTarget(**target_args)
  File "/Users/bla/bla/myproject/esp-idf/components/partition_table/", line 97, in __init__
    with open(partition_table_file, "rb") as f:
IOError: [Errno 2] No such file or directory: 'partitions.csv'
With the help of some print statement in the python file it seems the default path it's looking at is the build folder. However, the build folder is not a stable location and it's not a place you'd normally commit to the repo. It'd be great if there was some way to specify the path for the CSV file as well as the filename. I'm using a CMake approach so something like "PARTITIONS" in the below snippet would be great for me.

Code: Select all


If this is already possible and I've missed it than please let me know.

Many thanks

Posts: 1
Joined: Wed Aug 26, 2020 5:18 am

Re: How to specify path for partition table

Postby mogens » Wed Aug 26, 2020 5:23 am


I'm having a similar problem. Was any solution found?

I'm using pure cmake and is compiling the sdk as library. I have tried setting PARTITION_TABLE_CSV_PATH in my top project cmake file without success.

Any suggestions to this?


Who is online

Users browsing this forum: Google [Bot] and 27 guests