This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to debug nRF51-DK with CMSIS-DAP

Hi,

I have bought nRF51-DK and have downloaded the hex file successfully in the mbed mode, I wonder May I debug the DK with CMSIS-DAP instead of JLINK? I searched the internet for a while and didn't get the answer. Anyone have ideas for this?

Thanks in advance.

Parents
  • After taking a half day work, I finally make it works. It is very exciting to know that CMSIS-DAP works so well.

    1. First, you need download the CMSIS-DAP driver here:

    2. After install the driver, you will find 3 devices in your PC, they are a MBED USB Drive, a MBED CMSIS-DAP, and a virtual COM: image description

    3. Config the Keil debug tool to CMSIS-DAP: image description

    4. Be sure to set your CMSIS-DAP to SWD mode, otherwise your CMSIS-DAP is inactive with gray color. image description

    5. Copy the nrf51xxx.flm file from "C:\Keil\ARM\Pack\NordicSemiconductor\nRF_DeviceFamilyPack\1.1.4\Flash" to C:\Keil\ARM\Flash", And load the flash algorithm file by manual.

    image description

    And then you go! the CMSIS-DAP works very similar to JLINK, it is also offers a virtual COM for UART debug. Except you can't use it with nRFgo.

    Enjoy!

Reply
  • After taking a half day work, I finally make it works. It is very exciting to know that CMSIS-DAP works so well.

    1. First, you need download the CMSIS-DAP driver here:

    2. After install the driver, you will find 3 devices in your PC, they are a MBED USB Drive, a MBED CMSIS-DAP, and a virtual COM: image description

    3. Config the Keil debug tool to CMSIS-DAP: image description

    4. Be sure to set your CMSIS-DAP to SWD mode, otherwise your CMSIS-DAP is inactive with gray color. image description

    5. Copy the nrf51xxx.flm file from "C:\Keil\ARM\Pack\NordicSemiconductor\nRF_DeviceFamilyPack\1.1.4\Flash" to C:\Keil\ARM\Flash", And load the flash algorithm file by manual.

    image description

    And then you go! the CMSIS-DAP works very similar to JLINK, it is also offers a virtual COM for UART debug. Except you can't use it with nRFgo.

    Enjoy!

Children
No Data
Related