User Manual
JN5148 High-Power USB Dongle (DR1131)
Reference Manual
8 © NXP Laboratories UK 2012 JN-RM-2064 v1.0
4 Programming the JN5148 Device
4.1 Re-programming USB Dongles
You can easily re-programme a dongle with another binary file through a USB
port of your PC and the LPC1343 device on the dongle. The replacement binary
file must be a specially prepared file called FIRMWARE.BIN. When this file is
copied onto the mass storage device, the LPC1343 device holds the JN5148
device in reset and then programs the SPI Flash device directly, releasing the
reset once programming is complete. The LPC1343 device will also check the
MAC address in the SPI Flash device and preserve it though re-programming
operations if a new MAC address has not been specified in the new
FIRMWARE.BIN file.
4.2 Preparing the Binary File
Before a custom application binary file can be programmed into the USB dongle,
a utility called jn514x_firmware.exe must be run on the file to strip out a 4-byte
header. This utility is provided in the JenNet-IP SDK (JN-SW-4051) and is
located as follows:
C:/Jennic/Tools/NXP_USBDongle/jn514x_firmware.exe
The utility can be run from a bash shell using the following command:
/cygdrive/c/Jennic/Tools/NXP_USBDongle/jn514x_firmware.exe
with the following options:
-f is used to specify the name of the input file
-m is used to specify the IEEE/MAC address of the target device (: separated)
-c is used to specify the target chip type (in this case, should be JN5148J01)
Therefore, the required usage is:
.../jn514x_firmware.exe -f <app path/name> -m <MacAddress>
-c JN5148J01
4.3 Programming the Dongle
This re-programming of the dongle uses a simple ‘drag and drop’ method within
Windows Explorer, as follows:
1. Plug the USB dongle into a free USB port of your PC (if an ‘Installing driver’
message is displayed, refer to Section 4.4 below).
2. Open Windows Explorer - the dongle should appear as ‘Jennic_USB’.
3. If the dongle currently contains any files, delete them.
4. Within Windows Explorer, navigate to the new FIRMWARE.BIN file on your
PC, then ‘drag and drop’ or ‘copy and paste’ the new binary file onto the
USB dongle.