Search found 33 matches
- 09 Sep 2013, 09:52
- Forum: Mindstorms Software
- Topic: simple code cause NXT brick frozen
- Replies: 20
- Views: 25136
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...
- 06 Sep 2013, 02:43
- Forum: Mindstorms Software
- Topic: simple code cause NXT brick frozen
- Replies: 20
- Views: 25136
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...
- 05 Sep 2013, 02:18
- Forum: Mindstorms Software
- Topic: simple code cause NXT brick frozen
- Replies: 20
- Views: 25136
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...
- 05 Sep 2013, 01:52
- Forum: Mindstorms Software
- Topic: simple code cause NXT brick frozen
- Replies: 20
- Views: 25136
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...
- 04 Sep 2013, 06:07
- Forum: Mindstorms Software
- Topic: simple code cause NXT brick frozen
- Replies: 20
- Views: 25136
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.
In the NXC config section, NXT2.0 compatible is checked, enhanced firmware is not.
- 04 Sep 2013, 06:01
- Forum: Mindstorms Software
- Topic: simple code cause NXT brick frozen
- Replies: 20
- Views: 25136
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...
- 04 Sep 2013, 05:43
- Forum: Mindstorms Software
- Topic: simple code cause NXT brick frozen
- Replies: 20
- Views: 25136
Re: simple code cause NXT brick frozen
Thanks for your reply.h-g-t wrote:Looks like it's in an infinite loop, not frozen.
The "frozen" mean the brick can't response for any operation, even power off.
The only thing i can do is take off battery.
- 04 Sep 2013, 05:39
- Forum: Mindstorms Software
- Topic: simple code cause NXT brick frozen
- Replies: 20
- Views: 25136
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 __...
- 04 Sep 2013, 02:44
- Forum: Mindstorms Software
- Topic: simple code cause NXT brick frozen
- Replies: 20
- Views: 25136
simple code cause NXT brick frozen
Code: Select all
float x = 0;
float y;
task main()
{
do
{
y = x;
}
until(1);
}
FirmWare 1.31
It's weird...
- 17 Aug 2013, 08:44
- Forum: Mindstorms Software
- Topic: flatten float cause NXT block frozon
- Replies: 4
- Views: 4766
Re: flatten float cause NXT block frozon
Download the test_release20130813, And the problem is gone!doc-helmut wrote:hey, that's a very old release!
Better look here:
http://sourceforge.net/apps/phpbb/mindb ... e2a1147701
Thanks!