ATmega169P has been programmed by AVRstudio v4.18.700 in WinXP SP3 in two ways. Firstly, the ISP method has been used with success, but JTAG programming not possible after ISP!!! The only way to fix this is restart programmer (reconnect AVRdragon). Strange behaviour?
Programming interface failed
Author
Message
Level: Moderator
Joined: Mon. Jul 18, 2005
Posts: 105140 View posts
Location: (using avr-gcc in) Finchingfield, Essex, England
Quote:
Strange behaviour?
Not if the JTAGEN fuse bit was set to 1.
Checked, JTAGEN=1.
Cannot take my mind why "prog. mode" drop-down list needed in this case? If the only way to change prog mode from ISP to JTAG is restarting Dragon/programmer...
Level: Moderator
Joined: Wed. Mar 28, 2001
Posts: 31358 View posts
Location: Sydney, Australia (Gum trees, Koalas and Kangaroos, No Edelweis, but plenty of Corona beer)
Quote:
Because you cleared JTAG with ISPbut JTAG programming not possible after ISP!!!
Quote:
Checked, JTAGEN=1.
js wrote:
Quote:Because you cleared JTAG with ISPbut JTAG programming not possible after ISP!!!Quote:Checked, JTAGEN=1.
In AVRstudio programmer JTAG interface was enabled. I don't change default value for JTAGEN fuse.
Level: Moderator
Joined: Wed. Mar 28, 2001
Posts: 31358 View posts
Location: Sydney, Australia (Gum trees, Koalas and Kangaroos, No Edelweis, but plenty of Corona beer)
1 is disabled, 0 is enabled. If you use Studio then the box ticked means enabled.
js wrote:
Yes, but the question is: why JTAG programming not possible after ISP without restarting programmer??? JTAG always enabled for me!!!
1 is disabled, 0 is enabled. If you use Studio then the box ticked means enabled.
Level: Moderator
Joined: Mon. Jul 18, 2005
Posts: 105140 View posts
Location: (using avr-gcc in) Finchingfield, Essex, England
Quote:
why JTAG programming not possible after ISP
Because, during the ISP, you reprogrammed the fuses and switched off the JTAG interface. Why are you surprised that you cannot use JTAG when it is switched off?
clawson wrote:
No, I'm not! In my device the fuses keep it's default values! I'm looking onto ISP and JTAG as fully independent interfaces for programming. Did you mean that programmer software disable JTAG fuse during the ISP?
Because, during the ISP, you reprogrammed the fuses
When I wrote "Checked, JTAGEN=1", this mean that checkbox enabled in AVRstudio programmer, not fuse value = 1! Of course, fuse value = 0 in this case.
Level: Moderator
Joined: Mon. Jul 18, 2005
Posts: 105140 View posts
Location: (using avr-gcc in) Finchingfield, Essex, England
Quote:
When I wrote "Checked, JTAGEN=1"
Then why did you type JTAGEN=1 if JTAGEN actually =0 ??