Search found 33 matches

by felix2ch
09 Sep 2013, 09:52
Forum: Mindstorms Software
Topic: simple code cause NXT brick frozen
Replies: 20
Views: 25501

Re: simple code cause NXT brick frozen

This fix was never taken by LEGO and incorporated into the standard firmware. For this and many, many, many, many, many other reasons I highly recommend that you switch to using the enhanced firmware which is 100% compatible with the standard firmware but not broken like it is in several places. Th...
by felix2ch
06 Sep 2013, 02:43
Forum: Mindstorms Software
Topic: simple code cause NXT brick frozen
Replies: 20
Views: 25501

Re: simple code cause NXT brick frozen

Can you show me the F12 code with until(1) and then show me the code with while(0) (which apparently works) for the current compiler at optimization level 3? F12 code of util(1) at level 3 dseg segment ;------- definitions ------- ;------- declarations ------- __D0main sdword __DF0main float ____in...
by felix2ch
05 Sep 2013, 02:18
Forum: Mindstorms Software
Topic: simple code cause NXT brick frozen
Replies: 20
Views: 25501

Re: simple code cause NXT brick frozen

There's definitely something going wrong - possibly a floating point type opcode incompatibility of some kind. Can you try with different optimization levels to see if it is an optimizer bug or a code generator bug? My guess is it is in the optimizer. It's still frozen at optimize level 0. Also, ca...
by felix2ch
05 Sep 2013, 01:52
Forum: Mindstorms Software
Topic: simple code cause NXT brick frozen
Replies: 20
Views: 25501

Re: simple code cause NXT brick frozen

Hello, I think this is the result of macro expansion. "until(x)" is defined as "while(!(x))". So at the end the statement is "while (!(1))". A real c compiler will make a "false" out of this but may be "nxc" is confused by that construction. Give &q...
by felix2ch
04 Sep 2013, 06:07
Forum: Mindstorms Software
Topic: simple code cause NXT brick frozen
Replies: 20
Views: 25501

Re: simple code cause NXT brick frozen

Firmware is Lego official 1.31.
In the NXC config section, NXT2.0 compatible is checked, enhanced firmware is not.
by felix2ch
04 Sep 2013, 06:01
Forum: Mindstorms Software
Topic: simple code cause NXT brick frozen
Replies: 20
Views: 25501

Re: simple code cause NXT brick frozen

I think this is the result of macro expansion. "until(x)" is defined as "while(!(x))". So at the end the statement is "while (!(1))". A real c compiler will make a "false" out of this but may be "nxc" is confused by that construction. Give "whi...
by felix2ch
04 Sep 2013, 05:43
Forum: Mindstorms Software
Topic: simple code cause NXT brick frozen
Replies: 20
Views: 25501

Re: simple code cause NXT brick frozen

h-g-t wrote:Looks like it's in an infinite loop, not frozen.
Thanks for your reply.
The "frozen" mean the brick can't response for any operation, even power off.
The only thing i can do is take off battery.
by felix2ch
04 Sep 2013, 05:39
Forum: Mindstorms Software
Topic: simple code cause NXT brick frozen
Replies: 20
Views: 25501

Re: simple code cause NXT brick frozen

But it works fine at bricxCC Version3.3 build3.3.8.9 Next Byte Codes Compiler version 1.2 (1.2.1.r4, Below is the F12 code of 3.3.8.11 dseg segment ;------- definitions ------- ;------- declarations ------- __D0main sdword __DF0main float ____initialize_global_data_return byte __constVal1 sbyte 1 __...
by felix2ch
04 Sep 2013, 02:44
Forum: Mindstorms Software
Topic: simple code cause NXT brick frozen
Replies: 20
Views: 25501

simple code cause NXT brick frozen

Code: Select all

float x = 0;
float y;
task main()
{
     do
     {
           y = x;
     }
     until(1);
}
Bricxcc 3.3.8.11 nbc 1.2.1.5 (test_release20130813)
FirmWare 1.31

It's weird...
by felix2ch
17 Aug 2013, 08:44
Forum: Mindstorms Software
Topic: flatten float cause NXT block frozon
Replies: 4
Views: 4839

Re: flatten float cause NXT block frozon

doc-helmut wrote:hey, that's a very old release!
Better look here:
http://sourceforge.net/apps/phpbb/mindb ... e2a1147701
Download the test_release20130813, And the problem is gone!
Thanks! :D