     ===============================================
        LonBuilder Developer's Kit Readme File
             Version 3.01.06, December 2002
     ===============================================

         Copyright  1990-2002 Echelon Corporation.
                  All Rights Reserved.

This file contains important information not included in the 
LonBuilder documentation.  Additional information and updates, 
including critical updates, may be available in Echelon's 
Developer's Toolbox at www.echelon.com/toolbox.

This file was installed when you applied LonBuilder 3.01 
Service Pack 6.  Service Pack 6 automatically detects the 
current service pack level of LonBuilder 3.01 software and 
brings the LonBuilder software up to the current LonBuilder 
3.01 Service Pack 6 revision.	The service pack level can be 
seen in the LonBuilder software by selecting the About command 
in the LonBuilder menu.  The Version should show as 3.01, and 
the Build number is 6 reflecting that Service Pack 6 has been 
applied.

This file includes the original LonBuilder 3.01 ReadMe file, 
as well as updates from Service Packs 1, 2, 3, 4, and 5.


CONTENTS
========

1.  Release Identification

2.  Installation Instructions

3.  FT 3120/3150 Smart Transceiver Application Migration Checklist

4.  Service Pack History
    4.1  Service Pack 6
         4.1.1  Neuron Chip Firmware Version 13.1
         4.1.2  EEBLANK
    4.2  Service Pack 5 
         4.2.1  Neuron Chip Firmware Version 13
         4.2.2  NEI to NFI File Conversion Utility Update
    4.3  Service Pack 4 
         4.3.1 Fix for 3150 Network application loading failure
    4.4  Service Pack 3
         4.4.1  20 and 40MHz Operation
         4.4.2  Neuron Clock Upgrade Utility
         4.4.3  NEI to NFI File Conversion Utility
         4.4.4  Extra On-Chip Memory
         4.4.5  Neuron Chip Firmware Version 12
                4.4.5.1  On-Chip Library Functions for 3120s
                4.4.5.2  LNS Loader Optimizations
                4.4.5.3  Refresh Memory Function Deleted
                4.4.5.4  Increased Memory Usage
         4.4.6  Neuron Chip Firmware Version 9 Corrections
         4.4.7  Neuron C Linker
         4.4.8  Neuron Type File
         4.4.9  EEBLANK
    4.4  Service Pack 2
    4.5  Service Pack 1

5.  Errata for the LonBuilder User's Guide - Revision 3

6.  Errata for the Neuron C Reference Guide - Revision 1

7.  Errata for the Neuron C Reference Guide - Revision 2

8.  Errata for the Neuron C Programmer's Guide - Revision 3

9.  Errata for the Neuron C Programmer's Guide - Revision 4

10. Errata for the LonBuilder Hardware Guide - Revision 4


1.  RELEASE IDENTIFICATION
==========================

This ReadMe file applies to the following products:

    LonBuilder 3.01 dated 4/11/1996

Service Pack 6 changes the version number reported by the 
LonBuilder software to "3.01 Build 6."

Service Pack 6 adds support for the following Neuron Chip 
Firmware image:

    3150 (Version 13.1)

Following is a summary of the previous service packs: 

    Service Pack 1 dated 12/17/96 
    Service Pack 2 dated 7/6/99 (updated 7/15/99)
    Service Pack 3 dated 7/9/01
    Service Pack 4 dated 8/12/01
    Service Pack 5 dated 2/15/02
    
Service pack 6 can be applied to any existing LonBuilder 3.01 
installation.  It may also be applied to installations with 
any of the previous service packs.  It adds or modifies the 
necessary files to bring the LonBuilder software to the 
current release version.  

Service Pack 6 is cumulative.	It incorporates all previous 
service packs (1 - 5), as well as interim releases of firmware 
files for Neuron 3120 E1, E2, E3, E4, E5, A20, FT 3120, 3150,
and FT 3150 chips.


2.  INSTALLATION INSTRUCTIONS
=============================

WARNING: SERVICE PACK 6 MAY ONLY BE INSTALLED ON WINDOWS 98 
(all versions).  OTHER VERSIONS OF WINDOWS, INCLUDING 
WINDOWS 3.1, WINDOWS 95, WINDOWS NT 3.5.1, WINDOWS 
NT 4.0, WINDOWS ME, WINDOWS 2000, AND WINDOWS XP ARE NOT 
SUPPORTED.

To install Service Pack 6, follow these steps:

1.  Ensure that you have at least 10MB of free disk space.  

2.  Extract the files in the LB30106.ZIP file to your 
LonBuilder directory.  This is c:\LB by default.

3.  Open a Windows Command Prompt window and enter the 
following command:

    PATCHDOS LB30106.RTP >LB30106.OUT

This captures all output in the LB30106.OUT file.  You can 
view or print this file to see a summary of the patch 
processing. 

If there are problems applying the patch, and the patch 
program stops with an error message(s) at the end of the 
output file, your LonBuilder system will be unmodified.  The 
patch program will undo all changes.  The patch program will 
not leave your LonBuilder system partially modified.

When you examine the output file, after a successful patch, 
you should see output including the following message followed 
by a summary of the patched files:

----- Patch File Processing Complete -----


-----------------------------------------------------
-        Results of Application of Patch File       -
-----------------------------------------------------
File Patches Applied ......................... (  61)

   Files Modified .................. (  36)
   Files Renamed. .................. (   0)
   Files Added ..................... (  23)
   Files Deleted ................... (   1)
   Temporary Files Processed........ (   1)

File Patches Skipped: New Files Up-To-Date.... (  44)

File Patches Ignored: Old Files Missing....... (   0)
                      Old Files Invalid....... (   0)
-----------------------------------------------------
Total File Patches Processed ................. ( 105)
-----------------------------------------------------


If you do not see this message and summary, then you must 
assume that the patch was not applied.

4.  If you have modified the DEFAULT.VER file, manually merge 
your changes into the new DEFAULT.VER file.  Your modified 
copy will be saved to DEFAULT.BK3 in the LonBuilder Images 
directory (c:\LB\Images by default).


5.  To program an Echelon FT 3120 Smart Transceiver, a Cypress
Neuron 3120E2 or 3120E4 Chip with the Echelon Model 21700 Neuron
3120 Programmer, download and install the Neuron 3120 Programmer
service pack from www.echelon.com/toolbox.


3.  FT 3120/3150 SMART TRANSCEIVER APPLICATION MIGRATION CHECKLIST
==================================================================

Use the following checklist if you plan to migrate a Neuron C 
application to the Echelon FT 3120 or FT 3150 Smart 
Transceivers from a previous Neuron Chip-hosted design and you 
are using the NodeBuilder 1.5 or LonBuilder 3.01 tools.  The 
procedure is simplified if you are using the NodeBuilder 3 (or 
newer) Development Tool.  See the NodeBuilder 3 documentation 
for details.  See the FT 3120/3150 Frequently Asked Questions 
document at www.echelon.com/products for additional hardware 
migration considerations.

1)  IF YOU ARE CHANGING THE CLOCK SPEED FOR THE DESIGN:

    Modify the I/O models and timing parameters in your 
    application code that may be affected by the change in 
    clock speed.

2)  IF YOU ARE MIGRATING FROM A TOSHIBA TMPN3120A20, 
    TMPN3120FE3 OR TMPN3120FE5 NEURON CHIP TO THE FT 3120:

    Recompile the application code using NodeBuilder 1.5 or 
    1.5a with at least Service Pack 8, or LonBuilder 3.01 with 
    at least Service Pack 5, to determine the feasibility of 
    migrating to the FT 3120.  The Toshiba Neuron 3120 Chips 
    listed above have a 16KB system image stored in internal 
    ROM which includes several library functions beyond those 
    found in the original 3120 10KB system image.  The FT 3120 
    uses a new more compact 12KB system image in its on-chip 
    ROM.  This system image was optimized to include the most 
    common system functions out of the 16KB system image.  To 
    balance this, the FT 3120 contains 4KB of on-chip non- 
    volatile memory (implemented as flash memory) to enable 
    larger application images than the TMPN3120 series would 
    allow.

3)  Use NodeBuilder 1.5 or 1.5a with at least Service Pack 8, 
    or LonBuilder 3.01 with at least Service Pack 5, to 
    recompile and rebuild the project using Neuron Chip 
    Firmware Version 13 (or newer).  For Echelon FT 3120 users,
    when defining a Device Template in NodeBuilder 1.5 or
    Hardware Properties in LonBuilder 3.01, select 3120E4 as the
    Neuron Chip model.  For Echelon FT 3150 users, select 3150
    as the Neuron Chip model.  The development tools use these
    generic names to refer to the Neuron Chip model instead
    of using an exact product part number.

4)  IF YOU ARE USING A 20MHz OR 40MHz NEURON CLOCK SPEED:

    Process the downloadable image (.NEI or .NFI extension) 
    and ROM image (.NRI extension) files with the
    NeuronClockUpgrade utility.  

5)  Load the recompiled application onto the FT 3150 external    
    memory or the internal application memory of the FT 3120. 
    The Echelon 3120 Programmer may be used to program the FT 
    3120, if you have installed the Neuron 3120 Programmer
    service pack from www.echelon.com/toolbox.  Please contact
    Echelon Product Support for additional 3120 programming
    resources.

6)  IF YOU ARE USING THE ON-CHIP A/D CONVERTER ON THE TOSHIBA 
    TMPN3120A20 OR TMPN3120FE5 NEURON CHIPS:

    The FT 3120 does not have an on-chip A/D converter.  This 
    functionality must be implemented externally.


4.  SERVICE PACK HISTORY
========================


4.1 Service Pack 6
------------------

4.1.1  Neuron Chip Firmware Version 13.1
----------------------------------------

This new version of the Neuron firmware provides fixes for the 
following problems:

o   In 13.0 and earlier Neuron 3150 Chip Firmware, if an 
    application used explicit addressing (e.g., nv_in_addr or 
    msg_out.dest_addr) and had network variables, then 
    receiving a network variable update from subnet 255 would 
    disable the memory map.  It would remain disabled until a 
    network variable update was received on a subnet other 
    than 255 or the device was reset. The most serious 
    consequence of disabling the memory map is that attempts 
    to write to offchip flash memory fail and result in a 
    watchdog timeout.  In 13.1 firmware, this scenario no 
    longer disables the memory map.
    
    Note: this service pack does not update the LonBuilder 
    emulator firmware image, so this image is version 13.0.  
    The subnet 255 problem still exists in the LonBuilder
    emulator firmware image.
    
o   In 13.0 Neuron 3150 Chip Firmware, the initial boot 
    process (when data is copied from external ROM or flash to 
    internal EEPROM) did not allow sufficient time for EEPROM 
    writes to occur when running at 20MHz (i.e., on CY7C53150 
    and FT 3150 parts).  Depending on the amount of margin in 
    the part, this could result in either an immediate EEPROM 
    write failure or a failure to retain the values for the 
    specified number of years.  In 13.1 firmware, the proper 
    write timing is used.


4.1.2  EEBLANK
--------------

The eeblank.nri image used to blank on-chip EEPROM sometimes 
used too short of an EEPROM write time, particularly with a 
20MHz, 2.5MHz, 1.25MHz, or 625KHz input clock on CY7C53150 and 
FT 3150 Smart Transceiver parts.  Six new EEBLANK images are 
installed by this service pack, one for each clock speed. The 
files are named eeb<n>.nri where n is in KHz and is one of the 
following: 20000,10000,05000,02500,01250,or 00625.  If you are 
using an input clock between two of these speeds, select the 
next slower version of EEBLANK.


4.2 Service Pack 5
------------------

4.2.1  Neuron Chip Firmware Version 13
--------------------------------------

This new version of the Neuron firmware provides fixes for the 
following problems:

o  A problem in Version 12 firmware that could potentially 
   affect any 3120E4, 3150, Echelon FT 3120, or Echelon FT 3150 
   chip that is programmed using this firmware. If the address of 
   the last byte of configuration data for an application 
   happened to be located within the last sector (8 bytes) of a 
   page, then the location of the configuration checksum was 
   being calculated incorrectly by the firmware. A device that 
   was affected by this problem would watchdog reset continuously 
   on power up. The fix for this problem has been incorporated 
   into the Version 13 firmware. Version 13 should be used for 
   any new application being developed for the Cypress 3120 E4, 
   Echelon FT 3120 Smart Transceiver, and all 3150 chips.

o  If you issued a network management command to refresh 
   memory on a Cypress 3150 with external flash, it would fail. 
   The fix for this problem was already included in the Version 
   12 image files that were shipped with the NodeBuilder 3 
   Development Tool and is now available in Version 12 as well as 
   Version 13 image files in the NodeBuilder 1.5 and LonBuilder 
   3.01 patches.

o  If you issued a network management command to refresh on-
   chip memory on a non-Cypress 3150, it would not properly be 
   refreshed.  The fix for this problem is available in Version 
   13 firmware only.

Version 13 firmware image files also contain some additional 
symbols that have been exposed for ShortStack(tm) Micro Server 
support.

Service Pack 5 updates the default.ver file to specify version 
13.  This file is used by both the NodeBuilder and LonBuilder 
tools to determine the default firmware version number.


4.2.2  NEI to NFI File Conversion Utility Update
------------------------------------------------

If you are programming an Echelon FT 3120 Smart Transceiver or 
Cypress Neuron 3120E2 or 3120E4 Chip using a Neuron 3120 
programmer that uses the new direct programming interface, and 
you are not using the NodeBuilder 3 tool, you must post-
process the programming file using the NEI to NFI File 
Conversion Utility (Nei32Nfi.exe).  This utility creates a 
Neuron flash image file (.NFI extension) with translated 
addresses.

Service Pack 5 includes a new version of this utility (Version 
3.01.02) that corrects the following problems:

o  If the address of the last byte of configuration data for 
   an application happened to be located on a sector boundary, 
   then the utility placed the configuration checksum byte at an 
   incorrect location in the resulting NFI file.

o  If a Neuron flash image file (.NFI extension) was generated 
   for an applicationless image, and the resulting image was 
   programmed into a device using a BP programmer, some boot 
   bytes within the device were not initialized properly when the 
   device was brought up by the BP Programmer.  These bytes are 
   now filled with the proper values by the utility so that 
   devices will function properly on boot up.


4.3 Service Pack 4
------------------

4.3.1  Fix for 3150 Network application loading failure
-------------------------------------------------------
The 3150 Version 12 symbol table has been modified in a way 
that allows correct code to be generated when linking with the 
debug kernel.  This fixes a 3150 Version 12 network application 
loading failure in Service Pack 3 that occurred when the debug 
kernel was included in the new application.  Because this was 
only a symbol table change, the 3150 firmware remains unchanged 
so any PROMs burned with Version 12 firmware are still valid.


4.4 Service Pack 3
------------------


4.4.1  20 and 40MHz Operation
-----------------------------

Service pack 3 includes new Neuron Chip firmware and updated 
LonBuilder components to support 20 and 40MHz Neuron Chips 
from Echelon and Cypress.  This section summarizes some of the 
limitations of 20 and 40MHz operation.  The following sections 
summarize changes to the firmware and NodeBuilder components.

The following limitations apply when using the Echelon FT 3120 
Smart Transceiver or the Cypress Neuron 3120E4 Chip with a 
20 or 40MHz input clock, and to the Echelon FT 3150 Smart
Transceiver or the Cypress Neuron 3150 with a 20MHz input
clock:

1. You must post-process your application image files as 
described in Section 4.2.2.

2. If you will be using a Neuron 3120 programmer that uses the 
new direct programming interface, you must post process the 
programming file as described in Section 4.2.3.

3. Revision 4 and earlier versions of the Neuron C 
Programmers Guide describe timer accuracy based on 10MHz 
operation.  Timing constants are defined for 10MHz and 
everything scales from there.  To calculate accuracy for 20 
and 40MHz, substitute .5 or .25 respectively for 'S' and scale 
the timers accordingly.

4. Direct mode transceivers below 39Kbps are not supported.

5. Power line transceivers are not supported with Neuron 
clocks above 10MHz.

6. Touch I/O is not supported with Neuron Clocks above 10MHz.

7. I/O models that scale with clock rate scale accordingly at 
40MHz.  Fixed times (such as the 25 usec triac pulse time) 
remain fixed.  Times specified at less than 200 nsec at 10MHz 
remain fixed.

The following table lists some of the timings at 20MHz.

I/O Model               Timing
---------               ------
Parallel                1.2 microsec per byte
Bitshift                2, 20 or 30kbps
Magcard                 Up to 16,668bps
Magtrack1               Up to 14,492bps
Neurowire Master        2, 20 or 40kbps
Neurowire Slave         Up to 36kbps
Serial                  1200, 2400, 4800 or 9600bps
Touch                   Not supported at 20MHz
Frequency Output        Resolution 0.2 to 25.6 microsec
                        Maximum Range 13.1 to 1678 msec
Other Timer/Counter     Resolution 0.1 to 12.8 microsec
                        Maximum Range 6.55 to 839 msec

Similarly, a 40MHz Smart Transceiver or Neuron Chip will run 
most I/O models at twice the speed specified for 20MHz.  Some 
of the timings at 40MHz are as follows:

Parallel                0.6 microsec per byte
Bitshift                4, 40 or 60 kbps
Magcard                 Up to 33,336 bps
Magtrack1               Up to 28,984 bps
Neurowire Master        4, 40 or 80 kbps
Neurowire Slave         Up to 72 kbps
Serial                  2400, 4800, 9600 or 19200 bps
Touch                   Not supported at 40MHz
Frequency Output        Resolution 0.1 to 12.8 microsec
                        Maximum Range 6.55 to 839 msec
Other Timer/Counter     Resolution 0.05 to 6.4 microsec
                        Maximum Range 3.28 to 420 msec

For nodes using a version of firmware prior to Version 12
operating at 20 MHz, mtimer objects were limited to 
32,000 msec.  This constraint is no longer enforced when
using the Neuron Chip Firmware Version 12.  Both stimer and
mtimer objects at 20 and 40 MHz use the normal limits as
shown in the following table and defined in the Neuron C
Programmer's Guide:

Millisecond timers              1 to 65,000 msec
Second timers                   1 to 65,000 sec

Other timers and time-related functions are not affected.

It is permissible to write up to 32 bytes of EEPROM or flash 
memory in one operation, even though this can take up to 640 
msec. Version 7 (and later) firmware updates the watchdog 
timer after every byte written to EEPROM or flash.

8. The watchdog update period scales down to 420 msec at 
20MHz, and 210 msec at 40MHz.

9. The get_tick_count() function returns units of 409.6 usec 
per count at 20MHz, and 205 usec per count at 40MHz.

10. The delay provided by the delay() function can be calculated 
as follows:

Clock < 10MHz: 0.6 * 10/N * ((max(1,floor(count/(10/N)))*42 + 
125 + (17 * X))

Clock = 10MHz: 0.6 * ((max(1,count)*42+115)

Clock > 10 MHz: 0.6 * 10/N * (max(1,min(65535, count*(N/10))) 
* 42 + 126 + (20 * X))

where X is as follows:

1 at 5MHz or 20MHz
2 at 2.5MHz or 40MHz
3 at 1.25MHz
4 at 625 Khz

Because of the multiplier used by the delay() function and the 
potential for a watchdog timeout at 20 and 40MHz, the maximum 
inputs to delay() are 16666 and 8333, respectively.  Timing 
intervals greater than the watchdog interval must be done via 
software timers or via a user routine that calls delay and 
watchdog_update in a loop.

11. The scaled_delay() function tops out at a count of 16383.


4.4.2  Neuron Clock Upgrade Utility
-----------------------------------

If you are developing an application that will run on a 20 or 
40MHz Smart Transceiver or Neuron Chip, you must post-process 
the application image files produced by the LonBuilder 3.1 or 
NodeBuilder 1.5 tools (this extra processing is not required 
for the NodeBuilder 3 tool).  To develop a 20 or 40MHz 
application, follow these steps:

1.  Create the application using a NodeBuilder or LonBuilder 
tool.  Specify the following options:

Neuron Model: 3150 (Echelon FT 3150 or Cypress Neuron 3150 Chip)
              3120E4 (Echelon FT 3120 or Cypress Neuron 3120E4 Chip)

Clock Speed:  10MHz (this will be modified later)

Transceiver Type: TP/FT-10 (this may be modified later)

Firmware Version: Select Default Version or Other Standard 
Version with Version 12.

If you are using the LonBuilder tool, open the Export options 
window from Node Specs window and select the following file 
type:

o  If you are developing an application for the Echelon FT 
3120 Smart Transceiver or the Cypress Neuron 3120E2 or 3120E4 
Chips, select "EEPROM, Flash, or Neuron 3120 Image."

o  If you are developing an application for the Echelon FT 
3150 Smart Transceiver or the Cypress Neuron 3150 Chip, select 
"ROM Image."

2.  Open a Windows Command Prompt window.

3.  Enter the following command:

    NeuronClockUpgrade [-c<channel>] -s<clock speed> <<filename.NEI> | <filename.NRI> <filename.SYM>> 

The <channel> parameter is optional.  The default channel is TP/FT-10.  If you 
are not using the TP/FT-10 channel, select one of the following channel types:

    TP/XF-78
    TP/XF-1250
    TP/FT-10 (default)
    PL-10 
    TP/RS485-39
    TP/RS485-78
    TP/RS485-625
    TP/RS485-1250
    TP/RS485-2500
    TP/RS485-5000 (40MHz only)
    DC-78
    DC-625
    DC-1250

The <clock speed> parameter is required, and must be set to 20 or 40.

Specify either a downloadable image file (.NEI extension) or a 
ROM image and symbol file (.NRI and .SYM extensions).  The 
symbol file is not required to upgrade a downloadable image 
file.  The downloadable image file is used for Echelon FT 3120 
Smart Transceivers and Cypress 3120E2 and 3120E4 Chips.  The 
ROM image file is used for Echelon FT 3150 Smart Transceivers 
and Cypress 3150 Chips.  The downloadable image file may also 
be used for Echelon FT 3150 Smart Transceivers and Cypress 
3150 Chips with downloadable memory.

Following is an example:

NeuronClockUpgrade -cTP/FT-10 -s20 MyNode.nri c:\LonWorks\Images\Ver12\Sys3150.sym

This example replaces the transceiver parameters in the 
MyNode.nri file with the transceiver parameters appropriate to 
20MHz and the TP/FT-10 transceiver.

The utility reports the results of the update, for example:

Successfully updated file MyNode.NRI to 20MHz operation on TP/FT-10 channel.

4.  Program your Smart Transceiver or Neuron Chip using one of 
the following options:

o  If you are programming an Echelon FT 3150 Smart Transceiver 
or Cypress Neuron 3150 Chip, program a PROM, flash, or NVRAM 
device with the upgraded ROM image file (.NRI extension).

o  If you are programming an Echelon FT 3120 Smart Transceiver 
or Cypress Neuron 3120E2 or 3120E4 Chip using a Neuron 3120 
programmer that programs the device over the network, such as 
the Echelon Model 21700 Neuron 3120 Programmer, program the 
device using the downloadable image file (.NEI extension).
Please download and install the Neuron 3120 Programmer service
pack from www.echelon.com/toolbox.

o  If you are programming an Echelon FT 3120 Smart Transceiver 
or Cypress Neuron 3120E2 or 3120E4 Chip using a programmer 
that supports the new direct programming interface, first 
convert the downloadable image file to a flash image file as 
described in the next section.

You cannot download 20 or 40MHz transceiver parameters into a 
device over the network using LonBuilder or NodeBuilder 
software.


4.4.3  NEI to NFI File Conversion Utility
-----------------------------------------

If you are programming an Echelon FT 3120 Smart Transceiver or 
Cypress Neuron 3120E2 or 3120E4 Chip using a Neuron 3120 
programmer that uses the new direct programming interface, you 
must post-process the programming file using the NEI to NFI 
File Conversion Utility.  This utility creates a Neuron flash 
image file (.NFI extension) with translated addresses as 
follows:

    0xF000-0xFBFF to 0x3000-0x3BFF

    0x4C00-0x4cFF to 0x3C00-0x3FFF

This utility also calculates the application and configuration 
checksums and updates them in the resulting Neuron flash image 
file.

To create a Neuron flash image file, follow these steps:

1.  Create a downloadable image file as described in the previous
section (Section 4.2.2).

2.  Open a Windows Command Prompt window.

3.  Enter the following command:

    nei32nfi <NeiFile[.nei]> <SymFile[.sym]> 

    NeiFile is the downloadable image file for your device.
	
    SymFile is the symbol file for the corresponding firmware.

	The resulting Neuron flash image file is created in the 
	same directory as the downloadable image file.


4.4.4  Extra On-Chip Memory
---------------------------

The Echelon FT 3150 Smart Transceiver and Cypress Neuron 3150 
Chips will sometimes have additional on-chip memory outside 
the address space documented in the data book for the chip.  
Applications must not use this memory since it will not always 
be available and there is no way for an application to 
determine if the memory is available.  Writing to some of 
these unsupported locations may cause fatal application errors 
resulting in the device going to the applicationless state.


4.4.5  Neuron Chip Firmware Version 12
--------------------------------------

This section summarizes changes in Version 12 of the Neuron 
Chip Firmware, in addition to support for the on-chip flash 
memory and support for 20 and 40MHz operation.

Service pack 3 updates the default.ver file to specify version 
12.  This file is used by both the NodeBuilder and LonBuilder 
tools to determine the default firmware version number.

If you have previously modified the default.ver file, your 
copy will be renamed to default.bk2.  If you have previously 
modified this file using a text editor, you may need to 
manually merge your changes into the new file.


4.4.5.1  On-Chip Library Functions for 3120s
--------------------------------------------

There are two recent families of Neuron 3120 Chips and Smart
Transceivers which contain different lists of library functions
in the System Image in the on-chip ROM.  If a function is not
included in the System Image, but is used in an application, it
will get linked into the Application Image, which is stored in
on-chip non-volatile memory.  To decide if an application will
fit in a particular 3120, the source code should be compiled
using the correct Neuron Chip model in the development tool.
For a complete list of library functions included in the System
Image of a particular Neuron Chip, consult the data book for the
chip or the Neuron C Reference Guide.  Please note that the older
family of Neuron 3120 Chips which had a 10K ROM are not included
in the following comparison.

The two families of Neuron 3120 Chips and Smart Transceivers are:
16K ROM: 3120FE3, 3120A20, 3120FE5
12K ROM: 3120E4, FT 3120

This table lists the functions that are included differently
between these two families.  An X indicates that it is included
in the System Image for that family.

Function Name			16K ROM		12K ROM
access_alias()			   X			
flush_wait()			   X
io_abort_clear()		   X
preemption_mode()		   X
retrieve_stat()			   X
reverse()			   X
update_alias()			   X
update_domain()			   X
update_address()		   X
update_nv()			   X
update_clone_domain()		   X
update_config_data()		   X
Floating Point functions 	   X
String functions		   X
32-bit math functions		   X

Instead of displaying a list of differences, this table indicates
a complete list of all I/O Functions for both families of devices:

Function Name			16K ROM		12K ROM
Bit I/O				   X		   X
Bitshift I/O			   X		   X
Byte I/O			   X		   X
Dual Slope A/D Input		   X		   X
Edge Log Input			   X		   X
Frequency Output		   X		   X
I2C I/O						   X
Infrared Input			   X		   
Leveldetect Input		   X		   X
Magnetic Card Input		   X		   
Magnetic Card Input (ISO 7811)
Magnetic Card Input (Track 1)
Muxbus I/O					   X
Neurowire Master		   X		   X
Neurowire Master		   X		   X
Inverted
Neurowire Slave
Neurowire Slave Inverted
Nibble I/O			   X		   X
Oneshot Output			   X		   X
Ontime Input			   X		   X
Parallel I/O			   X		   X
Period Input			   X		   X
Pulsecount Input		   X		   X
Pulsecount Output		   X		   X
Pulsewidth Output		   X		   X
Quadrature Input		   X		   X
Serial I/O			   X		   X
Totalize Input			   X		   X
Touch I/O		   			   X
Triac Level Output		   X		   X
Triac Pulse Output		   X		   X
Triggered Count Output		   X		   X
Wiegand Input			   X		   X


4.4.5.2  LNS Loader Optimizations
---------------------------------

A performance enhancement has been added that is used by LNS 
3.01 (LNS 3 with Service Pack 1 applied) and newer versions of 
LNS.  This optimization applies only when loading text 
application image files (.NXE extension) over the network to 
the Echelon FT 3120 Smart Transceiver or Cypress Neuron 3120E4 
Chip.  This optimization does not affect downloading of the 
binary application image files (.APB extension). The LNS 
service packs are available at www.echelon.com/lns.

A new version of the Nxe32Bin utility is installed by service 
pack 3.  This update creates a binary application image file 
that is optimized for faster and more reliable downloading to 
devices with flash memory.


4.4.5.3  Refresh Memory Function Deleted
----------------------------------------

The refresh_memory() Neuron library function has been deleted. 
Remove any calls to the refresh_memory() function from 
applications using Neuron Chip Firmware Version 12 or newer.


4.4.5.4  Increased Memory Usage
-------------------------------

All previous 3150 designs using Version 6 or 7 of the Neuron
Chip Firmware will experience slight increases in memory usage
when recompiling with Version 12.  Designs will require 30 bytes
of additional on-chip RAM and as much as 28 bytes of additional
on-chip non-volatile memory.


4.4.6  Neuron Chip Firmware Version 9 Corrections
-------------------------------------------------

References to the u32_mul() and u32_div() functions were 
removed from the on-chip symbol files, since these functions 
are not on-chip in the Version 9 firmware.


4.4.7  Neuron C Linker
----------------------

The linker supports Neuron 3120 Chips with extended on-chip 
non-volatile memory.  The extended non-volatile memory is 
located from 0x4C00 to 0x4FFF on the Echelon FT 3120 Smart 
Transceiver and the Cypress Neuron 3120E4 Chip.  This provides 
additional non-volatile memory beyond the base memory located 
at 0xF000 to 0xFBFF for these chips.  The linker uses extended 
non-volatile memory for Far EEPROM variables and for 
application code. The linker places Near EEPROM variables in 
the uppermost area of the base on-chip non-volatile memory area 
(with an allowance for a number of bytes of non-volatile 
memory dedicated to the system image, number of bytes for 
system varies by firmware version and chip model). Application 
code first fills the base on-chip non-volatile memory area 
(meaning, F000 and above), from the lowest addressed byte of 
that area to the highest available byte below Near EEPROM 
variables (discussed above). Then, if necessary, application 
code fills the extended on-chip non-volatile memory area, again 
from lowest addresses upwards. The Far EEPROM variables fill 
the extended on-chip non-volatile area first, from highest 
addressed byte downwards, and then, if necessary, the Far 
EEPROM variables fill the base on-chip non-volatile area from 
the highest addressed byte downwards, immediately below the 
Near EEPROM variables (discussed above).

Previous versions of the linker placed the boundary between 
onchip non-volatile code and data such that the code area 
contained the unused bytes. This version places as many bytes 
as possible in the data area instead.  This change results in
a smaller number of bytes in the application image that must
be checksummed.


4.4.8  Neuron Type File
-----------------------

The neuron.typ Neuron type file has been updated to include a 
3120E4 entry.  This entry should be used for both the Echelon 
FT 3120 Chip and the Cypress 3120E4 Chip.


4.4.9  EEBLANK
--------------

The EEBLANK ROM image file has been updated to support 20 and 
40MHz devices.  Performance of this new version of the EEBLANK
application is now slower when using 10MHz nodes, because the
nominal timing is set to 20MHz in this new version.

Note: see Service Pack 6 for a newer update to EEBLANK.


4.5 Service Pack 2
------------------

This service pack updates the Neuron Linker to add support for 
the Toshiba TMPN3120FE5's increased on-chip EEPROM.  
Additionally, the linker contains an improved initialization 
code sequence to workaround problems in some versions of 
Neuron 3120 Chips when using the debug kernel (the node might 
halt after a power cycle).

Some minor linker enhancements are included in this service 
pack.  These enhancements include fixes to small printing 
problems in the link map file, a correction to avoid use of a 
signature value of "DEAD" that the Neuron Chip understands to 
mean "signature-disabled", and a modified error warning 
message regarding the effects of writeable data in flash 
memory (on a Neuron 3150 Chip) that also contains the system 
image.

Service pack 2 adds support for the following images:

3120E1 and 3120E2 (Version 7)

3120A20, 3120E3, and 3120E5 (Version 9 and 10)

***!!! WARNING !!!***  Service pack 2 adds default versions 
of firmware for the 3120A20, 3120E3, and 3120E5.  If you have 
previously added support for these chips in a manual manner, 
please examine the new DEFAULT.VER and your old version 
(renamed DEFAULT.BK2) in the LonBuilder's IMAGES subdirectory, 
and make any necessary changes (using a text editor such as 
Notepad).  Also, if you are using the Echelon Neuron 3120
Programmer please download and install the Neuron 3120 Programmer
service pack from www.echelon.com/toolbox.

Service pack 2 included the NEI20MHZ utility previously 
distributed by Echelon's website, Toshiba, and other parties. 
This has since been replaced with the NeuronClockUpgrade 
described in Section 4.2.2 above.

Service pack 2 updates the EXTARITH.LIB library with fixes to 
certain floating point routines as follows:

  a.  fl_to_slong - Was limiting signed longs to a
	  lower limit of -32767 rather than -32768.

  b.  fl_add, fl_sub - If result caused a floating point
	  overflow, the stack would get corrupted.

  c.  fl_div, fl_sqrt, fl_from_ascii, fl_to_ascii.  Any of these
	  functions could result in the node falsely reporting
	  that it was offline if a query status network management
	  message arrived while the application was in one of these
	  routines.  Almost any set of operands could cause this
	  behavior though the more ones in the operands, the more
	  likely the false report.

  d.  s32_div, s32_mul, s32_rem.  If the first argument to any of
	  these routines was greater than 2^27, then it could result
	  in the node falsely reporting that it was offline if a
	  query status network management message arrived while
	  the application was in one of these routines.

Service pack 2 modifies the STATUS.H include file, adding a 
retrieve_stat() function.  The function is documented in the 
include file.

Service pack 2 adds the A2D.H include file from Toshiba. This 
file provides macro definitions that facilitate use of the A/D 
converter on the TMPN3120FE5 and TMPN3120A20 Neuron Chips.  
Please read the comments in the A2D.H file (placed in the 
LonWorks neuronC\include directory) for more information on 
the A/D converter and the macros, and for disclaimers, use 
restrictions and license information.


4.6 Service Pack 1
------------------

This service pack corrects several problems in the Neuron C 
compiler, Neuron Chip Linker, and the integrated development 
environment executable.  Additionally, a feature enhancement 
was added to the packet monitor function in the integrated 
executable.

This service pack upgrades the integrated development 
environment (the IDE) executable (TLMINTEG.EXE) to version 
3.01.01.  The problem fixed is in the export function, when 
exporting a Neuron ROM image file (.NRI extension).  If the 
number of pages of ROM memory is an odd number, such as 199, 
and the image size is greater than 32K, the software may have 
failed under certain DOS memory conditions, and it failed in 
such a way that some PROM-burning programs may not have read 
the Neuron ROM image file correctly, and the PROM contents 
would not have been correct. The Packet Monitor function of 
the IDE is also enhanced by this patch, such that the More 
button to display raw packet contents is always enabled.

This service pack upgrades the Neuron C Compiler (APCX.EXE and 
APC.EXE) from the revision level 2.72 to the revision level 
2.74, containing the following fixes:

1) Corrected implementation of the uninit feature, allowing it 
to be used with eeprom network variables, preventing the 
incorrect use of the keyword with RAM variables.  Also, the 
compiler's output for the debug info file was modified so the 
debugger would not be confused by use of the uninit feature.

2) Permit specification of "#pragma num_alias_table_entries 0" 
which was the default if the pragma was not used.

3) Corrected code generation error for the expression "&(a[k]-
>f)" where 'k' was a constant, and 'f' was a field other than 
the first field in a structure.

4) Corrected a problem that caused the compiler to abort with 
the message "Trap 231" when compiling certain expressions of 
the form "0 - <expr>".

5) Corrected a problem that caused the compiler to mistakenly 
optimize the expression ((<expr> & <const>) ^ <const>) where 
<const> was the same in both occurrences, into an incorreect 
implementation that yielded incorrect results of calculation.  
The fixed compiler (after applying the patch) will no longer 
perform the mistaken optimization.  Instead, it will print a 
warning message of the form "EPR 7245 Fix!".  This warning 
message will indicate that the code being compiled used to be 
affected by the optimization problem described here.

This service pack upgrades the Neuron Chip Linker (NLDX.EXE 
and NLD.EXE) from version 3.1.010 to 3.1.012.  The problem 
fixed is the enabling of use of the resp_in.addr() function on 
the 3120 series of chips.  The linker did not correctly 
recognize the presence of support for this feature when the 
support code was brought in from the GEN.LIB Standard Neuron 
library.


5.  Errata for the LonBuilder User's Guide - Revision 3
=======================================================

Page 2-12 - Change the last paragraph to the following:  If 
your hardware is installed correctly, SWITCH.NC will be loaded 
in the emulator in slot 2 and LAMP.NC will be loaded in the 
emulator in slot 3.  SWITCH.NC toggles the IO_0 LED when the 
IO_4 button is pressed.  LAMP.NC sets the state of its IO_0 
LED to match its input, which comes from SWITCH.NC.

Page 4-12 - Second paragraph, third line.  Replace "hen" with 
"when".

Page 7-25 - Replace the description for option bit mask value 
"0x0200", that begins with "Go applicationless if ..." with 
the following text: "Consider the applicationless state to be 
an application fatal error (when this option is used in 
conjunction with 0x0001, the combination will prohibit network 
loading).  Other application fatal errors are defined in the 
paragraph below."

Page A-22 - In the descriptions of the "Expand Tabs" and 
"Write Tabs" editor options, the descriptions say that the 
editor uses the fixed tab size setting to determine how to 
convert spaces to tabs, and tabs to spaces.  This is not 
correct.  The editor always uses a tab size of eight spaces 
when expanding tabs as a file is read, or when writing a file.  
The editor's tab size setting only controls the size of a tab 
when input from the keyboard as text is being added or 
inserted.

Index - Changes
    I-3, updating data in a browser list: add "13-23"
    I-3, viewing data in a browser list: add "13-19"
    I-7, development network, connections, message tag:
                                        replace "11-01" with "11-10"
    I-7, development network, copying/modifying objects:
                                        ignore the extra "10-31"
    I-8, network image, build all: insert a space before "11-16"
    I-9, EEPROM, EEPROM start: replace "1 6" with "6-16"
    I-12, learning router: replace "7" with "9-7"
    I-13, LonBuilder expansion boards: replace "1-" with "1-8"
    I-13, LonBuilder processor boards: replace "1-" with "1-5"
    I-16, Keyboard: replace "30" with "A-30"
    I-17, menus, submenus: insert a space before "3-6"
    I-17, message tags: replace "11-0" with "11-10"
    I-17, message tag connection parameter window, service type:
                                        insert a space before "11-13"
    I-18, network, addressing: add "10-2"
    I-18, network, design: add "Chapter 10"
    I-18, "developmen" should be "development"
    I-18, network, traffic: add "12-2"
    I-18, network, variables: replace "see also" with "see"
    I-19, network manager, loading application images: add "7-8, 10-2"
    I-19, network manager, installing nodes: add "6-29"
    I-22, add:
          "options, project 4-10"
          "options, system  4-6"
    I-23, page down: replace "PgDnp" with "PgDn"
    I-27, update_clone_domain(): replace "33" with "7-33"


6. Errata for the Neuron C Reference Guide - Revision 1
=======================================================

The Neuron C Reference Guide has a teal (greenish blue) cover.	
The errata for Revision 1 and Revision 2 of this manual are 
listed SEPARATELY in this section, and in the following 
section (section 11), respectively.  Please use only the 
errata listing for the Revision of the manual which you have.

Page v - In list of Chapters, add "Chapter 2, Predefined 
Events". Replace "Chapter 2, Functions" with "Chapter 3, 
Functions". Replace "Chapter 3, Network Variable Declarations" 
with "Chapter 4, Network Variable Declarations".  Delete 
"Chapter 4, How Nodes Communicate Using Messages ... and 
receive explicit messages." 

Page 3-5 - Add the muldiv24() and muldiv24s() functions to the 
list of Integer Math functions.

Page 3-8 - Add the eeprom_memcpy() and crc8() and crc16() 
functions to the list of Utilities functions.

Page 3-27 - In the top paragraph, change the named constants 
"FL_DEFAULT, FL_FIXED, or FL_SCIENTIFIC" to the correct 
spelling, "FMT_DEFAULT, FMT_FIXED, or FMT_SCIENTIFIC".

Page 3-33 - Fix the function prototype for ansi_memset() to 
have a return type of "void *".

Page 3-38 - Correct the discussion of crc16() by changing the 
prototype from "unsigned long new_data" to read "unsigned int 
new_data".	Change the phrase in the next paragraph from "over 
an array of data" to "over an array of bytes of data".  Change 
the example declaration of the data array to read "unsigned 
data [SIZE];".

Page 3-39 - Documentation for the eeprom_memcpy() function was 
mistakenly omitted.  The eeprom_memcpy() function is 
documented to some extent in the Neuron C Programmer's Guide 
(the other book, with the yellow cover) on page 6-26.  Add a 
note on Page 3-39 to that effect. Additionally, the following 
documentation can be inserted into the Neuron C Reference 
Guide:

eeprom_memcpy()						Function

void eeprom_memcpy (void * dest, void * src, unsigned short len);

The eeprom_memcpy() function copies a block of len bytes from 
src to dest.  It does not return any value. This function 
supports destination addresses that reside in EEPROM or flash 
memory, where the normal memcpy() function does not.  Writing 
to EEPROM or flash memory requires certain special actions on 
the part of the firmware to perform any appropriate handshakes 
or delays required by the memory.

This function supports a maximum length of 255 bytes.

See also the descriptions for the ansi_memset(), 
eeprom_memcpy(), memccpy(), memchr(), memcmp(), and memset() 
functions.

    EXAMPLE:

    #pragma relaxed_casting_on

    eeprom far widget[100];
    far ram_buf[100];

    eeprom_memcpy(widget, ram_buf, 100);


Page 3-62 incorrectly documents the make_long() built-in 
function. Replace the documentation of the function with the 
following:

unsigned long make_long (unsigned short low_byte,
			 unsigned short high_byte);

The example should show:

    a = 16;		    // Hex value 0x10
    b = -2;		    // Hex value 0xFE
    l = make_long(a, b);    // l now contains 0xFE10
    l = make_long(b, a);    // l now contains 0x10FE


Page 3-64 - Correct the return type of the memcmp() function.  
The return type is shown as "void *" but should be "int".

Page 3-85 - The first line of the first paragraph discussing 
the function rotate_long_left says "value of a."  Replace with 
"value of arg."

Page 3-86 - The first line of the first paragraph discussing 
the function rotate_long_right says "value of a."  Replace 
with "value of arg."

Page 3-86 - The first line of the first paragraph discussing 
the function rotate_short_left says "value of a."  Replace 
with "value of arg."

Page 3-87 - The first line of the first paragraph discussing 
the function rotate_short_right says "value of a."	Replace 
with "value of arg."

Page 3-88 - Change the paragraph prior to the example from 
"which is fixed, independent of the Neuron Chip input clock" 
to read "which is fixed, compensating for the selected Neuron 
Chip input clock." 

Page 3-91 - At the end of the first paragraph, reference is 
made to a "#pragma set_eeprom_lock", however, this should read 
"#pragma eeprom_locked".

Page 3-101 - The documentation for the timers_off() function 
was not placed on this page.  Instead, it was mistakenly 
placed (out of alphabetical order) on page 3-104.  Add a note 
on page 3-101 to this effect.

Page 5-2 - Change declaration syntax to read:
    "mtimer [repeating] timer-name [= initial-value];"
    "stimer [repeating] timer-name [= initial-value];"
Add the following description of the new syntactical element:
    "initial-value     specifies an optional initial value to be
		       loaded into the timer on power-up or reset.
		       Zero is loaded if no initial-value is supplied." 

Page 5-2 - Change the last line of the paragraph which 
discusses "timer-name" from "Up to 16 timer objects may be 
declared" to "Up to 15 timer objects may be declared".

Page 6-7 - In the next to last paragraph discussing 
nv_in_addr, remove the sentence "The nv_in_addr variable is 
available on 3150-based nodes only." 

Page 8-5 - Change the text in the second line of the 
discussion of "numbits" from "any number from 1 to 16" to "any 
number from 1 to 31."

Page 8-19 - In the example, change the declaration of pre_load 
to read: "unsigned long pre_load = 0x4000;"

Page 8-24 - In the third line of the last paragraph, change 
the statement "If more than bit_count bits appear ..." to "If 
more than or exactly bit_count bits appear ..." 

Page 8-67 - In the description of the "crc8" function, replace 
"CR7-8" with "CRC-8", and replace "new CRC value" with "new 8-
bit CRC value". In the prototype declaration of the "crc16" 
function, replace the second parameter "unsigned long new-
data" with "unsigned short new-data".  In the description of 
the "crc16" function, replace "CR7-16" with "CRC-16", and 
replace "new CRC value" with "new 16-bit CRC value".

Page 8-69 - Replace the third paragraph with the following: 
"When using the pulse output configuration, an output value of 
65535 (the overrange value) assures that no output pulse is 
generated. This is the equivalent of an OFF state.  When using 
the level output configuration, there will always be some 
amount of output signal; use an output value that is about 95% 
of the half-cycle period to approximate the OFF state." 

Page 10-58 - Add to the end of the first paragraph "or the use 
of a function macro with an insufficient number of ending 
right parentheses." 

Index - All references in the index to built-in variables, 
items which are contained in Chapter 6, are incorrectly shown 
as being in Chapter 5.  For example, on page I-1 of the index 
of the Reference Guide, the entry for activate_service_led is 
shown as page 5-3. The correct reference is page 6-3.

Index - Changes
    I-5, dualslope: replace "2-73-52" with "2-7, 3-52"
    I-7, function bcd2bin(): replace "35" with "3-35"


7. Errata for the Neuron C Reference Guide - Revision 2
=======================================================

The Neuron C Reference Guide has a Teal (greenish blue) cover.	
The errata for Revision 1 and Revision 2 of this manual are 
listed SEPARATELY in the previous section (section 10) and in 
this section, respectively.  Please use only the errata 
listing for the Revision of the manual which you have.

Page 3-5 - The brief description of the muldiv24() and 
muldiv24s() functions says that muldiv24() is signed and that 
muldiv24s() is unsigned.  In fact, the muldiv24() function is 
unsigned, and the muldiv24s() function is signed.

Page 3-27 - In the top paragraph, change the named constants 
"FL_DEFAULT, FL_FIXED, or FL_SCIENTIFIC" to the correct 
spelling, "FMT_DEFAULT, FMT_FIXED, or FMT_SCIENTIFIC".

Page 3-40 - In the example at the top of the page, include the 
compiler directive "#pragma relaxed_casting_on" as the first 
line of the example.

Page 3-64 - Correct the return type of the memcmp() function.  
The return type is shown as "void *" but should be "int".

Page 3-88 - Change the paragraph prior to the example from 
"which is fixed, independent of the Neuron Chip input clock" 
to read "which is fixed, compensating for the selected Neuron 
Chip input clock." 

Page 3-91 - At the end of the first paragraph, reference is 
made to a "#pragma set_eeprom_lock", however, this should read 
"#pragma eeprom_locked".

Page 8-19 - In the example, change the declaration of pre_load 
to read: "unsigned long pre_load = 0x4000;"

Page 8-67 - In the description of the "crc8" function, replace 
"CR7-8" with "CRC-8", and replace "new CRC value" with "new 8-
bit CRC value". In the prototype declaration of the "crc16" 
function, replace the second parameter "unsigned long new-
data" with "unsigned short new-data".  In the description of 
the "crc16" function, replace "CR7-16" with "CRC-16", and 
replace "new CRC value" with "new 16-bit CRC value".

Page 10-3 - The first error message, "Access to stack variable 
is beyond end of stack" is out of alphabetic order.

Index
    I-15 - Erroneous page break leaves only one line on page I-15.
    I-21 - Microprocessor Interface Program (MIP): replace "18-46"
	   with "8-46"


8. Errata for the Neuron C Programmer's Guide - Revision 3
==========================================================

The Neuron C Programmer's Guide has a Yellow cover.  The 
errata for Revision 3 and Revision 4 of this manual are listed 
SEPARATELY in this section, and in the following section 
(section 13), respectively. Please use only the errata listing 
for the Revision of the manual which you have.

Page 1-3 - Last paragraph.  Replace "The system image and network
image" with "The application image and network image." 

Page 1-7 - Second paragraph.  Add margin note "SNVTs are described in
the SNVT Master List and Programmer's Guide."

Page 1-19 - Third Paragraph.  Change "Initialization of I/O
objects ..." to "Initialization of timers, I/O objects ...".

Page 1-21 - Description of "#pragma all_bufs_offchip."	In third line,
change "application buffers" to "application and network buffers."

Page 1-22 - Add the following additional options to the discussion of
"#pragma codegen <option>" in the list of options.
	expand_stmts_off
	expand_stmts_on
	    .
	    .	<existing list>
	    .
	optimization_off
	optimization_on

Page 1-23 - Add the following text at the end of the section discussing
the "#pragma codegen <option>":

The expand_stmts_off and expand_stmts_on options control the behavior
of the compiler code generator.  Normally, statement expansion is off.
To permit the network debug kernel to set a breakpoint at any statement
whose code is stored in modifiable memory, the statement's code must be
at least two bytes in length.  Due to optimization, some statements can
be accomplished in less than two bytes of generated Neuron machine
code.  Activating statement expansion tells the code generator to
insure that each statement contains at least two bytes of code by
inserting a NOP instruction if necessary.

The optimization_off and optimization_on options also control the
behavior of the compiler code generator.  Normally, optimization is on.
To prevent the compiler's code optimizer from collapsing two or more
statements together, and thus making it difficult to place breakpoints
in a program being debugged, this option can be used to disable all
compiler optimization.	This option may also be useful if an
optimization problem is suspected, as code can be generated without
optimization, and its behavior compared.

Page 1-23 - In the discussion of the "#pragma disable_servpin_pullup",
insert the following text: "This directive is not recommended for use
with a LonBuilder Neuron Emulator".

Page 1-25 - The documentation for the idempotent_duplicate_off & the
idempotent_duplicate_on pragmas states:  "This feature only applies
to MIPs and is off by default."  Actually, there is no default for this
feature.  The documentation should say "This feature only applies to
MIP applications, and one of these pragmas is required when compiling
if the #pragma micro_interface directive is also used." 

Page 2-13 - Change the declaration syntax for timers to be as shown:
    "mtimer [repeating] timer-name [= initial-value];"
    "stimer [repeating] timer-name [= initial-value];"

Page 2-14 - Prior to example, add:
    "initial-value     specifies an optional initial value to be
		       loaded into the timer on power-up or reset.
		       Zero is loaded if no initial-value is supplied." 

Page 2-22 - Next to last paragraph under "I/O Resources" - Change the
text "Neurowire and serial I/O objects ..." to "Neurowire, I2C,
magcard, magtrack1, and serial I/O objects ..."t

Page 3-9 - Add to the discussion about the "config" network variable
class, that the keyword only applies to input network variables.

Page 4-13 - Add to the discussion about the sizeof function that "For
messages of unknown or variable length, use msg_in.len or resp_in.len,
limited by the sizeof(s) to prevent writing past the end of s." 

Page 4-24 - Add to the discussion about message completion events "When
using an unqualified message completion event, the built-in variable
msg_tag_index may be used to determine which message tag was
responsible for the event.  See the Neuron C Reference Guide,
Chapter 6, for more information." 

Page 5-12 - Add to the margin note "The flush_wait() function does not
check for outstanding network variable updates or incoming messages." 

Page 6-9 - At the end of the discussion of the
"#pragma app_buf_in_size n" add the following text:
"A size of less than 34 is not recommended if explicit addressing
of messages is being used." 

Page 6-22 - At the end of the first paragraph, change "any declaration
can" to "any data or function declaration can".  Likewise, in the
first paragraph of the section below, titled "onchip Keyword", in the
fourth line, change "any declaration can" to "any data or function
declaration can".

Page 6-29 - In the third "bulleted" paragraph, replace "additional
4-byte fixed overhead" with "additional 7-byte fixed overhead." 

Index - Changes
    I-2, binary constants: replace "15" with "1-15"
    I-2, binder: no references, add "3-6"
    I-4, config, keyword: out of alphabetic order
    I-7, eeprom_memcpy: (new topic) page "6-26"
    I-9, flush_wait() function: add "5-12"
    I-12, lamp/switch example: replace "1-9l" with "1-9"
    I-20, project manager: out of alphabetic order


9. Errata for the Neuron C Programmer's Guide - Revision 4
==========================================================

The Neuron C Programmer's Guide has a Yellow cover.  The 
errata for Revision 3 and Revision 4 of this manual are listed 
SEPARATELY in the previous section (section 12) and in this 
section, respectively. Please use only the errata listing for 
the Revision of the manual which you have.

Page 1-21 - Description of "#pragma all_bufs_offchip."	In 
third line, change "application buffers" to "application and 
network buffers."

Page 2-14 - Correct the example declaration near the top of 
the page by changing "led_timera" to "led_timer", as it 
appears in the following examples.

Page 6-9 - At the end of the discussion of "#pragma 
app_buf_in_size n" add the following text:  "A size of less 
than 34 is not recommended if explicit addressing of messages 
is being used." 

Page 6-22 - At the end of the first paragraph, change "any 
declaration can" to "any data or function declaration can".  
Likewise, in the first paragraph of the section below, titled 
"onchip Keyword", in the fourth line, change "any declaration 
can" to "any data or function declaration can".


10.  Errata for the LonBuilder Hardware Guide - Revision 4
==========================================================

The Model 21680 LonBuilder Module Application Interface 
described in the LonBuilder Hardware Guide is now called the 
LONWORKS Module Application Interface.  The same board may now 
be used with both the LonBuilder and NodeBuilder hardware.

Pages 2-2 - 2-3 - Tables 2-1 and 2-2 do not list the correct 
contents of the LonBuilder kits.  See the datasheet at 
www.echelon.com/products for an up-to-date listing.

Page 2-49 - In Figure 2-41, replace the legend JP3 with 
JP1/JP2 in two places.

Page 2-94 - Replace Figure 2-85 with the following:

                20-Pin
                Header                          DB-25
                 Pin#           Signal          Pin #
                ------          ------          -----
                   1              IO0            13
                   2              IO1            25
                   3              IO2            12
                   4              IO3            24
                   5              IO4            11
                   6              IO5            23
                   7              IO6            10
                   8              IO7            22
                   9              IO8             9
                  10              IO9            21
                  11             IO10             8
                  12              CP4*           20
                  13              CP3*            7
                  14              CP2*           19
                  15           ~SERVICE*          6
                  16          Reset Input*       18
                  17            -12VDC*           5
                  18            +12VDC*          17
                  19             +5VDC            4
                  20              GND            16

                * These signals are not used by the Gizmo 2.

            Figure 2-85.  Application I/O Interface Cable Connector

Page 2-95 - Add "... when not using an emulator" to the caution.

Echelon, LON, LONWORKS, LonBuilder, NodeBuilder, LonManager, LonTalk,
LonUsers, LonPoint, Neuron, 3120, 3150, the Echelon logo, and the
LonUsers logo are trademarks of Echelon Corporation registered in the
United States and other countries.  LonLink, LonResponse, LonSupport,
i.LON, LonWorld, Device Tone, ShortStack, and LonMaker are trademarks
of Echelon Corporation.

End of ReadMe file.



