Hi All,
I have an Arduino UNO R3 board and an ethernet shield Wiznet WS5100.
I have been working on it for over a month now and things have been working fine. However, recently I added a few more lines to my original working code uploaded the code which was for only 15,244 bytes and it did not work. I only added a few more lines of client.println and it stopped working. As soon as I comment even a single line of 'client.println' it starts working again.
I was wondering if this could be because of number of the lines of code or the buffer size? The only major change that I see is that as soon as I upload my code, the L LED on Ethernet shield starts blinking very fast and is not as bright as it normally blinks.
Uploading message:
Binary sketch size: 15,272 bytes (of a 32,256 byte maximum)
Could someone please me with this issue.
L LED is the SPI SCK pin, so it may blink or appear to be steady on or off depending on what is happening on the SPI bus.
You may have hit SRAM limits of print's are causing issues. Got any large non-changing arrays or variables that can be put in PROGMEM to free up SRAM usage?
Hi,
Thank you for your prompt response.
For most of my code I have moved all the recurring commands in various functions but it dos not seems to be working.
Could you please suggest any other way to free up the SRAM? It is possible to use SD card slot to be used as extra RAM for my code? I have a 1 GB card available with me?
No, you generally cannot use SD as SRAM; you can hold data there that you read out and print.
Click Additional Options, Browse to your sketch, and Attach it so other can offer suggestions. Might come down to needing a uC with more SRAM, such as the 16K that a '1284P offers, or the 8K in a Mega2560.
Here's a Duemilanove-style '1284P board I sell.
http://www.crossroadsfencing.com/BobuinoRev17/