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

[patch #36] --capture option not working with old JTAGICE mkII firmware 6.07 #70

Open
avrs-admin opened this issue Jan 26, 2022 · 1 comment

Comments

@avrs-admin
Copy link
Collaborator

cdealti
2016-04-14 19:21:45.808000

You have an old JTAGICE mkII but are stuck with the old firmware version 6.07 (AVR Studio 4.18).
You don't want to download and install Atmel Studio 7 only to upgrade the firmware.
Unfortunately starting Avarice with --capture does not work as expected.
The target seems to halt but JTAGICE sends a break event where the PC value is zero.

Calling resumeProgram() just before interruptProgram() does the trick.

Accordingly to the AVR067 application note this command does nothing if the target is already running so it should not cause any harm in general.
However, I cannot test with latest firmware versions.

diff --git a/avarice/src/jtag2io.cc b/avarice/src/jtag2io.cc
index fc0a80a..55a1293 100644
--- a/avarice/src/jtag2io.cc
+++ b/avarice/src/jtag2io.cc
@@ -772,6 +772,7 @@ void jtag2::initJtagBox(void)
startJtagLink();
changeBitRate(115200);

  • resumeProgram();
    interruptProgram();

    deviceAutoConfig();

This issue was migrated from https://sourceforge.net/p/avarice/patches/36/

@avrs-admin
Copy link
Collaborator Author

cdealti
2016-04-14 19:28:31.567000

Better formatting

diff --git a/avarice/src/jtag2io.cc b/avarice/src/jtag2io.cc
index fc0a80a..55a1293 100644
--- a/avarice/src/jtag2io.cc
+++ b/avarice/src/jtag2io.cc
@@ -772,6 +772,7 @@ void jtag2::initJtagBox(void)
     startJtagLink();
     changeBitRate(115200);
 
+    resumeProgram();
     interruptProgram();
 
     deviceAutoConfig();

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