Ok, I have loaded the CMSIS-DAP firmware to the LPC-Link2, but I cannot figure out how to load the .elf file. As you have mentioned S32DS does not support this, and Keil uVision is a lot of hassle since it does not import Eclipse projects easily, as far as I can see. I tried using pyOCD, but I am afraid of causing some irreversible damage.
Is there an easy way to flash the .elf file to the S32K118 using LPC Link2? Is there an IDE, or an application that I can use which supports flashing the S32K118 via CMSIS-DAP? Bare in mind that I will not use the debugging functionality, I just want to flash the .elf file, generated through S32DS.
Sorry if this is a trivial question but I am fairly new to this stuff and just cannot find a way to do it.
Thanks in advance.
Edit: I have loaded the CMSIS DAP firmware on to the LPC-Link2, and I have installed the CMSIS Pack for S32K118 via pyOCD. Then I connected the Target SWD/JTAG Port of the LPC Link2 to the J14 Port of the S32K118. Here is my issue: when I erase the chip, via pyOCD and LPC-Link2, the chip is indeed erased. However, as soon as the chip is erased the Red LED next to the OpenSDA USB turns on. After that I am unable to load the .elf file, and when I try to do so I get the "Core not found" error from pyOCD. The Red LED only turns off when I flash the .elf file through S32DS. What does that Red LED suggest? Is there a way to fix this somehow?
On another note, can I use my S32K118 EVB to flash the .elf file to the S32K118 on my custom board, via SWD? Since the EVB has OpenSDA debugger on board and the JTAG pins of the OpenSDA are available, using the EVB to program my custom board would solve all the issues. How can I configure the on-board OpenSDA so that I can flash my custom board via SWD.
Edit 2: After going through pyOCD forums I think I have solved the issue. So I am marking my question as "Assumed Answered." Feel free to contact if you are having the same issues.