NXC OVERLOAD!

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
dudmaster
Posts: 171
Joined: 06 Oct 2010, 02:38
Location: Texas, Santa Fe
Contact:

NXC OVERLOAD!

Post by dudmaster »

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?
2Labz.com, My Website
m-goldberg
Posts: 73
Joined: 29 Sep 2010, 12:05

Re: NXC OVERLOAD!

Post by m-goldberg »

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
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: NXC OVERLOAD!

Post by mattallen37 »

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 ;)
dudmaster
Posts: 171
Joined: 06 Oct 2010, 02:38
Location: Texas, Santa Fe
Contact:

Re: NXC OVERLOAD!

Post by dudmaster »

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
m-goldberg
Posts: 73
Joined: 29 Sep 2010, 12:05

Re: NXC OVERLOAD!

Post by m-goldberg »

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?
Regards, Morton
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: NXC OVERLOAD!

Post by muntoo »

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?
Try compiling first, then download the .rxe file. Go to Edit->Preferences->General->Save compiler output, and check it.

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. I'll update with more info soon.
EDIT: Go to Edit->Preferences->Compiler->Common and increase the Timeout value until it compiles properly.

*Disclaimer: Not as good as COD. Mmmm... fish.
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
dudmaster
Posts: 171
Joined: 06 Oct 2010, 02:38
Location: Texas, Santa Fe
Contact:

Re: NXC OVERLOAD!

Post by dudmaster »

I have already set it to Level 2.



*Fish with hot-sauce!
2Labz.com, My Website
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: NXC OVERLOAD!

Post by muntoo »

dudmaster wrote:I have already set it to Level 2.
Did you try the timeout? Set it to 99, or something:
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.
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
dudmaster
Posts: 171
Joined: 06 Oct 2010, 02:38
Location: Texas, Santa Fe
Contact:

Re: NXC OVERLOAD!

Post by dudmaster »

What does that do?
2Labz.com, My Website
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 0 guests