• 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

VS ESP8266 LittleFS How to adjust flash allocations?

Q&A Forum › VS ESP8266 LittleFS How to adjust flash allocations?
0 Vote Up Vote Down
Selcuk Ozbayraktar asked 4 years ago

Hi colleagues,

I have just switched to VS Code platform from Arduino. In Arduino IDE I was able to decide allocations of Flash to program code and LittleFS/SPIFFS. What is the way to do that when using VS IDE?

I need that because I had error messages telling that, my code size does not fit into available Flash. SO I have to be able to manipulate these parameters when uploading data image.

Kind regards

2 Answers
0 Vote Up Vote Down
Steve Mercer answered 4 years ago

For ESP32 with 8MB Flash size I would use something like (In platformio.ini)

board_upload.flash_size = 8MB
board_upload.maximum_size = 8388608

I don’t have any 8266 boards so don’t know if that works for them. You should check out the PlatformIO documentation.
 

0 Vote Up Vote Down
Selcuk Ozbayraktar answered 4 years ago

Thanks a lot Steve, now I know where to search at least. I will dig into platformIO docs.
Kind regards,

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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

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

Copyright © 2013-2025 · 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.