Skip to content

Maximum sketch size incorrect on "ESP32 Wrover Kit (all versions)" #8026

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
ghmpi opened this issue Apr 4, 2023 · 5 comments · Fixed by #8078
Closed
1 task done

Maximum sketch size incorrect on "ESP32 Wrover Kit (all versions)" #8026

ghmpi opened this issue Apr 4, 2023 · 5 comments · Fixed by #8078

Comments

@ghmpi
Copy link

ghmpi commented Apr 4, 2023

Board

esp32-devkitc-ve

Device Description

plain module

Hardware Configuration

any

Version

v2.0.6

IDE Name

Arduino IDE

Operating System

Windows 7

Flash frequency

80mhz

PSRAM enabled

yes

Upload speed

921600

Description

Hello

I am having a problem with the sketch size. The sketch size maximum calculation for 8MB seems to be incorrect and will not allow me to have a sketch size about 1.3MB.

I am using an original devkitC board, I've selected "ESP32 Wrover Kit (all versions)"

When selecting 8MB with spiffs (3.0MB APP / 1.5MB SPIFFS)
I get the following output, which seesm to be 1.3MB app, NOT 3.0MB as selected
Sketch uses 1199625 bytes (91%) of program storage space. Maximum is 1310720 bytes.

When selecting Minimal spiffs ((1.9MB APP / 190KB SPIFFS)
It seems correct..
Sketch uses 1199625 bytes (61%) of program storage space. Maximum is 1966080 bytes.

Arduino version if 1.8.19

Is this a bug? Can anyone help?

Thank you

Regards,
-Moses

Sketch

any code will work

Debug Message

Sketch uses 1199625 bytes (91%) of program storage space. Maximum is 1310720 bytes.

Other Steps to Reproduce

none

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@ghmpi ghmpi added the Status: Awaiting triage Issue is waiting for triage label Apr 4, 2023
@atanisoft
Copy link
Collaborator

Can you try editing the boards.txt file to add this line:

esp32wrover.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336

just below:

esp32wrover.menu.PartitionScheme.default_8MB.build.partitions=default_8MB

If that fixes it we can get a PR to add the missing upload size property.

@ghmpi
Copy link
Author

ghmpi commented Apr 4, 2023

Atanisoft,

Thank you for the quick reply.

I added the line you suggested to the boards.txt file, but replaced esp32wrover with esp32wroverkit and it worked! Now I get the correct maximum sketch size.

Sketch uses 1200777 bytes (35%) of program storage space. Maximum is 3342336 bytes.

Thank you!

Regards,
-Moses

@atanisoft
Copy link
Collaborator

@P-R-O-C-H-Y Can you review boards.txt (after the update PR is merged) to confirm that partition sizes are included for all boards?

@mrengineer7777 mrengineer7777 added Status: Needs investigation We need to do some research before taking next steps on this issue Type: 3rd party Boards and removed Status: Awaiting triage Issue is waiting for triage labels Apr 9, 2023
@VojtechBartoska
Copy link
Contributor

Any chance you take a look on this @P-R-O-C-H-Y ?

@P-R-O-C-H-Y
Copy link
Member

@VojtechBartoska Will do tomorrow :) as CI stuff should be done.

@P-R-O-C-H-Y P-R-O-C-H-Y added Status: Review needed Issue or PR is awaiting review and removed Status: Needs investigation We need to do some research before taking next steps on this issue labels Apr 14, 2023
@VojtechBartoska VojtechBartoska added Status: Solved and removed Status: Review needed Issue or PR is awaiting review labels Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants