I am working with my own boards(S32K144).
J-link can't connect the board :
Connecting to target...ERROR: InitTarget(): PCode returned with error code -1
ERROR: Could not connect to target.
Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection...
Shutting down...
(S32DS v2.0)
Connecting to target...ERROR: Kinetis (connect): Communication error while accessing MDM-AP.
ERROR: Could not connect to target.
Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection...
Shutting down...
(S32DS v1.3)
The code that may make it happen:
for(j=0;j<0x20;j++)
{
ret = FlashEraseSector(&flashSSDConfig, address+FSL_FEATURE_FLS_PF_BLOCK_SECTOR_SIZE*j, size, pCmdSequence);
}
Did anybody have a similar issue? Any ideas are welcomed.
Thank you very much.