interruptcom,
thank you for your reply. I did as what you wrote, but it not work.
I have some new finding:
IAR can work with AVR butterfly, in which CPU is ATMega169.
IAR can NOT work with my board, in which CPU is ATMega16, and shows "No CPU was
detected".
in my board, the JTAG interface is designed as same as AVR Butterfly.
I tracked the signals, and found:
When AVR Studio link with the boards, JTAGICE send a RESET signal to target board.
When IAR link with the AVR Butterfly, JTAGICE send a RESET signal to the target board.
When IAR link with my board, JTAGICE send NONE RESET signal to the target board, the RESET
remains high.
So, I think the problem is caused by IAR critical timing. By holding the RESET low, IAR
can downloading code to target board.
My conclusion is that IAR driver is not designed as well as AVR Studio.
By the way, I could not find where the thread I posted is in avrclub. I have to reply you
here.
Thank you very much.
QQ
To: a...@yahoogroups.comFrom: i...@yahoo.comDate: Sun, 6 Apr 2008 06:14:27 +0000Subject:
[AVR club] Re: IAR Embedded Workbench can not work with JTAGICE mkII
--- In a...@yahoogroups.com, shuiqq@... wrote:>> I have a problem to use JTAG ICE mkII
with IAR embedded workbench. > > I have installed IAR embedded workbench 4.12 for AVR, and
AVR Studio 4.12.468 with SP2. I also manually installed JTAG ICE mkII driver by running
wdreg.bat under IAR installation folder. > > Using IAR WEB, I select debug with JTAG ICE
mkII, it always shows "FATAL ERROR, No CPU was detected, check JTAG cable, JTAG setting,
power etc." > I am sure that all of the connections are good, because I can run AVR studio
and connected to the target board successfully without any change. > > The OS is Windows
XP Pro. The device I am using is ATMega16.> > Does anybody meet similar problem? Please
tell me what the problem is, and how to solve it. > > Thank you.>Hi,Do this steps and i
think may solve your problem:1. Compile your project in debug mode.2. Go to project option
and in debugger setting, set driver to JTAGICE-MKII and check run to (main).3. In linker
setting, set Format to C-Spy.4. Apply settings and run debugger with CTRL+D.good luck.
_________________________________________________________________
More immediate than e-mail? Get instant access with Windows Live Messenger.
http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_instantaccess_042008
[Non-text portions of this message have been removed]
------------------------------------
______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.
(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )