Other Parts Discussed in Thread: UNIFLASH
I was trying to set the Factory Reset Parameters in the Flash Mailbox before enforcing the factory reset command to remove the IP secure zones I had created during testing. I followed everything that was mentioned in the msp432p4XXX technical reference manual. But when I reboot reset the device using the following main code, it gave me the error -- "CORTEX_M4_0: Error connecting to the target: (Error -614 @ 0x0) The target indicates there is an error condition from a previous SWD request. Clear the error the condition, and try the SWD request again. (Emulation package 9.6.0.00172)"
#include <msp.h>
#include "flashmailbox.h"
#include "driverlib.h"
int main(void)
{
WDT_A->CTL = WDT_A_CTL_PW | WDT_A_CTL_HOLD; // Stop watchdog timer
SysCtl_rebootDevice();
while(1);
}
Flash Mailbox Array Configuration:
/*------General Configuration Group--------------------*/
0x0115ACF6, // MailBox start,
/* General Parameter Command:
* Acceptable values are one or a combination of the
* COMMAND_xxxx definitions or COMMAND_NONE */
0x20000000, // General Parameter Command
/* !Do not change, read-back/reserved addresses */
0xFFFFFFFF, // Factory Reset ACK
0xFFFFFFFF, // Reserved
/*-------Factory Reset Parameters Group-------------------------*/
/* Factory Reset Enable */
0xFFFFFFFF,
/* Factory Reset Password Enable */
0x00000000,
/* Factory Reset Password */
0x12345678,
0x12345678,
0x12345678,
0x12345678,
/* !Do not modify, reserved values */
0xFFFFFFFF,
0xFFFFFFFF,
I have used boot override with flash mailbox for configuring the IP secure zones previously and it gave me no error. I also cleared the flash mail box before setting the factory reset parameters command. The debug probe I'm using is XDS110. Please help me resolve this issue. I tried uninstalling the XDS110 drives but that doesn't help. It seems to be some kind of error in the firmware which is preventing a connection with the debugger.

