Linux users should build OpenOCD from source or download it through, for example, apt-get on Ubuntu distros.
You can download a precompiled version of OpenOCD for Windows from the Freddie Chopin webpage. The AK-CMSIS-DAP can be used with OpenOCD as a debugging or flashing probe. Select the Interface tab an configure the JTAG or SWD protocol according to your target’s characteristics. In the next windows select Debugger/CMSIS-DAP from the menu on the left.įrom this window you can configure how IAR will connect to your target through the AK-CMSIS-DAP. Launch the IAR Embedded Workbench IDE and select Options from the Project menu. In the JTAG Device Chain you can view the target device code (an STM32F103 in this case).Ĭonnect the AK-CMSIS-DAP to the target and to the PC, using the USB cable. Set the JTAG or SW modes according to your target’s characteristics. In the next windows select the AK-CMSIS-DAP device. Go to the Debug tab and select CMSIS-DAP Debugger from the drop-down menu, as in the following picture. In KEIL uVision, click on the “Options for Target…” button.Ī new window should open. Usage with KEIL uVisionĬonnect the AK-CMSIS-DAP to the target and to the PC, using the USB cable. All you need is a standard USB mini cable. The CMSIS-DAP standard uses the USB HID protocol as the transport protocol, so you don’t need any drivers, no matter the operating system, to use the AK-CMSIS-DAP board. It is very important to connect the pin 1 (Vcc) of the JTAG/SWD connector to the target board Vcc to adapt the internal AK-CMSIS-DAP buffers to the target signal levels. In the AK-CMSIS-DAP, all inputs and outputs signals, to and from the JTAG/SWD connector, are buffered.
To upgrade the firmware please read the Upgrading the firmware section.ģ.3V output from the MCU internal regulator. The AK-CMSIS-DAP comes programmed with an internal bootloader to upgrade the firmware using a simple RS232 line and a PC terminal program as TeraTerm. In the top of the board you can see a 7-pin connector and a BOOT push button as shown in the following picture: TCK output in JTAG mode, SWDCLK output in SWD mode TMS Output in JTAG mode, SWDIO I/O in SWD mode The following picture and table show the signals you can find in the standard 20-pin JTAG connector. The AK-CMSIS-DAP board has one 20-pin standard JTAG connector on one side and a strip of 7 utility pins on the other. We also added buffered inputs/outputs allowing to connect targets powered from 1.8V up to 5V, isolating the lines from the internal 3.3V voltage and protecting the internal MPU pins from external short-circuits and over voltages. The AK-CMSIS-DAP JTAG/SWD board is the Artekit implementation of that standard, running on quartzless SiLabs Happy Gecko EFM32 Cortex M0+ (the EFM32HG308F64G-B-QFN24), with 64KB Flash and 8KB RAM running at 25 MHz, completely open source and open hardware. The CMSIS-DAP standard not only eases the access to the Coresight Debug Access Port (DAP) of ARM Cortex microcontrolles, but also unifies all the JTAG protocols in a way that users and developers won’t need to support every JTAG/SWD probe protocol in their hardware/software tools. The AK-CMSIS-DAP is a JTAG/SWD probe based on the CMSIS-DAP standard (also known as DAPLink).
In this guide we are going to learn about the Artekit AK-CMSIS-DAP JTAG and how to use it with the most known IDEs and debugging software.
This is the user manual and guide for the AK-CMSIS-DAP JTAG/SWD board.