ESP32 custom partition table.

Ajinkya_777
Posts: 8
Joined: Tue Sep 15, 2020 4:42 am

ESP32 custom partition table.

Postby Ajinkya_777 » Tue Sep 15, 2020 5:15 am

Hi,

Currently I am facing problem to create custom partition in ESP32.
I have created the custom partition settings in munuconfig/partition/custom partition settings and sdkconfig i have saved.
I have created the custom_partition.csv file and kept it in the below path.
C:\Users\Akshata\Desktop\esp-idf\examples\get-started\hello_world\build\partition_table
as the documents have given the guidelines.

when i build my code i got this error

C:\Users\Akshata\Desktop\esp-idf\examples\get-started\hello_world>idf.py build
Note: You are using Python 3.7.3. Python 3 support is new, please report any problems you encounter. Search for 'Setting the Python Interpreter' in the ESP-IDF docs if you want to use Python 2.7.
Checking Python dependencies...
Python requirements from C:\Users\Akshata\Desktop\esp-idf\requirements.txt are satisfied.
Running ninja in directory C:\Users\Akshata\Desktop\esp-idf\examples\get-started\hello_world\build
Executing "ninja all"...
[0/1] Re-running CMake...
-- Building for target esp32
-- ccache will be used for faster builds
-- Building empty aws_iot component due to configuration
-- Component names: soc log heap xtensa-debug-module app_trace freertos vfs newlib esp_ringbuf driver esp_event ethernet mbedtls micro-ecc efuse bootloader_support partition_table app_update spi_flash nvs_flash lwip tcpip_adapter pthread smartconfig_ack wpa_supplicant espcoredump esp32 cxx asio jsmn aws_iot bootloader nimble bt coap console nghttp esp-tls esp_adc_cal tcp_transport esp_http_client esp_http_server esp_https_ota openssl esp_https_server esptool_py expat wear_levelling sdmmc fatfs freemodbus idf_test json libsodium mdns mqtt protobuf-c protocomm spiffs ulp unity wifi_provisioning main
-- Component paths: C:/Users/Akshata/Desktop/esp-idf/components/soc;C:/Users/Akshata/Desktop/esp-idf/components/log;C:/Users/Akshata/Desktop/esp-idf/components/heap;C:/Users/Akshata/Desktop/esp-idf/components/xtensa-debug-module;C:/Users/Akshata/Desktop/esp-idf/components/app_trace;C:/Users/Akshata/Desktop/esp-idf/components/freertos;C:/Users/Akshata/Desktop/esp-idf/components/vfs;C:/Users/Akshata/Desktop/esp-idf/components/newlib;C:/Users/Akshata/Desktop/esp-idf/components/esp_ringbuf;C:/Users/Akshata/Desktop/esp-idf/components/driver;C:/Users/Akshata/Desktop/esp-idf/components/esp_event;C:/Users/Akshata/Desktop/esp-idf/components/ethernet;C:/Users/Akshata/Desktop/esp-idf/components/mbedtls;C:/Users/Akshata/Desktop/esp-idf/components/micro-ecc;C:/Users/Akshata/Desktop/esp-idf/components/efuse;C:/Users/Akshata/Desktop/esp-idf/components/bootloader_support;C:/Users/Akshata/Desktop/esp-idf/components/partition_table;C:/Users/Akshata/Desktop/esp-idf/components/app_update;C:/Users/Akshata/Desktop/esp-idf/components/spi_flash;C:/Users/Akshata/Desktop/esp-idf/components/nvs_flash;C:/Users/Akshata/Desktop/esp-idf/components/lwip;C:/Users/Akshata/Desktop/esp-idf/components/tcpip_adapter;C:/Users/Akshata/Desktop/esp-idf/components/pthread;C:/Users/Akshata/Desktop/esp-idf/components/smartconfig_ack;C:/Users/Akshata/Desktop/esp-idf/components/wpa_supplicant;C:/Users/Akshata/Desktop/esp-idf/components/espcoredump;C:/Users/Akshata/Desktop/esp-idf/components/esp32;C:/Users/Akshata/Desktop/esp-idf/components/cxx;C:/Users/Akshata/Desktop/esp-idf/components/asio;C:/Users/Akshata/Desktop/esp-idf/components/jsmn;C:/Users/Akshata/Desktop/esp-idf/components/aws_iot;C:/Users/Akshata/Desktop/esp-idf/components/bootloader;C:/Users/Akshata/Desktop/esp-idf/components/nimble;C:/Users/Akshata/Desktop/esp-idf/components/bt;C:/Users/Akshata/Desktop/esp-idf/components/coap;C:/Users/Akshata/Desktop/esp-idf/components/console;C:/Users/Akshata/Desktop/esp-idf/components/nghttp;C:/Users/Akshata/Desktop/esp-idf/components/esp-tls;C:/Users/Akshata/Desktop/esp-idf/components/esp_adc_cal;C:/Users/Akshata/Desktop/esp-idf/components/tcp_transport;C:/Users/Akshata/Desktop/esp-idf/components/esp_http_client;C:/Users/Akshata/Desktop/esp-idf/components/esp_http_server;C:/Users/Akshata/Desktop/esp-idf/components/esp_https_ota;C:/Users/Akshata/Desktop/esp-idf/components/openssl;C:/Users/Akshata/Desktop/esp-idf/components/esp_https_server;C:/Users/Akshata/Desktop/esp-idf/components/esptool_py;C:/Users/Akshata/Desktop/esp-idf/components/expat;C:/Users/Akshata/Desktop/esp-idf/components/wear_levelling;C:/Users/Akshata/Desktop/esp-idf/components/sdmmc;C:/Users/Akshata/Desktop/esp-idf/components/fatfs;C:/Users/Akshata/Desktop/esp-idf/components/freemodbus;C:/Users/Akshata/Desktop/esp-idf/components/idf_test;C:/Users/Akshata/Desktop/esp-idf/components/json;C:/Users/Akshata/Desktop/esp-idf/components/libsodium;C:/Users/Akshata/Desktop/esp-idf/components/mdns;C:/Users/Akshata/Desktop/esp-idf/components/mqtt;C:/Users/Akshata/Desktop/esp-idf/components/protobuf-c;C:/Users/Akshata/Desktop/esp-idf/components/protocomm;C:/Users/Akshata/Desktop/esp-idf/components/spiffs;C:/Users/Akshata/Desktop/esp-idf/components/ulp;C:/Users/Akshata/Desktop/esp-idf/components/unity;C:/Users/Akshata/Desktop/esp-idf/components/wifi_provisioning;C:/Users/Akshata/Desktop/esp-idf/examples/get-started/hello_world/main
-- IDF_VER: v3.3.2
-- Project version: v3.3.2
CMake Warning at C:/Users/Akshata/Desktop/esp-idf/components/partition_table/project_include.cmake:13 (message):
Partition table CSV file
C:/Users/Akshata/Desktop/esp-idf/examples/get-started/hello_world/partitions.csv
not found. Change custom partition CSV path in menuconfig.
Call Stack (most recent call first):
C:/Users/Akshata/Desktop/esp-idf/tools/cmake/utilities.cmake:104 (include)
C:/Users/Akshata/Desktop/esp-idf/tools/cmake/idf_functions.cmake:401 (include_if_exists)
C:/Users/Akshata/Desktop/esp-idf/tools/cmake/project.cmake:173 (idf_import_components)
CMakeLists.txt:6 (project)


CMake Warning at C:/Users/Akshata/Desktop/esp-idf/components/partition_table/project_include.cmake:43 (message):
parttool.py execution failed (), problem with partition CSV file (see
above)
Call Stack (most recent call first):
C:/Users/Akshata/Desktop/esp-idf/components/partition_table/project_include.cmake:55 (get_partition_info)
C:/Users/Akshata/Desktop/esp-idf/tools/cmake/utilities.cmake:104 (include)
C:/Users/Akshata/Desktop/esp-idf/tools/cmake/idf_functions.cmake:401 (include_if_exists)
C:/Users/Akshata/Desktop/esp-idf/tools/cmake/project.cmake:173 (idf_import_components)
CMakeLists.txt:6 (project)


CMake Warning at C:/Users/Akshata/Desktop/esp-idf/components/partition_table/project_include.cmake:43 (message):
parttool.py execution failed (), problem with partition CSV file (see
above)
Call Stack (most recent call first):
C:/Users/Akshata/Desktop/esp-idf/components/partition_table/project_include.cmake:58 (get_partition_info)
C:/Users/Akshata/Desktop/esp-idf/tools/cmake/utilities.cmake:104 (include)
C:/Users/Akshata/Desktop/esp-idf/tools/cmake/idf_functions.cmake:401 (include_if_exists)
C:/Users/Akshata/Desktop/esp-idf/tools/cmake/project.cmake:173 (idf_import_components)
CMakeLists.txt:6 (project)


CMake Warning at C:/Users/Akshata/Desktop/esp-idf/components/partition_table/project_include.cmake:43 (message):
parttool.py execution failed (), problem with partition CSV file (see
above)
Call Stack (most recent call first):
C:/Users/Akshata/Desktop/esp-idf/components/partition_table/project_include.cmake:61 (get_partition_info)
C:/Users/Akshata/Desktop/esp-idf/tools/cmake/utilities.cmake:104 (include)
C:/Users/Akshata/Desktop/esp-idf/tools/cmake/idf_functions.cmake:401 (include_if_exists)
C:/Users/Akshata/Desktop/esp-idf/tools/cmake/project.cmake:173 (idf_import_components)
CMakeLists.txt:6 (project)


CMake Warning at C:/Users/Akshata/Desktop/esp-idf/components/partition_table/project_include.cmake:43 (message):
parttool.py execution failed (), problem with partition CSV file (see
above)
Call Stack (most recent call first):
C:/Users/Akshata/Desktop/esp-idf/components/partition_table/project_include.cmake:64 (get_partition_info)
C:/Users/Akshata/Desktop/esp-idf/tools/cmake/utilities.cmake:104 (include)
C:/Users/Akshata/Desktop/esp-idf/tools/cmake/idf_functions.cmake:401 (include_if_exists)
C:/Users/Akshata/Desktop/esp-idf/tools/cmake/project.cmake:173 (idf_import_components)
CMakeLists.txt:6 (project)


-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- Adding linker script C:/Users/Akshata/Desktop/esp-idf/examples/get-started/hello_world/build/esp-idf/esp32/esp32_out.ld
-- Adding linker script C:/Users/Akshata/Desktop/esp-idf/components/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/Akshata/Desktop/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Adding linker script C:/Users/Akshata/Desktop/esp-idf/components/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/Akshata/Desktop/esp-idf/components/esp32/ld/esp32.rom.spiram_incompatible_fns.ld
-- Building empty aws_iot component due to configuration
-- Component libraries:
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Akshata/Desktop/esp-idf/examples/get-started/hello_world/build
[215/672] cmd.exe /C "cd /D C:\Users\Akshata\Desktop\esp-idf\examples\get-started\hello_world...make\3.13.4\bin\cmake.exe -P C:/Users/Akshata/Desktop/esp-idf/tools/cmake/scripts/fail.cmake"
FAILED: esp-idf/partition_table/CMakeFiles/partition_table
cmd.exe /C "cd /D C:\Users\Akshata\Desktop\esp-idf\examples\get-started\hello_world\build\esp-idf\partition_table && C:\Users\Akshata\.espressif\tools\cmake\3.13.4\bin\cmake.exe -E echo "Partition table CSV C:/Users/Akshata/Desktop/esp-idf/examples/get-started/hello_world/partitions.csv does not exist." && C:\Users\Akshata\.espressif\tools\cmake\3.13.4\bin\cmake.exe -E echo "Either change partition table in menuconfig or create this input file." && C:\Users\Akshata\.espressif\tools\cmake\3.13.4\bin\cmake.exe -E touch C:/Users/Akshata/Desktop/esp-idf/examples/get-started/hello_world/build/CMakeCache.txt && C:\Users\Akshata\.espressif\tools\cmake\3.13.4\bin\cmake.exe -P C:/Users/Akshata/Desktop/esp-idf/tools/cmake/scripts/fail.cmake"
Partition table CSV C:/Users/Akshata/Desktop/esp-idf/examples/get-started/hello_world/partitions.csv does not exist.
Either change partition table in menuconfig or create this input file.
CMake Error at C:/Users/Akshata/Desktop/esp-idf/tools/cmake/scripts/fail.cmake:3 (message):
Failing the build (see errors on lines above)


[224/672] Building C object esp-idf/app_update/CMakeFiles/idf_component_app_update.dir/esp_app_desc.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1


i need help in this where I am going wrong whether in Path of csv file or any extra linking procedure which here is missing because CSV file not found at given position.

ESP_Sprite
Posts: 9725
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 custom partition table.

Postby ESP_Sprite » Tue Sep 15, 2020 9:30 am

Not sure where you got that path, but from the logs, the partition tool is looking for C:/Users/Akshata/Desktop/esp-idf/examples/get-started/hello_world/partitions.csv .

Ajinkya_777
Posts: 8
Joined: Tue Sep 15, 2020 4:42 am

Re: ESP32 custom partition table.

Postby Ajinkya_777 » Tue Sep 22, 2020 3:55 pm

ESP_Sprite wrote:
Tue Sep 15, 2020 9:30 am
Not sure where you got that path, but from the logs, the partition tool is looking for C:/Users/Akshata/Desktop/esp-idf/examples/get-started/hello_world/partitions.csv .
yes it is working fine with your guide.
Thank you so much.

I am facing one more big issue here when i use esp wifi code to connect to the given wifi this code is working fine as my esp32 is connecting to the given wifi here, but if i try to use blink program or any GPIO as output that code execution is working fine but no changes on GPIO as HIGH or LOW all are in some floating condition but no changes as code is written.
I am confused whether my ESP32 is crashed because my GPIO are not working or it is working anything wrong with my Blink code.

Thank you.

Wootsies
Posts: 6
Joined: Fri Sep 18, 2020 7:32 pm

Re: ESP32 custom partition table.

Postby Wootsies » Wed Sep 23, 2020 5:38 am

Could you provide some snippets of the code? Perhaps it is just me but I dont have the full picture.

Who is online

Users browsing this forum: No registered users and 63 guests