problem with ATMEGA324PA and programmer devices

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hello anyone,
i have just purchased 4 ATMEGA324PA from element14 (my.element14.com) and i have DT-HIQ USB ISP AVR to program my device...when i try to read the chip signature using that programmer and my new codevisionAVR (version 2.05.0), i always get error message "AVRISP error leaving programming mode" and it all occurs on all of my ATMEGA324PA, but when i replace my ATMEGA324PA with my ATMEGA16A on my circuit board (my own design) and do the same thing again, it works without problems...btw i have checked and ensured that there is no problem with my circuit board (since it works well with my ATMEGA16A) so i think the problem maybe comes from my ATMEGA324PA or my DT-HIQ programmer...btw do you know how to solve this problem? doesn't my DT-HIQ support my mcu that i've just bought or is it my mcu that is broken already??

btw thx for your response :)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I cannot understand Indonesian, nor can I find an English manual.

It 'seems' as if it is a STK500v2 type programmer that appears as a COM port to Device Manager.

So I would guess that it should behave exactly like a STK500 in Studio4.

Do you get any errors with Studio4 ?

You can turn on debug logging for stk500.dll to see exactly what commands are failing. (instructions are in AVR068 app note)

Unfortunately CodeVision does not send directly to stk500.dll.

Likewise, you can use 'avrdude -c stk500v2 -P com#' and turn on the -vvvv debug flags.

Have you tried calling your chip 'ATmega324P' ?

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

david.prentice wrote:
I cannot understand Indonesian, nor can I find an English manual.

It 'seems' as if it is a STK500v2 type programmer that appears as a COM port to Device Manager.

So I would guess that it should behave exactly like a STK500 in Studio4.

Do you get any errors with Studio4 ?

You can turn on debug logging for stk500.dll to see exactly what commands are failing. (instructions are in AVR068 app note)

Unfortunately CodeVision does not send directly to stk500.dll.

Likewise, you can use 'avrdude -c stk500v2 -P com#' and turn on the -vvvv debug flags.

Have you tried calling your chip 'ATmega324P' ?

David.

btw i have installed avr studio 5 (i never installed avr studio 4 before) but my AVR USB ISP cannot be detected on that IDE....when i check the manual for my DT-HIQ, it is said in order to detect my USB ISP i have to find STK500.exe located in my avr studio 5 installation directory, but that file doesn't exist...where can find that file actually??

btw i thought DT-HIQ is manufactured outside indonesia because i found its description in this website :p

so do i have to buy the real programmer from atmel or can i still use my DT-HIQ programmer to program my ATMEGA324PA?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You can add STK500 to your Studio 5. Look in the tools menu.

It all depends how good your programmer is in fooling Studio5 that it is a real STK500. A real STK500 works ok when you install the STK500 support.

Otherwise simply download and install Studio4. CodeVision advises using Studio4 anyway.

Let us know how you get on. Do you have a link to an English manual?

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

david.prentice wrote:
You can add STK500 to your Studio 5. Look in the tools menu.

It all depends how good your programmer is in fooling Studio5 that it is a real STK500. A real STK500 works ok when you install the STK500 support.

Otherwise simply download and install Studio4. CodeVision advises using Studio4 anyway.

Let us know how you get on. Do you have a link to an English manual?

David.

i'm sorry i don't have english manual for my programmer...maybe what u said before is right, better i have to install avr studio 4....thx for the advice :)