Tag: arduino
How to find out the SRAM consumption of an Arduino sketch
Build the sketch Find /tmp/build*.tmp folder. There should be one, if you see multiple then rm -rf /tmp/build*.tmp and rebuild the sketch. Only one build folder should be in the /tmp (for simplicity run avr-size /tmp/build*.tmp/[sketch_name].elf sum of data and bss values if the number you’re looking for
Fix: Error: register r24, r26, r28 or r30 required
I was recently compiling some Arduino code with NewSoftSerial and got hit by infamous “Error: register r24, r26, r28 or r30 required” error. NewSoftSerial is a great library and those using older avr-gcc compiler enjoy it alot. Problem is the newer gcc doesn’t like one nasty error in the code…

![Stop Paying for SSL Certificates! Stop Paying for SSL Certificates! [Photo by Jason Dent on Unsplash]](https://andrey.mikhalchuk.com/wp-content/andrey.mikhalchuk.com/safe-675x360.jpg)