Dear All,
The same approach works fine when programming the MKw41Z embedded on the same FRDM-KW41Z or the MKw41Z embedded on another MKw41Z.
Our custom board is designed according to the recommendation of NXP, namely we followed the same schematic as indicated for the FRDM-KW41Z.
Hello Matteo,
I was also able to program the KW41 MCU from a FRDM-KW41Z with the OpenSDA JLink debugger interface from another freedom board. This must mean that there is something in your custom hardware that is affecting the OpenSDA JLink interface and the CMSIS-DAP interface is robust enough to work.
Have you checked with an oscilloscope that the SWD_DIO, SWD_CLK and Reset signals are clean and noise free?
My suggestion would be to try with a dedicated external JLink debug probe to see if it has the same behavior as the OpenSDA JLink interface.
About your questions, I believe you are not missing any step. Debugging your custom board should be the same as with the freedom board.
Let me know your findings.
Regards,
Gerardo