# Custom partition table location

**URL:** <https://forums.freertos.org/t/custom-partition-table-location/9081>\
**Category:** AWS\
**Created:** [February 26, 2020, 10:16pm UTC](https://forums.freertos.org/t/custom-partition-table-location/9081 "2020-02-26T22:16:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![isnore](https://avatars.discourse-cdn.com/v4/letter/i/e19adc/32.png) [@isnore](https://forums.freertos.org/u/isnore)\
**Post date:** [February 26, 2020, 10:16pm UTC](https://forums.freertos.org/t/custom-partition-table-location/9081/1 "2020-02-26T22:16:46Z")

</div>

How do you specify a custom partition table location? Thanks!

---

<div class="post-metadata">

**Author:** ![ravibhagavandas](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/ravibhagavandas/32/1309_2.png) [@ravibhagavandas](https://forums.freertos.org/u/ravibhagavandas)\
**Post date:** [February 27, 2020, 12:38am UTC](https://forums.freertos.org/t/custom-partition-table-location/9081/2 "2020-02-27T00:38:07Z")

</div>

@isnore

Can you provide more details to help us better answer the question ? Did you mean flash partition table configuration ? This depends on each of the boards, so could you specify which board you are using ?

---

<div class="post-metadata">

**Author:** ![isnore](https://avatars.discourse-cdn.com/v4/letter/i/e19adc/32.png) [@isnore](https://forums.freertos.org/u/isnore)\
**Post date:** [February 27, 2020, 3:11pm UTC](https://forums.freertos.org/t/custom-partition-table-location/9081/3 "2020-02-27T15:11:01Z")

</div>

Yes I referring to the flash partition table.

**The board**  
ESP32

I know its currently loaded from the following directory:

```auto
./amazon-freertos/vendors/espressif/boards/esp32/aws_demos/partition-table.csv

```

However, I would like to load one from within my project.

**sdkconfig and menuconfig**  
As well, how could I do the same for the sdkconfig file?

1. Can we change the location of the sdkconfig?
2. Is it possible to get menuconfig to load the sdkconfig in the new location by default?

Thanks!

---

<div class="post-metadata">

**Author:** ![ravibhagavandas](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/ravibhagavandas/32/1309_2.png) [@ravibhagavandas](https://forums.freertos.org/u/ravibhagavandas)\
**Post date:** [February 27, 2020, 7:49pm UTC](https://forums.freertos.org/t/custom-partition-table-location/9081/4 "2020-02-27T19:49:53Z")

</div>

To load custom partition table for ESP2, you can run following from build folder:

`make menuconfig -> Select "Partition Table" -> Select "Custom Partition CSV file" -> Give the path of your CSV file -> Save the configuration`

Regarding sdkconfig and menuconfig:

Are you using CMake to build the project ? If so CMake will auto generate the sdkconfig in the build folder for you. It uses `vendors/espressif/boards/esp32/aws_demos/sdkconfig.defaults` file to generate the sdkconfig.

Is it necessary to change the location of sdkconfig if its autogenerated ?

---

<div class="post-metadata">

**Author:** ![isnore](https://avatars.discourse-cdn.com/v4/letter/i/e19adc/32.png) [@isnore](https://forums.freertos.org/u/isnore)\
**Post date:** [February 27, 2020, 8:06pm UTC](https://forums.freertos.org/t/custom-partition-table-location/9081/5 "2020-02-27T20:06:01Z")

</div>

Thanks for the help regarding the partition table 🙂

**sdkconfig**

1. So what’s the difference between the following?

```auto
vendors/espressif/boards/esp32/aws_demos/sdkconfig.defaults

```

vs

```auto
vendors/espressif/boards/esp32/aws_demos/sdkconfig

```

1. Yes I am using CMake and it does generate the sdkconfig but what if I want to change the location of both the files I mentioned in point number 1?

2. menuconfig doesn’t load the following sdkconfig

```auto
vendors/espressif/boards/esp32/aws_demos/sdkconfig

```

but loads the one present in the build directory. How do I change this if I end up specifying my own sdkconfig?

Thanks!

---

<div class="post-metadata">

**Author:** ![ravibhagavandas](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/ravibhagavandas/32/1309_2.png) [@ravibhagavandas](https://forums.freertos.org/u/ravibhagavandas)\
**Post date:** [February 27, 2020, 10:38pm UTC](https://forums.freertos.org/t/custom-partition-table-location/9081/6 "2020-02-27T22:38:20Z")

</div>

`vendors/espressif/boards/esp32/aws_demos/sdkconfig.defaults` file is where you store the default configuration which will be always used.

Since you are using CMake, `sdkconfig.defaults` will be used to generate an `sdkconfig` in build folder every time a new build folder is configured.

You can change the location of `sdkconfig.defaults` file by giving the path to CMake with argument as `-DIDF_SDKCONFIG_DEFAULTS=<path_to_your_sdkconfig_defaults>`

More details can be found [here](https://docs.aws.amazon.com/freertos/latest/userguide/getting_started_espressif.html#getting_started_espressif_cmake_project).

> _3. menuconfig doesn’t load the following sdkconfig but loads the one present in the build directory. How do I change this if I end up specifying my own sdkconfig?_  
> You don’t need to specify your own skdconfig as its generated always from sdkconfig.defaults.

---

<div class="post-metadata">

**Author:** ![rashed](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rashed/32/14_2.png) [@rashed](https://forums.freertos.org/u/rashed)\
**Post date:** [July 17, 2020, 8:24pm UTC](https://forums.freertos.org/t/custom-partition-table-location/9081/7 "2020-07-17T20:24:09Z")

</div>

Split this topic on July 17, 2020, 8:24pm UTC

2 posts were split to a new topic: [Converting 4MB demo partition table for 8MB ESP32-WROVER](https://forums.freertos.org/t/converting-4mb-demo-partition-table-for-8mb-esp32-wrover/10306)
