• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 do-it OTA

Q&A Forum › Category: ESP32 › ESP32 do-it OTA
0 Vote Up Vote Down
Richard Funnell asked 2 months ago

Hi, Can anyone help?  I am using an ESP32 do-it board, using PlatformIO, and I have nearly got to the max of the Flash memory 97%.     In the Arduino IDE you can configure it to use the OTA as extended Flash. I don’t know how to do the same in PlatformIO.

!!!Hi I think I have got this wrong! the memory in the esp32 is only 2mb? but uses another 2mb to re-program, I thought you can change the partition so I could use 4mb for my program, I am also using Spiffs in my program, so I do not want to change this….I see you can do this in Arduino, but I use PlatformIO and don’t know how to do it..

 

6 Answers
0 Vote Up Vote Down
Richard Funnell answered 2 months ago

Many thanks for any help

 

0 Vote Up Vote Down
Sara Santos Staff answered 2 months ago

Hi.
If you want to set a custom partition scheme, you need to create a new partition table (for example: custom_partition_table.csv). Then, in the plaformio.ini file, define that you want to use that partition table:

board_build.partitions = custom_partition_table.csv

Then, you actually need to create that file and place it in the root directory of your project.
To learn how to create your custom partition CSV file, search for “ESP32 create CSV partition table”

Here’s this link for a reference: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/partition-tables.html

Then you can define the space for the application, eeprom, spiffs, etc..

I hope this helps.

Regards,
Sara

0 Vote Up Vote Down
Richard Funnell answered 2 months ago

It seems I just need No OTA (Large APP) as in Arduino IDE.
Will check the link thank you
 
Richard

0 Vote Up Vote Down
Sara Santos Staff answered 2 months ago

Great.
Then, let us know if you need further help.
Regards,
Sara

0 Vote Up Vote Down
Richard Funnell answered 2 months ago

Well Sara, I have looked, looked again and can’t understand what to put in the csv file to achieve what I need.
I get this part : board_build.partitions = custom_partition_table.csv and where to put the file, and to create a csv file and put it in the  project folder, but reading the Link you sent has made me more confused as to what to put in it.
Sorry…

0 Vote Up Vote Down
Sara Santos Staff answered 1 month ago

You can see here examples of partition tables:

  • https://github.com/espressif/esp-idf/tree/master/components/partition_table

I think you want something like the partitions_singleapp_large.csv:

  • https://github.com/espressif/esp-idf/blob/master/components/partition_table/partitions_singleapp_large.csv

Regards, Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.