Echelon Neuron C User Manual
Page 230

218
Neuron C Tools Stand-Alone Use
The exporter command line contains a number of switches. Several switches
must be used in combination to produce a correctly exported set of files.
Use the -t switch (- -bootid) to specify the boot ID. It is followed by a decimal
number 0..65535, that denotes the boot ID in the exported image. You can use
any value within this range, but each build should be built with a unique boot ID
value. See the Smart Transceivers databooks for more about the Neuron Chip
and Smart Transceiver reset procedure and the significance of the boot ID. Note
that the –t switch is not required for targets using a member of the 3120 Neuron
Chip family, but using this switch is highly recommended for targets using a
member of the 3150 Neuron Chip family and for targets using Series 5000 chips.
Use the -C (- -clock) command to specify the Neuron clock rate as an encoded
value, using "5" for 10 MHz for example. See the ClockSpeeds field in the
LonWorksUI.xml file in the LonWorks Types directory (C:\LonWorks\Types by
default) for a complete listing of clock speed values.
Use the -c (- -xcvr) command to specify the transceiver type used via the
transceiver's standard ID. Use “7” for a TP/FT-10 free topology transceiver, for
example. See the std_id field in the StdXcvr.xml file in the LonWorks Types
directory (C:\LonWorks\Types by default) for a complete listing of standard
transceiver IDs.
Use the -I (- -infolder) and -O (- -outfolder) commands to specify the location of
the input files (generated by compiler and linker), and the output files (as
generated by the exporter), respectively.
Use the -b
(- -basename) command to specify the base name of the input and
output files that are located in the input and output folders.
Use the - -create
XXX
switch to enable the generation of a file type, where
XXX
is
the file extension of the desired file type (in lower case). You can specify multiple
- -create
XXX
switches to generate multiple file types.
Here is an example that exports a device file set with base name of MyDevice for
a 10 MHz based device that uses a TP/FT-10 free topology transceiver:
C:\>NEX [email protected] - -bootid=12345
The commands.nex script file referenced by the command line contains the
following set of commands:
; Sample Exporter command file
--clock=5
--xcvr=7
--infolder=MyProject\MyDevice\Development\IM
--outfolder=MyProject\MyDevice\Development
--basename=MyDevice
--createxif=yes
--createxfb=yes
--createnei=yes
--createnxe=yes
--createapb=yes
--createnri=yes
Note: When using the Neuron Exporter stand-alone tool, be sure to use two
different folders for the -I (--infolder) and -O (--outfolder) commands, respectively.