I'm using the download library to update the PN5180 FW. After interrupting a download, I'm no longer able to communicate with the chip, in neither normal mode nor download communication modes. Attempting to revive the chip by reprogramming it I restart the download process. Stepping into the phDlhalHw_Pn5180_Download_PerformSecureFirmwareUpdate() function, the first few exchanges with the chip successfully return but at some point I get an incorrect value in wRespLenInHeader (phDownload_lib.c, line 432) and exit with download protocol error.
If I let the code run the phDlhalHw_Pn5180_Download_CheckIntegrity() function it returns:
TableOk = 0x58
FunctionCodeOK = 0x02
PatchCodeOk = 0
UserDataOk = 0
Is there any method I can use to un-brick the chip?