Pages: [1]   Go Down
Author Topic: SOLVED - My sketch does not start on DUE  (Read 699 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
First sorry for my english.
My sketch stopped to start on DUE. Everything was ok, but once after adding few lines of "Serial.print()" code for debug purposes,  uploaded sketch not started. Tried reset, erase buttons, uploaded again and nothing. Other simple sketches from examples starts with no problems. Added first lines in setup function:
Code:
pinMode(13, OUTPUT);
digitalWrite(13, LOW);
delay(3000);
Led still on!
My sketch is not very simple - "Sketch uses 130 620 bytes (24%) of program storage space. Maximum is 524 288 bytes."
I have removed some code with a lot usage of memory, sketch space usage decreased from 32% to 24% - still nothing.
Thank You for help!
DGS
« Last Edit: January 22, 2014, 01:18:44 pm by DGSi » Logged

0
Offline Offline
Shannon Member
****
Karma: 200
Posts: 11718
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well if its not the obvious running out of RAM, perhaps its a particular feature you are
using or a compiler bug - divide and conquer to narrow the culprit down?
Logged

[ I won't respond to messages, use the forum please ]

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It was possible memory overflow problem. But why my project stopped after adding two Serial.printl() code lines? And why not started again after removing  them? And why not starting after removing a lot of code?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Solved!
Problem was in code
Code:
extern SomeClass someclass;
After commenting this line - everything works! But! Header file was not in #include list (that class coding in progress), just in same folder as sketch. No used class instance in program anywhere! If uncommented - sketch do not start again! After including class in sketch and creating instance using "new" operator - sketch works! And why sketch worked before with uncommented line? I dont remember exactly when, but i have upgraded Arduino from 1.5.5 to 1.5.5-R2.
Linker problems?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey DGSi,

can you please explain how exactly you fixed this problem?...
I´ve got the same and hope you can help me...

P.s. sorry for my bad english!^^...
Logged

Pages: [1]   Go Up
Jump to: