SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By Koenp
#196627
Hello all,

I've spend hours and hours to try to get the remote_monitoring.ino to work. The compiler quits with the following message:

Arduino: 1.6.12 (Windows 10), Board: "SparkFun ESP8266 Thing Dev, 80 MHz, 115200"

Sketch uses 437,813 bytes (100%) of program storage space. Maximum is 434,160 bytes.
Global variables use 51,920 bytes (63%) of dynamic memory, leaving 30,000 bytes for local variables. Maximum is 81,920 bytes.
processing.app.debug.RunnerException: Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.
at cc.arduino.Compiler.size(Compiler.java:335)
at cc.arduino.Compiler.build(Compiler.java:159)
at processing.app.SketchController.build(SketchController.java:641)
at processing.app.Editor$BuildHandler.run(Editor.java:1782)
at java.lang.Thread.run(Thread.java:745)
Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

I've searched the internet, but could not really find the same problem. Which I think is strange. I've deleted many println in the original source, but it remains too big. Also modified the boards.txt according to: https://forum.sparkfun.com/posting.php?mode=post&f=14
I've tested the board with some simple DTH22 applications, which went well.

Any help is appriciated.
By dana2048
#196686
I had this issue as well.

I shortened/deleted all the text in println commands.

Specifically, I deleted all the println commands in dht22.cpp and shortened all the println strings in remote_monitoring.ino.

This got me to:
Sketch uses 434113 bytes (99%) of program storage space. Maximum is 434160 bytes.
Global variables use 50788 bytes (61%) of dynamic memory, leaving 31132 bytes for local variables. Maximum is 81920 bytes.

However, when it launches I get the following in the Arduino Serial Monitor window:
Fatal exception 3(LoadStoreErrorCause):
epc1=0x4000bf64, epc2=0x00000000, epc3=0x00000000, excvaddr=0x40252059, depc=0x00000000
By Valen
#196859
One solution would be to replace the flash memory chip with bigger memory. It's a bit of a hassle to solder those tiny legs but certainly possible. Use proper solderflux and copper braid to clean it up. There are some examples on Youtube. And with 32Mbit in stead of your 4 now, using SPIFFS becomes interesting for remote monitoring/recording of data.