SEGGER - Jobs
emWin upgrade     Trade-In program     Web shop

FRDM-KL02Z eval board with
OpenSDA support

OpenSDA / OpenSDA V2 firmware

SEGGER offers a firmware running on the Freescale OpenSDA platform which makes OpenSDA compatible to J-Link Lite, allowing users to take advantage of most J-Link features like the ultra fast flash download and debugging speed or the free-to-use GDBServer, by using a low-cost OpenSDA platform for developing on evaluation boards. 

Features

  • Supports all ARM based Freescale boards which comes with on-board OpenSDA.
  • Implements SWD debug protocol and virtual COM port functionality.

Getting started with OpenSDA

Due to limitations of the OpenSDA bootloader replacing the firmware to use it as a J-Link can only be done on Windows and Linux systems. When the firmware is replaced, it can be used like any J-Link on Mac OS/X, too.
In order to get started with OpenSDA just a few steps are necessary:

  1. Make sure that the latest J-Link software package is installed: J-Link software package download
  2. Make sure that the USB drivers for J-Links with VCOM support are installed:
  3. Take the eval board which supports OpenSDA and connect it to the PC via USB while keeping the reset button of the board pushed. This will start the OpenSDA platform in MSD mode.
  4. The OpenSDA platform will show up as mass storage device (MSD) on the PC just like an USB stick.
  5. Download and extract the appropriate OpenSDA image
  6. Load the firmware by simply drag & drop the *.bin file on the device.
  7. After power-cycling the hardware, the OpenSDA platform will show up as J-Link on the PC.

Compatible Evaluation Boards

The following eval boards have been tested with the J-Link OB firmware and are known to be working. Other eval board may work as well but are not guaranteed to do so. In case of doubt, please consult SEGGER.

Evaluation Board OpenSDA bootloader version
FRDM-K22F 2.1
FRDM-K64F 2.0
FRDM-K66F 2.1
FRDM-K82F 2.1
FRDM-KE02Z40M 1.0
FRDM-KE04Z 1.0
FRDM-KE06Z 1.0
FRDM-KL02Z 1.0
FRDM-KL03Z 1.0
FRDM-KL05Z 1.0
FRDM-KL25Z 1.0
FRDM-KL26Z 1.0
FRDM-KL27Z 1.0
FRDM-KL28Z 2.0
FRDM-KL43Z 1.0
FRDM-KL46Z 1.0
FRDM-KL82Z 2.0
FRDM-KW019032 2.0
FRDM-KW40Z 2.0
TWR-K22F120M 1.0
TWR-K64F120M 1.0
TWR-K65F180M 1.0
TWR-KE18F 2.1
TWR-KL25Z48M 1.0
TWR-KL82Z72M 2.0
TWR-KM34Z75M 1.0
TWR-KV10Z32 1.0
TWR-KV46F150M 1.0
TWR-KW21D256 1.0
TWR-KW24D512 1.0
USB-KW41Z 3.2

Licensing

SEGGER created a firmware which runs on the Freescale OpenSDA platform, making it J-Link compatible. In order to make use of this firmware, the following Terms Of Use must be accepted:

  1. The firmware is only to be used with Freescale target devices. Using it with other devices is prohibited and illegal.
  2. The firmware is for use with evaluation boards only. It is not for use with custom hardware.
  3. The firmware may only be used for development and/or evaluation purposes. It may not be used for production purposes.
  4. The firmware is made available without any warranty and without support.

If there is any doubt if a certain use may be considered within the foregoing scope it is strongly recommended to consult SEGGER prior to use.
When starting a debug session, the following license dialog shows up which must be accepted in order to be able to work with OpenSDA:

 


Limitations

The firmware that makes the OpenSDA platform J-Link compatible has some limitations in contrast to an original, industry leading SEGGER J-Link:

  1. May be used with ARM based Freescale devices only.
  2. Only debugging on evaluation boards is allowed. Debugging on custom hardware is not supported and not allowed.
  3. No production flash programming support.
  4. Unlimited breakpoints in flash available for evaluation only.
  5. No support is given.

By using an original SEGGER J-Link PRO, J-Link ULTRA+ or J-Link PLUS, all these limitations will be gone. Learn more about J-Link


Drag-And-Drop programming support

Drag-And-Drop is a an additional feature of the J-Link OpenSDA firmware which adds a very intuitive programming feature. It allows programming your target MCU in a very simple way.

J-Link with Drag-And-Drop capability appears both as a debug probe and as a flash drive on the user's computer - similar to a USB stick. The J-Link's high performance and functionality for programming and debugging remain unchanged! The additional flash drive capability simplifies programming the target to dragging a Motorola S-record, Intel Hex, or plain binary file onto the J-Link Drive using the desktop.
More...

Note: Drag-And-Drop support is not mandatory to debug and flash your target via a debugger/IDE.


Firmware images

Upgrading from 3rd Party Firmware to J-Link OpenSDA Firmware

Follow the steps above to bring the OpenSDA into bootloader mode. Select the appropriate firmware image for the board you are using: Firmware download

Note: Programming a board-specific firmware will also update the MSD configuration of the OpenSDA, meaning the old configuration is overwritten and updated to the one that comes with the image. The MSD configuration is there to support drag and drop programming. If a custom MSD config is used etc., please follow the instructions at "Updating board that is already running J-Link OpenSDA firmware" which will only update the firmware, by prevsering the MSD ocnfiguration.

Updating a Board That is Already Running J-Link OpenSDA Firmware

Follow the steps above to bring the OpenSDA into bootloader mode. Check the table above to determine which OpenSDA bootloader version is running on the board. Select the appropriate generic OpenSDA firmware image for the OpenSDA bootloader version you are using: Firmware download

Note: Programming a generic firmware will only update the firmware, not the MSD config. In case the MSD config shall also be updated, please follow the instructions at "Updating board that is already running J-Link OpenSDA firmware".


Firmware version history

17-01-04:

  • Under very special circumstances it could happen that when sending data to the target via VCOM, the second byte sent after powering up OpenSDA was swallowed. Fixed.

16-09-07:

  • Firmware could crash because unaligned accesses crossing SRAM_L/SRAM_U inside the firmware could happen. Fixed.

16-08-01:

  • Under special circumstances, flash download could report an error during erase even if erasure worked fine.
    (Introduced with firmware from 16-07-12) Fixed.

16-07-12:

  • Added firmware for Open SDA V3.2
  • Added VMSD config for USB-KW41Z board

16-05-06:

  • MSD volume label can be defined by MSD config
  • MSD is not enabled, if no valid MSD config is found
  • Changed LED pin configuration to open drain
  • Changed RESET pin configuration to open drain and high drive strength

15-10-13:

  • MSD detach + reattach after MSD programming did not work properly. Fixed.
    (MSD task and timeout task had the same priority and round robin is not supported in release build)

15-10-06:

  •   Added MSD programming