ARMmbed / DAPLink

https://daplink.io
Apache License 2.0
2.34k stars 978 forks source link

Daplink firmware compatibility with K64 device family #978

Open asadkhaneicp opened 2 years ago

asadkhaneicp commented 2 years ago

Hi,

I have designed a custom board using NXP MK64FX512 MCU and included the OpenSDA circuit from the FRDM-K64F board. For OpenSDA, I have flashed the latest FRDM-K64F DAPlink bootloader and target firmware interface files, as mentioned on the daplink.io website.

After flashing the bootloader file, I am able to copy and paste the firmware interface file on Mk20 MCU, but while debugging on MCUXpresso it is giving me the error:> " Unable to connect wire for probe index 1" Error: Wire Ack Fault - target connected?

I also checked the hardware, everything looks ok and there is no issue with the hardware.

So, I just want to confirm whether the FRDM-K64F Daplink bootloader and firmware interface files will work with target MCU MK64FX512xx or not! The bootloader and firmware interface files are device specific? Because the FRDM-K64F board has a different target device MK64FN1Mxx.

Thanks, Mohammad Asad Khan

mbrossard commented 2 years ago

The bootloader firmware is HIC-specific (k20d in this case). The interface firmware is both HIC- and target-specific. A quick look at the differences between MK64FX512xx and MK64FN1Mxx, it looks like only the Flash size should make a difference for DAPLink, you should editsource/family/freescale/k64f/target.c.

The error does sound more like a communication error between the HIC and target. You might want to use a logic analyzer to check.