User’s Manual
98
D.1.3 Dynamic C v. 10.11 (RCM4510W preview version only)
The coordinator and end-device/router firmware is provided in the Dynamic C
SAMPLES\
RCM4500W\MODEMFW
folder.
•
Firmware of the type
XB24-B_ZigBee_11….ebl
is used for a coordinator RCM4510W.
•
Firmware of the type
XB24-B_ZigBee_13….ebl
is used for an end device/router
RCM4510W.
When you use the bootloader function, you will have to provide a file read function that supplies
the binary image in record sizes specified by the
xmodem
protocol. The read function will have
the following prototype.
char *fileread(int recordNumber, int recordSize)
The function will return the address of a buffer containing the data. A NULL return signifies the
end of the file.
Before you compile and run this sample program, modify the
ximport
statement to point to the
binary image file you will be downloading.
#ximport "MODEMFW/Coordinator/XB24-B_ZigBee_1118.ebl" zb_ebl_file
In this example, the
XB24-B_ZigBee_1118.ebl
file is in the Dynamic C
SAMPLES\
RCM4500W\MODEMFW\Coordinator
folder. If you downloaded a firmware update to another
location on your hard drive, you would change the directory path accordingly as in the following
example.
#ximport "/temp/XB24-B_ZigBee_1118.ebl" zb_ebl_file
To see the details of what is happening while the sample program runs, you should
#define
the
following.
#define ZB_VERBOSE
#define XMODEM_DEBUG