I've been trying for days now to use a mcu-link (not -pro) probe to flash our custom board based on an LPC1114 CPU. I want to use SWD and potentially also debug my code using e.g. gdb. But primarily I just primarily want to erase and program the flash memory.
I find it really difficult to find up-to-date info on how to connect the wires as well as how to set up a working software such as pyocd or openocd. So far I'm not even able to reset the device or erase the flash. pyocd and openocd both detect the mcu-link probe, but there is no successful communication with the device over SWD.
Where is the pinout for the 2x5 pin connector on the MCU-LINK board? Is it identical to Atmel's connectors? I have guessed so, but haven't found any documentation so I'm not sure. And what wires should be connected? GND, SWDIO and SWCLK are obvious, but do I also need to connect RESET and ISP pins, and if so, to which pin on the 2x5 connector?
I followed https://www.nxp.com/document/guide/getting-started-with-the-mcu-link:GS-MCU-LINK and after a surprisingly lengthy registration procedures for even getting access to the firmware download I managed to update the firmware. But which version of firmware should i flash the mcu-link probe with? I found that the version for windows (3.something) differs from the Linux download (V2.264). Where is the release history? I tried both, but none of them seems to work. And what is the "program-JTAG" firmware for? I tried that too and it just rendered the dongle undetectable with lsusb.
And how to make pyocd or openocd work with my CPU and board? I noticed a LPC11XX_32 target for pyocd, but I find no documentation confirming that this is right for my LPC1114? Should I perhaps download some device description "pack"? And do I need to somehow produce a custom "board" pack file myself in addition? If so: is there an instruction or example somewhere?
I'm surprised it is this hard to make the NXP probe MCU-LINK perform basic tasks on the widely spread NXP processor LPC1114. SWD seems like such a simple and standardized way to program Cortex Arms. Am I missing something obvious?
If I forget about SWD, is there any way to use the MCU-LINK probe to program the LPC1114 using ISP? Or is that not possible?
I eventually soldered a generic USB-to-UART (Adafruit MPC2221A) dongle to the LPC1114 board UART pins, flashed it to control the RESET and ISP pins using it's GPIO outputs, compiled a customized lpc21isp binary and was able to program my board with this setup. But surely there must be a way to use the MCU-LINK probe over SWD?