Skip to main content

Questions tagged [sketch-size]

The size of the compiled executable of your project.

0 votes
2 answers
156 views

I want to design an Arduino Uno/Nano library (an alternative to floats that uses less RAM) that uses a minimum of code space after compilation. Is there a (not too complicated) way to calculate or ...
Christophe's user avatar
1 vote
1 answer
157 views

If I put this in my arduino program, in main.cpp, I suddenly run out of memory for flash program size: if(msgSize > 2) { //sr::sequentialRead(&serialRead, newTram.hash); uint8_t bytes[...
Tom� Zato's user avatar
-1 votes
1 answer
326 views

I have three large PROGMEM arrays, in order to store musical notes for a song. One array is the notes, one is the note durations, and one is the pause after the note. The first array is an int one and ...
user1584421's user avatar
  • 1,435
7 votes
4 answers
1k views

I'm trying to squeeze code onto an ATtiny10, but I'm just not getting there. I'm using 1060 bytes and only have space for 1024 bytes. The code is simple enough; I need to read a button pin. If high it ...
Earthbound Ruben's user avatar
1 vote
0 answers
327 views

With the ReadWrite example in Arduino IDE, the sketch size is 10980 bytes (34%) of an Arduino UNO's storage. How can we reduce the sketch size? There isn't any kind of #define to turn on/off features ...
raspiduino's user avatar
0 votes
1 answer
173 views

I am a Beginner in Arduino Programming. I am working on a project where I control A DC motor with IR sensor and arduino. Until here it is fine. But I want the Motor to stop after one second even ...
Nallella Shashank's user avatar
1 vote
1 answer
839 views

I dont know what to do? Sketch uses 3712 bytes (12%) of program storage space. Maximum is 30720 bytes. Global variables use 210 bytes (10%) of dynamic memory, leaving 1838 bytes for local variables. ...
Salvador Adrián León Chávez's user avatar
0 votes
2 answers
389 views

Iam making an awesome christmas present a custom pcb badge. Everything works great with hooked up uno, but its heart is actually a Attiny13a, where I get ONLY around 1024bytes (mine code has 1944) ...
Nejcraft hraje's user avatar
3 votes
0 answers
636 views

I am using the excellent UIPEthernet library to get an Arduino Nano to drive an ENC28J60 Ethernet Shield for a UDP-based application. But I think the poor library has to do a lot of work to make up ...
SusanW's user avatar
  • 172
2 votes
2 answers
2k views

I'm trying to reduce my sketch size and managed to reduce both SRAM and Flash memory. From: 1570 SRAM - 32144 Flash memory To: 644 SRAM - 19458 Flash memory This are what I've done so far: ✓ ...
ElectronSurf's user avatar
-1 votes
2 answers
187 views

I am working on a project where I have to build an IR program that works with all of the AVR/Arduino boards to control the IR devices such as TV, DVD, etc. I am building a struct that can carry the ...
Alex Zhuravel's user avatar
1 vote
2 answers
439 views

For example RTClib library have codes for DS1307, DS3231, PCF8523 and softRTC. but I'm only using DS3231 and don't need the extra codes there to occupy my Arduino flash memory. Does Arduino IDE only "...
ElectronSurf's user avatar
-1 votes
1 answer
346 views

I have a fairly complicated sketch with about 1k lines of code. I should also say that I'm not a programmer by trade... As I go over my code and try to make it more efficient, it'd be good to know ...
robofred's user avatar
  • 119
2 votes
1 answer
459 views

I'm trying to pinpoint some strange behaviour involving the use of PROGMEM and the size of a Sketch. I've written a library that contains a number of functions, in addition to several large global ...
fritterdonut's user avatar
2 votes
4 answers
8k views

How to reduce sketch size? I got an error that “Sketch uses 30,044 bytes (104%) of program storage space. Maximum is 28,672 bytes.” I can't reduce function in sketch.I can't change ATmega32u4,now. ...
Ryosuke's user avatar
  • 29

15 30 50 per page