Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature-request #8] Check removing reset workaround for debug wire #82

Open
avrs-admin opened this issue Jan 27, 2022 · 0 comments
Open

Comments

@avrs-admin
Copy link
Collaborator

achimkraus
2014-01-05 09:31:11.953000

Using avarice 2.13 (linux) with dragon (version 7.34) in debug wire mode I recognized, that the device doesn't actually "reset" (sfrs not initialized). Investigating that shows a comment and workaround in "jtag2run.cc". I disabled the workaround and until now I can't see the mentioned problems and the sfrs are initialized as intended. Maybe be disabling the workaround could be implemented as commandline option.

void jtag2::resetProgram(bool possible_nSRST_ignored)
{
#if 0	
    if (proto == PROTO_DW) {
	/* The JTAG ICE mkII and Dragon do not respond correctly to
	 * the CMND_RESET command while in debugWire mode. */
	interruptProgram();
        setProgramCounter(0);
    } else {
#endif	
	uchar cmd[2] = { CMND_RESET, 0x01 };
	uchar *resp;
	int respSize;

	doJtagCommand(cmd, 2, resp, respSize);
	delete [] resp;

	/* Await the BREAK event that is posted by the ICE. */
	bool bp, gdb;
	expectEvent(bp, gdb);
#if 0	
    }
#endif	
}

This issue was migrated from https://sourceforge.net/p/avarice/feature-requests/8/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant