Difference between revisions of "WISE-ED22 User Manual"

From ESS-WIKI
Jump to: navigation, search
Line 1: Line 1:
= Introduction =
+
= Overview[https://developer.mbed.org/platforms/SWDAP-LPC11U35/#overview ¶] =
  
 
DAPLink is firmware that runs on a microcontroller that is connected according to a Hardware Interface Circuit (HIC) guideline. This provides methods to program and debug an application running on ARM processors via JTAG or SWD. The interface firmware exposes a USB composite device to the host OS with CDC, HID and MSC endpoints. These endpoints are critical when developing software for microcontrollers. Description of endpoints:
 
DAPLink is firmware that runs on a microcontroller that is connected according to a Hardware Interface Circuit (HIC) guideline. This provides methods to program and debug an application running on ARM processors via JTAG or SWD. The interface firmware exposes a USB composite device to the host OS with CDC, HID and MSC endpoints. These endpoints are critical when developing software for microcontrollers. Description of endpoints:
Line 14: Line 14:
  
 
1: ED22 reset button
 
1: ED22 reset button
 +
 +
 +
 +
= Reprogramming SWDAP =
 +
 +
When a new SWDAP is plugged in to your machine, it will not contain valid any firmware, and so will appear as a disk drive called "CRP Disabled" as.
 +
 +
To progam the SWDAP, follow these steps:
 +
 +
*Open the drive, and delete the file called "firmware.bin"
 +
*Download the required image from the table above (or built your own using [https://github.com/mbedmicro/DAPLink DAPLink project])
 +
*Copy the .bin file onto the "CRP Disabled" drive.
 +
**On Windows, replace firmware.bin with the above firmware
 +
**On Linux/Mac, use command: '''dd if={new_firmware.bin} of={firmware.bin} conv=notrunc'''
 +
*Unplug your SWDAP, and plug it back in
 +
*It should now appear as a disk drive called DAPLink
 +
 +
You can re-program your SWDAP at any time by plugging it in with the button held down. This will cause it to appear as the "CRP Disabled" drive, at which point you can follow the steps above.
  
 
=  =
 
=  =

Revision as of 02:35, 9 June 2017

Overview

DAPLink is firmware that runs on a microcontroller that is connected according to a Hardware Interface Circuit (HIC) guideline. This provides methods to program and debug an application running on ARM processors via JTAG or SWD. The interface firmware exposes a USB composite device to the host OS with CDC, HID and MSC endpoints. These endpoints are critical when developing software for microcontrollers. Description of endpoints:

  1. MSC - drag-n-drop programming flash memory
  2. CDC - virtual com port for log, trace and terminal emulation
  3. HID - CMSIS-DAP compliant debug channel


H/W 

ED22 board v1.png

1: ED22 reset button


Reprogramming SWDAP

When a new SWDAP is plugged in to your machine, it will not contain valid any firmware, and so will appear as a disk drive called "CRP Disabled" as.

To progam the SWDAP, follow these steps:

  • Open the drive, and delete the file called "firmware.bin"
  • Download the required image from the table above (or built your own using DAPLink project)
  • Copy the .bin file onto the "CRP Disabled" drive.
    • On Windows, replace firmware.bin with the above firmware
    • On Linux/Mac, use command: dd if={new_firmware.bin} of={firmware.bin} conv=notrunc
  • Unplug your SWDAP, and plug it back in
  • It should now appear as a disk drive called DAPLink

You can re-program your SWDAP at any time by plugging it in with the button held down. This will cause it to appear as the "CRP Disabled" drive, at which point you can follow the steps above.