# ESP32 "Compilation Failed Command maxBuffer size exceeded"

**URL:** <https://forum.xod.io/t/esp32-compilation-failed-command-maxbuffer-size-exceeded/3810>\
**Category:** Install/Upload Problems\
**Created:** [April 19, 2020, 4:55pm UTC](https://forum.xod.io/t/esp32-compilation-failed-command-maxbuffer-size-exceeded/3810 "2020-04-19T16:55:15Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![gadgit](https://avatars.discourse-cdn.com/v4/letter/g/76d3ee/32.png) [@gadgit](https://forum.xod.io/u/gadgit)\
**Post date:** [April 19, 2020, 4:55pm UTC](https://forum.xod.io/t/esp32-compilation-failed-command-maxbuffer-size-exceeded/3810/1 "2020-04-19T16:55:15Z")

</div>

Hello,

Really like XOD so far, although only just starting.

I am attempting to compile for the ESP32, but running in to an error which I can’t find anyone else has had yet. I’m on Windows 10, fresh install of XOD, added the ESP32 boards JSON to extra.txt, and successfully downlaoded and installed the board within XOD when prompted. I’m attempting to compile the simpliest of patches (e.g. ‘hello’ ‘booleans’ etc.), plus I’ve already had it working on an ESP8266 without any issues.

Hunting through the error messages I get, I can’t see any clear information about where to look for the problem. Hence, I’m here to see if anyone can help!

Screenshot and error message below.

 ![Annotation 2020-04-19 175404](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/c/c34321367db964f8d962ba7724823b574f4ade4f.png)

---

<div class="post-metadata">

**Author:** ![gadgit](https://avatars.discourse-cdn.com/v4/letter/g/76d3ee/32.png) [@gadgit](https://forum.xod.io/u/gadgit)\
**Post date:** [April 19, 2020, 4:56pm UTC](https://forum.xod.io/t/esp32-compilation-failed-command-maxbuffer-size-exceeded/3810/2 "2020-04-19T16:56:57Z")

</div>

End of the error message here:

IC:\Users\Scott\xod\ **packages** \packages\esp32\hardware\esp32\1.0.4/tools/sdk/include/fb\_gfx" -std=gnu++11 -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=maybe-uninitialized -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-missing-field-initializers -Wno-sign-compare -fno-rtti -MMD -c -DF\_CPU=240000000L -DARDUINO=10607 -DARDUINO\_ESP32\_DEV -DARDUINO\_ARCH\_ESP32 “-DARDUINO\_BOARD=“ESP32\_DEV”” "-DARDUINO\_VARIANT=“esp32"” -DESP32 -DCORE\_DEBUG\_LEVEL=0 “-IC:\Users\Scott\xod\ **packages** \packages\esp32\hardware\esp32\1.0.4\cores\esp32” “-IC:\Users\Scott\xod\ **packages** \packages\esp32\hardware\esp32\1.0.4\variants\esp32” “C:\Users\Scott\xod\ **packages** \packages\esp32\hardware\esp32\1.0.4\cores\esp32\MD5Builder.cpp” -o “C:\Users\Scott\AppData\Local\Temp\arduino-sketch-E810B247DB9BA2CC1985A303E91CF2A0\core\MD5Builder.cpp.o”  
Compilation failed  
Command maxBuffer size exceeded  
The generated C++ code contains errors. It can be due to a bad node implementation or if your board is not compatible with XOD runtime code. The original compiler error message is above. Fix C++ errors to continue. If you believe it is a bug, report the problem to XOD developers.

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [April 19, 2020, 5:21pm UTC](https://forum.xod.io/t/esp32-compilation-failed-command-maxbuffer-size-exceeded/3810/3 "2020-04-19T17:21:04Z")

</div>

Hi, this can be simulated without problem, if you load it on board you will not get visible results.

Now I am not sure if it is compatible with all ESP32, I do not have to test.

---

<div class="post-metadata">

**Author:** ![gadgit](https://avatars.discourse-cdn.com/v4/letter/g/76d3ee/32.png) [@gadgit](https://forum.xod.io/u/gadgit)\
**Post date:** [April 19, 2020, 5:44pm UTC](https://forum.xod.io/t/esp32-compilation-failed-command-maxbuffer-size-exceeded/3810/4 "2020-04-19T17:44:11Z")

</div>

Thanks - Yes, in this case, it would not show visible results, but it is not even compiling so that it downloads to the board at the moment.

---

<div class="post-metadata">

**Author:** ![kallen](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@kallen](https://forum.xod.io/u/kallen)\
**Post date:** [May 12, 2020, 2:24pm UTC](https://forum.xod.io/t/esp32-compilation-failed-command-maxbuffer-size-exceeded/3810/5 "2020-05-12T14:24:22Z")

</div>

I’m also new to XOD and have written only a few programs using the esp8266 and they all work well. However, I am having the same problem as listed above with the ESP32 board. The Compiler fails with message “Command maxBuffer size exceeded”.

I’m hoping this is a simple error of something I’m doing, I have been trying many different options and don’t know what to try next.

Can someone help me ?

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [May 12, 2020, 3:01pm UTC](https://forum.xod.io/t/esp32-compilation-failed-command-maxbuffer-size-exceeded/3810/6 "2020-05-12T15:01:09Z")

</div>

It probably means your program is too big to fit in memory of the selected Arduino model. We would need to see the full error message and maybe your program to be of much more help.

---

<div class="post-metadata">

**Author:** ![jsco48](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/jsco48/32/2854_2.png) [@jsco48](https://forum.xod.io/u/jsco48)\
**Post date:** [August 25, 2020, 6:27pm UTC](https://forum.xod.io/t/esp32-compilation-failed-command-maxbuffer-size-exceeded/3810/8 "2020-08-25T18:27:28Z")

</div>

I am using the DOIT ESP32 Devkit V1. Here is the failing message i get on sending blank data.  
Compilation failed  
Command maxBuffer size exceeded  
The generated C++ code contains errors. It can be due to a bad node implementation or if your board is not compatible with XOD runtime code. The original compiler error message is above. Fix C++ errors to continue. If you believe it is a bug, report the problem to XOD developers.  
Program works fine on my ESP-8266 as well as my Uno boards. I tried using every listing of esp32 drivers only to get the same error. I am a fairly new user. Looking forward to using it more.

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [August 26, 2020, 12:09am UTC](https://forum.xod.io/t/esp32-compilation-failed-command-maxbuffer-size-exceeded/3810/9 "2020-08-26T00:09:34Z")

</div>

I wouldn’t worry about buffer size until you’ve resolved the C++ errors. You will have to scroll back to see what the original error was. Later errors may or may not be be helpful since they may just be the compiler confused after the first error.

---

<div class="post-metadata">

**Author:** ![evgenykochetkov](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/evgenykochetkov/32/14_2.png) [@evgenykochetkov](https://forum.xod.io/u/evgenykochetkov)\
**Post date:** [September 14, 2020, 10:45am UTC](https://forum.xod.io/t/esp32-compilation-failed-command-maxbuffer-size-exceeded/3810/10 "2020-09-14T10:45:49Z")

</div>

Hello!

We recently released XOD v0.35, which fixes most cases of `maxBuffer size exceeded` problem. Could you check if upload to your board works fine now?

---

<div class="post-metadata">

**Author:** ![jsco48](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/jsco48/32/2854_2.png) [@jsco48](https://forum.xod.io/u/jsco48)\
**Post date:** [December 11, 2020, 3:47pm UTC](https://forum.xod.io/t/esp32-compilation-failed-command-maxbuffer-size-exceeded/3810/11 "2020-12-11T15:47:36Z")

</div>

Yes everything is working fine. Sorry for the late reply. Thank you for the Fix. 😄

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [January 19, 2021, 4:22pm UTC](https://forum.xod.io/t/esp32-compilation-failed-command-maxbuffer-size-exceeded/3810/12 "2021-01-19T16:22:11Z")

</div>

Closed on January 19, 2021, 4:22pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
