Hi all,
I've got a problem with programming an S32K344 development board. I had previously been testing the AUTOSAR MCAL, and accidentally flashed firmware without configuring the SWD and JTAG pins. It seems this has disabled the SWD and JTAG interfaces, preventing me from flashing any new firmware. I've been attempting to use Segger's J-Link tools to erase the chip, to no success.
I've written a .jlink script and a windows batch file to repeatedly try to connect and erase the chip. There are promising statements in the Jlink log, such as "Debug access enabled", "Successfully connected to selected DAP TAP.", and so on. I've attached the log to this post named "Jlink_CLI_log.txt". Unfortunately, in the end, it says "Locked device detected" and prompts for a 16-byte password. This is despite previously stating, "Device is not locked. Proceeding without the unlock procedure."
As I understand, this 16-byte password is an optional feature available in the S32K3 platform to prevent tampering in deployment environments. I haven't enabled this feature, so I'm looking for further debug methodologies.
I'm wondering if there's some way I can induce a crash or assertion in runtime, during Mcu_Init(), Mcu_InitClock() or early-on in Port_Init()? Might that prevent disabling of JTAG, and provide time to erase the chip?