NXC OVERLOAD!
NXC OVERLOAD!
Hello,
I have been working on a TextEdit v8 [see The Current Version] and i got to over 1090 lines, and it freezes my NXT when downloading. Why?
I have been working on a TextEdit v8 [see The Current Version] and i got to over 1090 lines, and it freezes my NXT when downloading. Why?
2Labz.com, My Website
-
- Posts: 73
- Joined: 29 Sep 2010, 12:05
Re: NXC OVERLOAD!
Why, indeed. Could it be that your program has reached the size where it will no longer fit in your NXT's memory?
Regards, Morton
-
- Posts: 1818
- Joined: 02 Oct 2010, 02:19
- Location: Michigan USA
- Contact:
Re: NXC OVERLOAD!
Try removing some programs and such from the NXT, and then try again.
Matt
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
Re: NXC OVERLOAD!
I have the compiler status turned on, and it just "forgets" to download the program, and that causes the NXT to freeze
2Labz.com, My Website
-
- Posts: 73
- Joined: 29 Sep 2010, 12:05
Re: NXC OVERLOAD!
I can not conceive how not downloading a program could have any effect on the NXT brick whatsoever. If nothing is downloaded at the end of a compilation, then surely the NXT brick's state is exactly what is was before the you did the compilation. Why would the NXT "freeze" if nothing changed?
On the other hand, having a download fail before it was complete might be a real problem. Are you sure that this isn't what is happening?
On the other hand, having a download fail before it was complete might be a real problem. Are you sure that this isn't what is happening?
Regards, Morton
Re: NXC OVERLOAD!
Try compiling first, then download the .rxe file. Go to Edit->Preferences->General->Save compiler output, and check it.dudmaster wrote:Hello,
I have been working on a TextEdit v8 [see The Current Version] and i got to over 1090 lines, and it freezes my NXT when downloading. Why?
My SnakeWorm v1.0 has ~2K lines, and nxtboy_iii's NXT War Game* is huge. You can prevent the code from getting too large by setting the optimization level of the compiler to 2. Do this by: Edit->Preferences->Compiler->NBC/NXC->Optimization Level to "2".
Also I've seen a timeout option somewhere.
EDIT: Go to Edit->Preferences->Compiler->Common and increase the Timeout value until it compiles properly.
*Disclaimer: Not as good as COD. Mmmm... fish.
Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE
Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
Re: NXC OVERLOAD!
Did you try the timeout? Set it to 99, or something:dudmaster wrote:I have already set it to Level 2.
muntoo wrote:Also I've seen a timeout option somewhere. I'll update with more info soon.
EDIT: Go to Edit->Preferences->Compiler->Common and increase the Timeout value until it compiles properly.
Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE
Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
Who is online
Users browsing this forum: No registered users and 2 guests