Skip to content

Instantly share code, notes, and snippets.

@gmsanchez
Last active August 23, 2017 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gmsanchez/bbdd56f53294a1082b9ecbd251c7996c to your computer and use it in GitHub Desktop.
Save gmsanchez/bbdd56f53294a1082b9ecbd251c7996c to your computer and use it in GitHub Desktop.
Getting NeXTTool in Ubuntu 16.04 64 bits
Setup nxtOSEK program upload software with enhanced firmware (based on http://lejos-osek.sourceforge.net/installation_linux.htm)
a.NeXTTool (building from source)
Required Packages: libusb-0.1-4 libusb-dev fpc
~$ sudo apt-get install libusb-dev libusb-0.1-4 subversion fpc
Note: fpc is the free pascal compiler
Download John Hansen's NeXTTool source from bricxcc repository. Revision 1 is known to work for usb and bluetooth (but last revision may also work even if there seems to be troubles with bluetooth) :
~$ svn co https://svn.code.sf.net/p/bricxcc/code bricxcc
Compile NeXTTool:
~$ cd bricxcc
~$ make -f ./nexttool.mak
NeXTTool binary is created in the current directory and can be moved anywhere.
Check the version of NeXTTool, it should be 1.2.1.r5:
~$ chmod +x nexttool
~$ sudo ./nexttool
nexttool version 1.2 (1.2.1.r5)
Copyright (c) 2006-2013, John Hansen
Use "nexttool -help" for more information
Turn on the NXT, connect it to USB and run the following command to upload a nxtOSEK program:
~$ sudo ./nexttool /COM=usb -download=helloworld/helloworld_OSEK.rxe
Troubleshooting: Test the following command to see if NeXTTool is working (set execution right for NeXTTool):
~$ sudo ./nexttool /COM=usb -versions
Protocol version = 1.124
Firmware version = 1.xx
Optionnal 1: To upload over usb without being a priviledge user or To upload over bluetooth, you need to configure udev and define an alias name in a file 'nxt.dat' as explained in this post: Minsdtorm 2.0 development on linux . Then turn on the NXT and run the following command (example: helloword_OSEK.rxe) :
~$ sudo ./nexttool /COM=alias_bt -download=helloworld/helloworld_OSEK.rxe
Optionnal 2: Building of nbc/nxc assembler/NX C compiler for NXT from brixcc directory (cd NXT; make -f nbcunix.mak). Please refer to this nice blog page on Minsdtorm 2.0 development on linux if you want to go further.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment