Is source of CMSIS-DAP available?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Is source of CMSIS-DAP available?

跳至解决方案
4,501 次查看
kai_liu
Senior Contributor I

Recently I found some incomplete source release of CMSIS-DAP for NXP/ST ARM. I want to know if it is available from FSL for its MCU, like FRDM-KL25Z or other low-cost platforms?

If yes, then we can build a custom CMSIS-DAP debugger without disable on-board connection between K20 and KL25Z.

Allan

标记 (1)
0 项奖励
1 解答
1,362 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi Liu Kai,

FRDM-KL25Z board provides P&E OpenSDA debugger tool, which could use to debug other Kinetis chip.

About how to use FRDM-KL05Z board debug other Kinetis chip, You could find related info from below link:

https://community.freescale.com/thread/306394

And Freescale also provide Kinetis tower board, which with P&E OSJTAG debugger tool on board.

Wish it helps.

在原帖中查看解决方案

0 项奖励
5 回复数
1,362 次查看
drewbarbier
Contributor I

You can download CMSIS-DAP deliverables from ARM via the link below (requires login).

https://silver.arm.com/browse/CMSISDAP

Drew

0 项奖励
1,362 次查看
kai_liu
Senior Contributor I

Thank you, all of you.

I have registered and downloaded the deliverable. I finally realize one issue: all of the sources at my hand, including NXP version, STM version, FSL version are all built with Keil ARM uVision 4.6+. And my evaluation copy can not support it. It will stop at linking and tell me "RL-ARM can not be supported in your license"!

Since I can not offer a complete license from Keil, too expensive. I have to port it to IAR/GNU toolchain. Otherwise I have to copy the hardware design with prebuilt binary releases, like LPC11U37 and FSL K20 OpenSDA.

And I have to design another bootloader for K20 if I use its binary release. I have checked its S19, the application starts from 0x8000. It means the leading 32KB is taken by MSD bootloader.

My optimize solution for an open source CMSIS-DAP should be:

  • KL25Z128 (smaller package) with buffer output to JTAG/SWD
  • MSD bootloader (not available yet from FSL)
  • CMSIS-DAP build with GNU/IAR
  • OpenOCD gdbserver or PyOCD
  • Any IDE, including Keil/IAR/Eclipse with GNU or CMSIS-DAP RDDI.
0 项奖励
1,362 次查看
JAlvarez
Contributor II

A Keil MDK Pro license is not required for building the ARM DAP examples if you use the USB device stack source code. This stack was open sourced by the mbed/CMSIS-DAP project.

https://github.com/mbedmicro/CMSIS-DAP/tree/master/shared/USBStack

These projects at Github include Keil project files to use Freescale K20 MCUs as CMSIS-DAP debuggers and may be useful for your purposes. The mbed/CMSIS-DAP project also implements flash programming of targets via USB MSD, a USB CDC serial port, a USB bootloader and the Keil RTX RTOS.

mbedmicro/CMSIS-DAP · GitHub

micromint/mbed-DAP · GitHub

The mbed library also supports GCC and IAR. It shouldn't be difficult to adapt the GCC and IAR toolchain files from the mbed library to the mbed CMSIS-DAP project.

mbedmicro/mbed · GitHub

0 项奖励
1,362 次查看
kai_liu
Senior Contributor I

Thanks, I got it running on FRDM-K20.

0 项奖励
1,363 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi Liu Kai,

FRDM-KL25Z board provides P&E OpenSDA debugger tool, which could use to debug other Kinetis chip.

About how to use FRDM-KL05Z board debug other Kinetis chip, You could find related info from below link:

https://community.freescale.com/thread/306394

And Freescale also provide Kinetis tower board, which with P&E OSJTAG debugger tool on board.

Wish it helps.

0 项奖励