User`s guide

Code Development and Debugging
The PSG applications can be debugged only with the NodeBuilder Development
Tool. The LonBuilder Development Tool may be used to develop/load/export
applications, however no debugging facilities are available.
1. Use the Nodebuilder tool with the PSGBOR device templates described
above to create the following default [dummy] program:
#include <netdbg.h>
#define PSG20
#include <psg.h>
when (reset)
{
3
2. Export the program to Motorola S Records or Intel HEX format. See
Chapter 5 of the NodeBuilder User’s Guide for details.
3. Load an AT29C512 or AT29COlO FLASH part with your PROM
programmer.
4. Insert the FLASH. into the PSG and power the PSG. Be sure that your
NodeBuilder tool is connected to the PSG using the LONWORKS network.
(The same way you would connect to any other custom node.)
5. It is now possible to create a real application and download it over the
LONWORKS network to the PSG. The NodeBuilder debugging features
are available if you included
cnetdbg . h>
in your source.
Note: You should remove the reference to
cne tdbg . h
when creating
your final distribution build.
SLTA-10 Adapter User’s Guide 13-7