Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
krishna.velu
PostPosted: Jul 05, 2008 - 01:27 PM
Rookie


Joined: Apr 22, 2008
Posts: 20
Location: Mumbai (India)

Quote:
Upgrades:
Upload these via the supplied bootloader. The bootloader supplied MUST be used as this configures the bootloader calibrates teh oscillator to 7.37MHz so you dont need an external xtal.

Hi John! I could not use your bootloader32.hex with internal 8MHZ Crystal, Its not responding to 'S' in Hyperterminal. But if I use 7.2 MHZ crystal and I use IsoJtagISP_2.5_m32_7.3728MHz.hex of CoronaFire it is responding to 'S' & "JTAG" is also working properly. But what is my problem is exactly is I get this message sometimes when I start Debugging

"Error loading object file D:\Projects\AVR Series\ATmega32\TemperatureDisplay\default\TemperatureDisplay.elf"
"Coordinator: Error when writing memory contents to the debug platform.
Coordinator: Error loading object file."

and also in between single stepping through avr-studio "debug command could not be executed" message is comming.
my guess is that this may be due to because i`ve used
7.2MHZ crystal instead of 7.3728MHZ & unfortunatly i could`nt get it & i like to try your internal 8MHZ bootloader32.hex. Please help me.
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Johntiler
PostPosted: Jul 05, 2008 - 04:23 PM
Rookie


Joined: Sep 24, 2005
Posts: 47
Location: Christchurch New Zealand

You've only loaded the bootloader.hex, you need to open up AVRprog in AVRstudio and load the JTAGICE.hex's.

As for the debug error, it looks like a communications error. Make sure the frequencies and baud rates are good and that the cable lengths are short.
 
 View user's profile Send private message  
Reply with quote Back to top
krishna.velu
PostPosted: Jul 07, 2008 - 08:48 AM
Rookie


Joined: Apr 22, 2008
Posts: 20
Location: Mumbai (India)

Quote:
You've only loaded the bootloader.hex, you need to open up AVRprog in AVRstudio and load the JTAGICE.hex's.

As for the debug error, it looks like a communications error. Make sure the frequencies and baud rates are good and that the cable lengths are short.


I think you did`nt understand my problem "John". The "bootloader32.hex" whatever you have given for working with internal 8Mhz is not working properly (not responding for 'S' in hyperterminal). But if I use 7.2 MHZ crystal and I use IsoJtagISP_2.5_m32_7.3728MHz.hex of CoronaFire it is responding to 'S'. so please help me!
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
jporter
PostPosted: Jul 07, 2008 - 08:37 PM
Hangaround


Joined: Sep 03, 2004
Posts: 379
Location: Silicon Valley

[quote="krishna.velu"]
Quote:
...

But if I use 7.2 MHZ crystal and I use IsoJtagISP_2.5_m32_7.3728MHz.hex of CoronaFire it is responding to 'S'. so please help me!


I suspect that the boot loader is expecting to use the internal oscillator. I to not think that an 8MHz external can be calibrated to 7.3728MHz. Studio is pretty finicky as to the baud rate. I have no experience with the *nix command line tools. There may not be a baud rate divisor, which can generate the correct rate at 8MHz.

Also note that the divisor is hard coded in two places. One is in the boot loader. This copies the hex file to a location in memory. (Most clones have this set to the wrong address.) Inside the *.hex is a function which sets the baud from a table. Only the 7.3728MHz values are defined.

My patch for the Butterfly, patched this function to use the soft calibration of the internal oscillator.

-julie
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
krishna.velu
PostPosted: Jul 08, 2008 - 08:04 AM
Rookie


Joined: Apr 22, 2008
Posts: 20
Location: Mumbai (India)

Quote:
I suspect that the boot loader is expecting to use the internal oscillator.

I`m using internal 8MHZ crystal only. so wahatever code written for calibrating 8MHZ to 7.3728 it should work, but its not! can some one explain me what exactly have been done in that code!
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Johntiler
PostPosted: Jul 09, 2008 - 12:39 PM
Rookie


Joined: Sep 24, 2005
Posts: 47
Location: Christchurch New Zealand

Are you using the correct Baud Rate when communicating to the Bootloader?

Once the bootloader is up, load up the JTAG ICE hex files using the AVRBoot program.

Also make sure that the PD4 is I think pulled low. You need to set it to low in order for the AVR to enter the bootloader on power up.

To run the actual program set the PD4 back to high.

Cheers,
 
 View user's profile Send private message  
Reply with quote Back to top
suriva
PostPosted: Sep 01, 2008 - 11:28 AM
Newbie


Joined: Apr 21, 2008
Posts: 12


where i can found source code and full shcematic for jtag ice clone for atmega32 (works well, tested)

anybody can help me??

every night i try to open http://www.floppyspongeonline.com/autom ... tagisp.php
and that site was not redirecting correctly

anybody can help me??

thank you
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Sep 01, 2008 - 11:50 AM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62281
Location: (using avr-gcc in) Finchingfield, Essex, England

For me that floppysponge link successfully redirects to:

http://www.alelec.net/isojtagisp/isojtagisp.php

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
suriva
PostPosted: Sep 01, 2008 - 02:25 PM
Newbie


Joined: Apr 21, 2008
Posts: 12


really?? 4 hours ago i still can't enter that site. ok i'll try.

thanks clawson
 
 View user's profile Send private message  
Reply with quote Back to top
Fouwad
PostPosted: Dec 14, 2008 - 06:55 AM
Newbie


Joined: Dec 12, 2008
Posts: 4


can u help me with the pcb layout for jtag ice clone using atmega32
and wht steps shud i follow?
thanx
 
 View user's profile Send private message  
Reply with quote Back to top
Ali_dehbidi
PostPosted: Dec 14, 2008 - 05:19 PM
Posting Freak


Joined: Dec 22, 2005
Posts: 1261
Location: shiraz , iran

hi
you can use my project (stk500+jtag ice)
http://www.avrfreaks.net/index.php?modu ... em_id=1075

_________________
I love Digital
and you who involved in it!
 
 View user's profile Send private message  
Reply with quote Back to top
Fouwad
PostPosted: Dec 15, 2008 - 06:36 AM
Newbie


Joined: Dec 12, 2008
Posts: 4


ali dehbidi
can u kindly tel me tht wht changs shud i make to use atmega32 instead of atmega16
i wn2 use mega32 for this project
 
 View user's profile Send private message  
Reply with quote Back to top
Ali_dehbidi
PostPosted: Dec 17, 2008 - 06:58 AM
Posting Freak


Joined: Dec 22, 2005
Posts: 1261
Location: shiraz , iran

take a look at both data sheets if the sfr add and interrupt add are the same you can use it safly.
if it's hard for you to figure it out just try burnning my code to mega32 and see if it works?
it does not harm any thing.and as i have written the stk500 firmeware you can change the mcu in make file and recompile the project!

_________________
I love Digital
and you who involved in it!
 
 View user's profile Send private message  
Reply with quote Back to top
Fouwad
PostPosted: Dec 18, 2008 - 05:43 AM
Newbie


Joined: Dec 12, 2008
Posts: 4


i made jtag ice clone using atmega16
now i wn2 debug my atmega32 board using this jtag ice
can u help me wid it
thnx
 
 View user's profile Send private message  
Reply with quote Back to top
Ali_dehbidi
PostPosted: Dec 18, 2008 - 10:58 AM
Posting Freak


Joined: Dec 22, 2005
Posts: 1261
Location: shiraz , iran

you can select the debuge platform in avrstudio to jtag ice and connect your ice clone to mega32 via tck tms tdi and tdo pins and be sure to enable jtag and ocd debug fuse bits.

_________________
I love Digital
and you who involved in it!
 
 View user's profile Send private message  
Reply with quote Back to top
cokegen
PostPosted: Jul 04, 2010 - 03:20 AM
Newbie


Joined: Mar 15, 2004
Posts: 4
Location: Argentina

Hi, I'll try to be as concise as I can be:

I built the PCB from http://aquaticus.info/jtag
Using an Atmega32 (the only micro I have) bc it said in the page above it could be built with an m32.
Checked the PCB 20 times or so, I'm pretty confident that it's ok, but I'll make another one (better) just to be sure.
Tried all firmwares I saw in this thread to no avail.
The serial cable I'm using is a straightforward one (pin 2 mapped to the pin 2 in the other end, same for pin 3 and with pins 6-4 and 7-8 connected in both ends just as the schematic in the aquaticus page shows).

Tried all baudrates when connecting 9600, 19200, 115200 and none of those made a difference.

The crystal I'm using is a 7.3728 MHz one.

The COM port is working ok.

The fuses used to program the m32 are the ones the aquaticus page says ( http://aquaticus.info/jtag-how-build ) so it's lfuse = 0xff and hfuse = 0xd8

Am I doing something wrong ? Is there some advice for me ?

Really tried everything (a week or so by now) and I don't want to say this thing won me Razz

Thanks in advance for any reply ...


Carlos
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
js
PostPosted: Jul 04, 2010 - 03:43 AM
10k+ Postman


Joined: Mar 28, 2001
Posts: 20360
Location: Sydney, Australia (Gum trees, Koalas and Kangaroos, No Edelweiss)

Quote:
I don't want to say this thing won me
..like Germany you mean? Wink

_________________
John Samperi
Ampertronics Pty. Ltd.
www.ampertronics.com.au
* Electronic Design * Custom Products * Contract Assembly
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
cokegen
PostPosted: Jul 04, 2010 - 04:13 AM
Newbie


Joined: Mar 15, 2004
Posts: 4
Location: Argentina

You don't have to be THAT mean Very Happy
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
js
PostPosted: Jul 04, 2010 - 07:00 AM
10k+ Postman


Joined: Mar 28, 2001
Posts: 20360
Location: Sydney, Australia (Gum trees, Koalas and Kangaroos, No Edelweiss)

Take heart, we lost to Germany 4-0 too..so we are just as good. Laughing

"La mano de dios" was not with Maradonna this time.

_________________
John Samperi
Ampertronics Pty. Ltd.
www.ampertronics.com.au
* Electronic Design * Custom Products * Contract Assembly
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
cokegen
PostPosted: Jul 05, 2010 - 10:00 PM
Newbie


Joined: Mar 15, 2004
Posts: 4
Location: Argentina

I have bootloader32.hex working and it responds @ 19200 with the string AVRBOOT, now I need a way to upload the Version80.hex firmware to the m32 but I don't have any other programmers than a parallel sp12 and an USB usbasp. Is there a way to "upload" the Version80.hex firmware to the m32 without avrprog ?.

Also, what fuses exactly should I use for bootloader32.hex + Version80.hex ?

Also, I have the PCB from aquaticus, should I change this to the schematic provided by Johntiler here ?:

http://www.avrfreaks.net/modules/PNphpB ... 32_871.jpg

Cheers !
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits