Brixcc unable to download prgm on NXT2

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
jfr21
Posts: 2
Joined: 07 Dec 2011, 13:19

Brixcc unable to download prgm on NXT2

Post by jfr21 »

Hello,

I'm posting here because I'm loosing my mind trying to solve following problem. :oops:
Perhaps someone could have an idea to put me in the right direction ;)

I'm using NXT2 + Brixcc under Windows XP (lates version available for brixcc)
Connection to the nxt2 is done by USB cable
NXT2 is correctly detected by Brixcc and I'm able to play with motors, sensors, sounds using Brixcc menus.

But when I try to compile, download and run a rpogram into the NXT2 it fails.
I tried to load one of the sample given with brixcc software ("7_music.nqc")
- Compile : Ok no problem
- Download : seems Ok, no error message
- Run : Nothing
I tried several samples and got same result : doesn't work
During prgm download the NXT2 doesn't "clic clic" as when I downloaded the new firmware

If anyone here have an idea :-)
Thanks a lot
(PS : It's a new acquisition and it didn't work before)
have a good day
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: Brixcc unable to download prgm on NXT2

Post by mattallen37 »

.nqc files are for the RCX. .nxc is for the NXT, as is .nbc (assembler) .rxe (NXT executable) .rso (sound file) .ric (image file).

What do you mean by "NXT2"? You mean an NXT with a 2.0 FW (1.28+)? Make sure you have the latest enhanced FW on the NXT (included with BCC). Also make sure your compiler settings are set right.
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: Brixcc unable to download prgm on NXT2

Post by afanofosc »

BricxCC uses a different compiler depending on the file extension of the source code you are trying to compile. So any NQC file will be compiled by the NQC compiler which does not support the NXT. When it tries to download the results of the compilation it will fail. NQC supports RCX, RCX2, Spybot, and Scout - not NXT. But there is no reason why, if you are connected to an NXT that you might decide to open an NQC file and try to compile it. I might change BricxCC to disable the Download button in a case like this, though.

If you are working with an NXT then you need to use either NBC files or NXC files to program your brick. NBC and NXC files are compiled by the NBC compiler which knows how to generate executables that can run on the NXT and it knows how to download them correctly to the NXT. You can also compile RICScript files (.rs) and NXT Programs (.npg) using the NBC compiler.

In addition to supporting the NXT brick the NBC compiler also supports the new HiTechnic SuperPro prototyping board with the SuperPro C (.spc) programming language and the SuperPro Assembler (.spasm) programming language.

John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
jfr21
Posts: 2
Joined: 07 Dec 2011, 13:19

Re: Brixcc unable to download prgm on NXT2

Post by jfr21 »

Hello

Thanks a lot :D
Using .nxc files now it works fine

Again thanks for you help
Post Reply

Who is online

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