| Author |
Message |
|
|
Posted: Jul 05, 2008 - 01:27 PM |
|

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. |
|
|
| |
|
|
|
|
|
Posted: Jul 05, 2008 - 04:23 PM |
|

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. |
|
|
| |
|
|
|
|
|
Posted: Jul 07, 2008 - 08:48 AM |
|

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! |
|
|
| |
|
|
|
|
|
Posted: Jul 07, 2008 - 08:37 PM |
|


Joined: Sep 03, 2004
Posts: 378
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 |
|
|
| |
|
|
|
|
|
Posted: Jul 08, 2008 - 08:04 AM |
|

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! |
|
|
| |
|
|
|
|
|
Posted: Jul 09, 2008 - 12:39 PM |
|

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, |
|
|
| |
|
|
|
|
|
Posted: Sep 01, 2008 - 11:28 AM |
|

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 |
|
|
| |
|
|
|
|
|
Posted: Sep 01, 2008 - 11:50 AM |
|


Joined: Jul 18, 2005
Posts: 62275
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
|
|
|
|
|
Posted: Sep 01, 2008 - 02:25 PM |
|

Joined: Apr 21, 2008
Posts: 12
|
|
really?? 4 hours ago i still can't enter that site. ok i'll try.
thanks clawson |
|
|
| |
|
|
|
|
|
Posted: Dec 14, 2008 - 06:55 AM |
|

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 |
|
|
| |
|
|
|
|
|
Posted: Dec 14, 2008 - 05:19 PM |
|


Joined: Dec 22, 2005
Posts: 1261
Location: shiraz , iran
|
|
|
|
|
|
|
Posted: Dec 15, 2008 - 06:36 AM |
|

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 |
|
|
| |
|
|
|
|
|
Posted: Dec 17, 2008 - 06:58 AM |
|


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!
|
| |
|
|
|
|
|
Posted: Dec 18, 2008 - 05:43 AM |
|

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 |
|
|
| |
|
|
|
|
|
Posted: Dec 18, 2008 - 10:58 AM |
|


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!
|
| |
|
|
|
|
|
Posted: Jul 04, 2010 - 03:20 AM |
|

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
Thanks in advance for any reply ...
Carlos |
|
|
| |
|
|
|
|
|
Posted: Jul 04, 2010 - 03:43 AM |
|


Joined: Mar 28, 2001
Posts: 20347
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?  |
_________________ John Samperi
Ampertronics Pty. Ltd.
www.ampertronics.com.au
* Electronic Design * Custom Products * Contract Assembly
|
| |
|
|
|
|
|
Posted: Jul 04, 2010 - 04:13 AM |
|

Joined: Mar 15, 2004
Posts: 4
Location: Argentina
|
|
You don't have to be THAT mean  |
|
|
| |
|
|
|
|
|
Posted: Jul 04, 2010 - 07:00 AM |
|


Joined: Mar 28, 2001
Posts: 20347
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.
"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
|
| |
|
|
|
|
|
Posted: Jul 05, 2010 - 10:00 PM |
|

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 ! |
|
|
| |
|
|
|
|
|