Go Down

Topic: Upload sketch problem (Read 1 time) previous topic - next topic

cricchetto06

Hi guy, i've the problem when i try to upload a big sketch. I've try to upload a sketch with 28796 bytes of size and fail with this error: "avrdude: stk500_recv(): programmer is not responding". With a little sketch, i've no problem to upload it! Below some information about my Arduino and ide:
Board Model: Uno + Ethernet Shield
Ide version: 1.0
OS: Mac os X 10.6.8 (snow leopard)

Could be a bootloader problem? Some time ago I remember reading something about a bug with some bootloader version.

nickgammon

Sounds possible. Try using the IDE to re-burn the bootloader. I think you may need another bit of hardware, like another Arduino (as ISP) or a USBtinyISP or similar. Of course, you can also use one of those to simply burn the sketch without using the bootloader.
Please post technical questions on the forum, not by personal message. Thanks!

More info: http://www.gammon.com.au/electronics

el_supremo

You could have run out of SRAM. Do you have a lot of strings and/or data arrays?

Pete
Don't send me technical questions via Private Message.

cricchetto06

uhm........out of SRAM...it's possible, but i've tried to upload in windows 7 with ide 1.0 and no error found!!!! But now the problem is.....SRAM overflow  :) 6K of flash to inizialize EthernetServer class. My Arduino Uno is is at the limit   :(

nickgammon

Have you put your strings into program memory (flash memory)? Under 1.0 of the IDE there is a "F" macro to do that.

eg.

Code: [Select]
F("foo")
Please post technical questions on the forum, not by personal message. Thanks!

More info: http://www.gammon.com.au/electronics

cricchetto06

All strings are into memory flash. Can i paste here all the line of my sketch?

nickgammon

I doubt it is a string issue if you can't upload. Try to put a more recent bootloader on the board.
Please post technical questions on the forum, not by personal message. Thanks!

More info: http://www.gammon.com.au/electronics

Go Up