Hello everyone,
I'm trying to program a kinetis k20, more precisely a mk20dx256vlh7, using the SWD protocol and the U-Multilink- FX as a programmer.
I have connected to port B (20-pins) of the programmer which datasheed says it's possible to program a kinetis MCU.
At the moment to program, an error comes up referring to whats it seems the comunication between the software and hardware, finally showing and error of the GDB server, I've tryed many configurations and always appears the same problem.
Has someone dealt with that problem or/and knows how to fix it?
Best regards,
Eduard
Hello everyone,
Finally it's fix. It's easier than what I expected the solution is to put the reset of the host MCU (bootloader host) on teensy 3.2 the KL02 to GND. It's necessary to cut traces (SWD DIO // SWD CLK) and to solder the proper pins, well explained in https://mcuoneclipse.com/2014/08/09/hacking-the-teensy-v3-1-for-swd-debugging/ by doing this it's possible to program a teensy 3.2 in the same way as it is explained with the teensy 3.1.
Thanks a lot to the NXP Community, specially to Erich Styger and Alice Yang.
Hello Alice,
I've checked the debug configurations on Kinetis Design Studio, it detects de multilink programmer and I've tried also to program different eval boards and everithing was O.K. ( I've programmed succesfully everithing else) but not possible with the this board in concrete. The board is a teensy 3.2, that's why I decided to follow https://mcuoneclipse.com/2014/08/09/hacking-the-teensy-v3-1-for-swd-debugging/ even it's a project with teensy 3.1, both are using mk20dx256vlh7. Any idea about that?
Hi Eduard,
I don't have a Teensy 3.2, but the schematics for it compared to the 3.1 is different, as it uses the KL02 instead of the MINI54TAN. I assume that with this the SWD lines are different (pulled-up/etc), so you cannot apply my hardware trick 1-to-1 to the Teensy 3.2.
You probably need to completely isolate the SWD lines, but without a hardware I cannot confirm this.
Erich
Hello Eduard,
Sorry i don't know the teensy .
I recommend you on one hand , you can create another question , the name includes the word "teensy".
the expert will helps you .
On other hand , you can ask the author of the doc you followed :https://mcuoneclipse.com/2014/08/09/hacking-the-teensy-v3-1-for-swd-debugging/ he is the expert .
Hope it helps
Alice
Hello Eduard,
Please first check the debug configurations on KDS, make sues it detects you multilink :
(the picture not detect the multilink )
And what about your board , it is a demo board or custom board ?
BR
Alice