|
Post by subwrc on Nov 1, 2015 7:37:59 GMT
Hi to all. I started a new thread because i am facing a problem that i have not seen mentioned again in this forum. I use these Arduino Pro Mini Enhancement 3.3V/5V Adjustable 8MHz MEGA328P . When i verify/compile RFM_MQTT_GW_23.ino and turn DEBUG mode off compilation goes ok. But when i enable it i get memory size error as the following: Arduino: 1.6.5 (Windows 8.1), Board: "Arduino Pro or Pro Mini, ATmega328 (3.3V, 8 MHz)"
Sketch uses 31.154 bytes (101%) of program storage space. Maximum is 30.720 bytes.Global variables use 1.668 bytes (81%) of dynamic memory, leaving 380 bytes for local variables. Maximum is 2.048 bytes.processing.app.debug.RunnerException: Sketch too big; see www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it. at processing.app.debug.Compiler.size (Compiler.java:340) at processing.app.debug.Compiler.build(Compiler.java:123) at processing.app.Sketch.build (Sketch.java:1109) at processing.app.Sketch.build(Sketch.java:1084) at processing.app.Editor$BuildHandler.run (Editor.java:1955) at java.lang.Thread.run(Thread.java:745)Sketch too big; see www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.
This report would have more information with "Show verbose output during compilation" enabled in File > Preferences.Does it has to do with the memory size of my arduino version ? Did people who used an arduino pro mini faced something like this?
|
|
|
Post by computourist on Nov 1, 2015 14:16:58 GMT
Hi subwrc, this issue has been discussed earlier. The memory limitation must have something to do with the size of the boot loader, preprogrammed in your Arduino. Look here for the discussion. Try to take out one of the DEBUG functions, you only need 500 bytes or so...
|
|
|
Post by subwrc on Nov 1, 2015 15:30:32 GMT
Thank you computourist for your answer and your project contribution. I haven't noticed the post you mentioned. In the meantime i had already started removing some debug commands and noticed that the one that makes the real difference in the final size of the compiled code is in line 314 of RFM_MQTT_GW_23.ino, and it is the Serial.print(mes.fltVal) command. Serial printing a floating value makes the compiled code 1588 bytes longer!
|
|