Updating debugger firmware
Updating OpenSDA firmware
Any NXP hardware platform that comes with an OpenSDA-compatible debug interface has the ability to update the OpenSDA firmware. This typically means to switch from the default application (either CMSIS-DAP/mbed/DAPLink or P&E Micro) to a SEGGER J-Link. This section contains the steps to switch the OpenSDA firmware to a J-Link interface. However, the steps can be applied to restoring the original image also. For reference, OpenSDA firmware files can be found at the links below:
J-Link: Download appropriate image from www.segger.com/opensda.html. Choose the appropriate J-Link binary based on the table in Default debug interfaces. Any OpenSDA v1.0 interface should use the standard OpenSDA download (in other words, the one with no version). For OpenSDA 2.0 or 2.1, select the corresponding binary.
CMSIS-DAP/mbed/DAPLink: DAPLink OpenSDA firmware is available at www.nxp.com/opensda.
P&E Micro: Downloading P&E Micro OpenSDA firmware images requires registration with P&E Micro (www.pemicro.com).
Perform the following steps to update the OpenSDA firmware on your board for Windows and Linux OS users:
Unplug the board’s USB cable.
Press the Reset button on the board. While still holding the button, plug the USB cable back into the board.
When the board re-enumerates, it shows up as a disk drive called MAINTENANCE.
|
|
Drag and drop the new firmware image onto the MAINTENANCE drive.
Note: If for any reason the firmware update fails, the board can always reenter maintenance mode by holding down Reset button and power cycling.
These steps show how to update the OpenSDA firmware on your board for Mac OS users.
Unplug the board’s USB cable.
Press the Reset button of the board. While still holding the button, plug the USB cable back into the board.
For boards with OpenSDA v2.0 or v2.1, it shows up as a disk drive called BOOTLOADER in Finder. Boards with OpenSDA v1.0 may or may not show up depending on the bootloader version. If you see the drive in Finder, proceed to the next step. If you do not see the drive in Finder, use a PC with Windows OS 7 or an earlier version to either update the OpenSDA firmware, or update the OpenSDA bootloader to version 1.11 or later. The bootloader update instructions and image can be obtained from P&E Microcomputer website.
For OpenSDA v2.1 and OpenSDA v1.0 (with bootloader 1.11 or later) users, drag the new firmware image onto the BOOTLOADER drive in Finder.
For OpenSDA v2.0 users, type these commands in a Terminal window:
> sudo mount -u -w -o sync /Volumes/BOOTLOADER > cp -X <path to update file> /Volumes/BOOTLOADER
Note: If for any reason the firmware update fails, the board can always reenter bootloader mode by holding down the Reset button and power cycling.
Parent topic:Updating debugger firmware
Updating LPCXpresso board firmware
The LPCXpresso hardware platform comes with a CMSIS-DAP-compatible debug interface (known as LPC-Link2). This firmware in this debug interface may be updated using the host computer utility called LPCScrypt. This typically used when switching between the default debugger protocol (CMSIS-DAP) to SEGGER J-Link, or for updating this firmware with new releases of these. This section contains the steps to reprogram the debug probe firmware.
Note: If MCUXpresso IDE is used and the jumper making DFUlink is installed on the board (JP5 on some boards, but consult the board user manual or schematic for specific jumper number), LPC-Link2 debug probe boots to DFU mode, and MCUXpresso IDE automatically downloads the CMSIS-DAP firmware to the probe before flash memory programming (after clicking Debug). Using DFU mode ensures that most up-to-date/compatible firmware is used with MCUXpresso IDE.
NXP provides the LPCScrypt utility, which is the recommended tool for programming the latest versions of CMSIS-DAP and J-Link firmware onto LPC-Link2 or LPCXpresso boards. The utility can be downloaded from www.nxp.com/lpcutilities.
These steps show how to update the debugger firmware on your board for Windows operating system. For Linux OS, follow the instructions described in LPCScrypt user guide (www.nxp.com/lpcutilities, select LPCScrypt, and then the documentation tab).
Install the LPCScript utility.
Unplug the board’s USB cable.
Make the DFU link (install the jumper labeled DFUlink).
Connect the probe to the host via USB (use Link USB connector).
Open a command shell and call the appropriate script located in the LPCScrypt installation directory (
<LPCScrypt install dir>
).To program CMSIS-DAP debug firmware:
<LPCScrypt install dir>/scripts/program_CMSIS
To program J-Link debug firmware:
<LPCScrypt install dir>/scripts/program_JLINK
Remove DFU link (remove the jumper installed in Step 3).
Repower the board by removing the USB cable and plugging it in again.
Parent topic:Updating debugger firmware