We (www.quantimetrica.com) have developed a custom board with the following:
Programmer (USB HOST): Freescale K20Z128VFM4 microcontroller
Target : Freescale MKL25Z128VFM4 microcontroller
It is programmaticaly a variant of the FRDM-KL25Z board but since we cannot get our hands on K20 chips with built-in OpenSDA V1 from PEMicro, we had to use OpenSDAv2
We are open to other similar solutions (if any).
We try to debug/program the target chip from our host without success (only directly using a spare FRDM-KL25Z board or other SWD programmer).
We have installed CMSIS-DAP firmware with mbed (from Github repository) and installed all the necessary windows drivers (serial port, MSD, etc). We see target and host in the Keil environment
but when we try to debug/program/erase the target chip we get RDDI-DAP error.
How can one make a custom firmware for the K20 so that it can program the KL25 using all the standard (and excellent!) Freescale tools (e.g. CW, KDS etc) that the FRDM-KL24Z uses
According to CMSIS_DAP Interface Firmware one needs to create a bootloader+flash algorithm and combine the two into a single firmware file.
Any application note for doing this?
Thank you very much in advance,