Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Using bootloading, only works once

Using bootloading, only works once

2005-06-24 by Ray

Greetings,
I have been struggling with this for a week, I'm wondering if anyone 
else has had similar problems.
target devices: mega128 & mega8535 (14.7456Mhz)
BootReset Vector Enabled, Boot size set to 512 words.

CVMegaload bootloader works great the first time, but only once.  
If my App only sends a putchar('b'); I would expect the bootload 
char '>' then the 'b'  NOT the case.  Every power cycle past the 
bootload, ONLY the b shows up, bootloading will no longer work.

I'm configuring something incorrectly, would there be anyone out there 
in AVR land that has experienced the same issues and can provide some 
insight?


Regards

Ray

Re: Using bootloading, only works once

2005-06-24 by Ray

--- In AVR-Chat@yahoogroups.com, John Samperi <samperi@a...> wrote:
> At 05:01 AM 25/06/2005, you wrote:
> >I'm configuring something incorrectly, would there be anyone out 
there
> >in AVR land that has experienced the same issues and can provide 
some
> >insight?
> 
> Just a silly comment I guess. Have you checked that you are not
> overwriting part of the bootloader by any chance especially in
> the smaller device with your code?

nope not silly - however I have a clearer defined problem now.
On a chip with ONLY boot program, the first power cycle will 
correctly load a program, and execute it.  Any later power cycling 
will only execute the App. Quickly GROUNDING reset, will allow the 
jump to boot sector programming.
there are 2 additional pieces of info that may be of value:
1 Brown Out enabled at 4v
2 CKOPT enabled, 1 crystal, 2 processors;

As mentioned before, Boot vector fuse is enabled and boot size is 
correct.


Ray
Show quoted textHide quoted text
> 
> Regards
> 
> John Samperi
> 
> ******************************************************
>                          Ampertronics Pty. Ltd.
>    11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
>           Tel. (02) 9674-6495       Fax (02) 9674-8745
>                 Email: samperi@a...
>                   Website  http://www.ampertronics.com.au
> * Electronic Design   * Custom Products   * Contract Assembly
> ******************************************************

Re: [AVR-Chat] Using bootloading, only works once

2005-06-24 by John Samperi

At 05:01 AM 25/06/2005, you wrote:
>I'm configuring something incorrectly, would there be anyone out there
>in AVR land that has experienced the same issues and can provide some
>insight?

Just a silly comment I guess. Have you checked that you are not
overwriting part of the bootloader by any chance especially in
the smaller device with your code?

Regards

John Samperi

******************************************************
                         Ampertronics Pty. Ltd.
   11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
          Tel. (02) 9674-6495       Fax (02) 9674-8745
                Email: samperi@ampertronics.com.au
                  Website  http://www.ampertronics.com.au
* Electronic Design   * Custom Products   * Contract Assembly
******************************************************

Re: Using bootloading, only works once

2005-06-27 by lowerpower

Sounds like to me your boot reset vector fuses are set incorrectly,
probably jumping to after where you have you boot loader stored.

If you think your boot size is correct, then change it to all possible
options and try again.

Lastly check where the bootloader determins to exicute the bootloader
or main app, it could always be exicuting the main ap depending on
what it is checking.

-lp
Show quoted textHide quoted text
> nope not silly - however I have a clearer defined problem now.
> On a chip with ONLY boot program, the first power cycle will 
> correctly load a program, and execute it.  Any later power cycling 
> will only execute the App. Quickly GROUNDING reset, will allow the 
> jump to boot sector programming.
> there are 2 additional pieces of info that may be of value:
> 1 Brown Out enabled at 4v
> 2 CKOPT enabled, 1 crystal, 2 processors;
> 
> As mentioned before, Boot vector fuse is enabled and boot size is 
> correct.

Bootloader troubles

2005-07-10 by Gustavo Goretkin

Hello, I have an STK500 board, and i need to do some UART stuff on my 
computer with it, I only have 1 serial port on my "recent" mobo, and it 
is a pain  to have to switch between the ports, and I've tried an "AB" 
switch, but still I would rather try something new. I bought a $10 USB 
to RS232 converter on eBay and it doesn't work. *sigh*, its a cypress 
chip, and well apparently it doesn't work.
So I am looking into using a boot loader program, BTW this is on a 
MEGA16 chip. So the first boot loader I looked into is the one available 
at this website: http://hubbard.engr.scu.edu/embedded/avr/bootloader/ . 
When I found this, I thought it was great, it emulates the STK500 so I 
won't even have to leave the AVR studio IDE. So I program my chip with 
it, I'm using the right clock, connect the UART to the spare one on the 
STK500 board, and I open the programmer in AVR studio, and it detects 
the "board" it says it has an old firmware installed, but I don't 
install it because I doubt the boot loader will do anything with it. I 
load a hex file of a program I made, and it generates an error when 
trying to go into "Programming" mode. I give up on it after a couple of 
hours of looking on line for any solution and continue on my search for 
a boot loader.
I come up against one written in IAR C, using information from this site 
: http://projects.gbdt.com.au/boot162/ and it is the boot loader that 
Atmel themselves wrote, its one of there aplication notes, and it 
emulates the "AVR PROG" protocol. I download the trial of IAR C, and I 
can't even get the thing to compile (I am not very good at C, at all), i 
twiddle with some of the compiler settings (CPU target, clock speed so 
forth) and I only generate more errors. Still not giving up, I search 
again for a boot loader.
This time its Megaload, which I found on a search in www.avrfreaks.net . 
http://www.microsyl.com/megaload/megaload.html . I download the trial of 
ImageCraft C compiler, and I am able to compile the code this time, I 
have all the defines correct, and compiler settings correct (I hope). I 
program the HEX file to the MEGA16 and then connect the UART again. I 
run MEGALOAD, load the HEX file to program through the boot loader, and 
press the reset button on the board. Megaload detects (sometimes it 
detects other crazy crap) an Atmega16, with 16k of flash, 512 k of 
eeprome and so forth, and it tries to load the hex file. and on the 
window the left I get a never ending scrolling list of

Programming Page File #0
Programming Failed
Programming Page File #0
Programming Failed
Programming Page File #0
Programming Failed
....

And light that anyone could shine for me would be greatly, imensly 
appreciated. Thank you in advance
 Gustavo

RE: [AVR-Chat] Bootloader troubles

2005-07-10 by stevech

I've bought and tossed a couple of USB to serial thingies. Last one I bought
was a China special but the packaging said it used the FTDI chipset/driver.
Works perfectly with XP.

There's a ASM language bootloader which is only 512Bytes - source in public
domain. Works on mega8 and bigger. Here's the header from the main file
;***********************************************
;* This is a modified version of design note #032 'DN032' From
http://www.avrfreaks.com
;* It is meant specifically for atmega-8 and avrprog.exe 1.37 or better.
;* The original DN did not seem to work properly with a atmega8, after some
debugging it 
;* appeard that the problem was that the code did not re-enable RWW access
after page write or erase. Fixed.
;* Notes:
;* Added an esc char test at the beginning of the code. Modify as necessary.
;* I left in the eeprom program counter.
;* Be sure to use avrprog.exe 1.37 or a version that supports atmega8 (the
regular download from atmel is 1.33)
;* While debugging I also discovered that avrprog support a baud rate of
115200, seems to work okay.
;* Fuses: BLB11 BOOTSZ1 BOOTRST
;* comments or questions?  carlott@si.rr.com   http://users.rcn.com/carlott/

;********** B O O T L O A D E R **********
;* File : bootloader_m8.asm (Include chip erase counter)
;* Compiler : AVR Studio
;* Target : mega8
Show quoted textHide quoted text
-----Original Message-----
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of Gustavo Goretkin
Sent: Saturday, July 09, 2005 5:34 PM
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] Bootloader troubles

Hello, I have an STK500 board, and i need to do some UART stuff on my 
computer with it, I only have 1 serial port on my "recent" mobo, and it 
is a pain  to have to switch between the ports, and I've tried an "AB" 
switch, but still I would rather try something new. I bought a $10 USB 
to RS232 converter on eBay and it doesn't work. *sigh*, its a cypress 
chip, and well apparently it doesn't work.
So I am looking into using a boot loader program, BTW this is on a 
MEGA16 chip. So the first boot loader I looked into is the one available 
at this website: http://hubbard.engr.scu.edu/embedded/avr/bootloader/ . 
When I found this, I thought it was great, it emulates the STK500 so I 
won't even have to leave the AVR studio IDE. So I program my chip with 
it, I'm using the right clock, connect the UART to the spare one on the 
STK500 board, and I open the programmer in AVR studio, and it detects 
the "board" it says it has an old firmware installed, but I don't 
install it because I doubt the boot loader will do anything with it. I 
load a hex file of a program I made, and it generates an error when 
trying to go into "Programming" mode. I give up on it after a couple of 
hours of looking on line for any solution and continue on my search for 
a boot loader.
I come up against one written in IAR C, using information from this site 
: http://projects.gbdt.com.au/boot162/ and it is the boot loader that 
Atmel themselves wrote, its one of there aplication notes, and it 
emulates the "AVR PROG" protocol. I download the trial of IAR C, and I 
can't even get the thing to compile (I am not very good at C, at all), i 
twiddle with some of the compiler settings (CPU target, clock speed so 
forth) and I only generate more errors. Still not giving up, I search 
again for a boot loader.
This time its Megaload, which I found on a search in www.avrfreaks.net . 
http://www.microsyl.com/megaload/megaload.html . I download the trial of 
ImageCraft C compiler, and I am able to compile the code this time, I 
have all the defines correct, and compiler settings correct (I hope). I 
program the HEX file to the MEGA16 and then connect the UART again. I 
run MEGALOAD, load the HEX file to program through the boot loader, and 
press the reset button on the board. Megaload detects (sometimes it 
detects other crazy crap) an Atmega16, with 16k of flash, 512 k of 
eeprome and so forth, and it tries to load the hex file. and on the 
window the left I get a never ending scrolling list of

Programming Page File #0
Programming Failed
Programming Page File #0
Programming Failed
Programming Page File #0
Programming Failed
....

And light that anyone could shine for me would be greatly, imensly 
appreciated. Thank you in advance
 Gustavo




 
Yahoo! Groups Links

Re: [AVR-Chat] Bootloader troubles

2005-07-10 by Gustavo Goretkin

Thank you for your reply. I'm trying to assemble the code, but im 
experiencing some trouble,
        ldi     R26,low(E2END-1)         ; increment Chip Erase Counter 
located at address E2END-1
        ldi     R27,high(E2END-1)         ;

I don't quite understant what E2END is, and where it is supposed to be 
defined/ equated
thanks again

stevech wrote:
Show quoted textHide quoted text
> I've bought and tossed a couple of USB to serial thingies. Last one I 
> bought
> was a China special but the packaging said it used the FTDI 
> chipset/driver.
> Works perfectly with XP.
>
> There's a ASM language bootloader which is only 512Bytes - source in 
> public
> domain. Works on mega8 and bigger. Here's the header from the main file
> ;***********************************************
> ;* This is a modified version of design note #032 'DN032' From
> http://www.avrfreaks.com
> ;* It is meant specifically for atmega-8 and avrprog.exe 1.37 or better.
> ;* The original DN did not seem to work properly with a atmega8, after 
> some
> debugging it
> ;* appeard that the problem was that the code did not re-enable RWW access
> after page write or erase. Fixed.
> ;* Notes:
> ;* Added an esc char test at the beginning of the code. Modify as 
> necessary.
> ;* I left in the eeprom program counter.
> ;* Be sure to use avrprog.exe 1.37 or a version that supports atmega8 (the
> regular download from atmel is 1.33)
> ;* While debugging I also discovered that avrprog support a baud rate of
> 115200, seems to work okay.
> ;* Fuses: BLB11 BOOTSZ1 BOOTRST
> ;* comments or questions?  carlott@si.rr.com   
> http://users.rcn.com/carlott/
>
> ;********** B O O T L O A D E R **********
> ;* File : bootloader_m8.asm (Include chip erase counter)
> ;* Compiler : AVR Studio
> ;* Target : mega8
>
>
> -----Original Message-----
> From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
> Of Gustavo Goretkin
> Sent: Saturday, July 09, 2005 5:34 PM
> To: AVR-Chat@yahoogroups.com
> Subject: [AVR-Chat] Bootloader troubles
>
> Hello, I have an STK500 board, and i need to do some UART stuff on my
> computer with it, I only have 1 serial port on my "recent" mobo, and it
> is a pain  to have to switch between the ports, and I've tried an "AB"
> switch, but still I would rather try something new. I bought a $10 USB
> to RS232 converter on eBay and it doesn't work. *sigh*, its a cypress
> chip, and well apparently it doesn't work.
> So I am looking into using a boot loader program, BTW this is on a
> MEGA16 chip. So the first boot loader I looked into is the one available
> at this website: http://hubbard.engr.scu.edu/embedded/avr/bootloader/ .
> When I found this, I thought it was great, it emulates the STK500 so I
> won't even have to leave the AVR studio IDE. So I program my chip with
> it, I'm using the right clock, connect the UART to the spare one on the
> STK500 board, and I open the programmer in AVR studio, and it detects
> the "board" it says it has an old firmware installed, but I don't
> install it because I doubt the boot loader will do anything with it. I
> load a hex file of a program I made, and it generates an error when
> trying to go into "Programming" mode. I give up on it after a couple of
> hours of looking on line for any solution and continue on my search for
> a boot loader.
> I come up against one written in IAR C, using information from this site
> : http://projects.gbdt.com.au/boot162/ and it is the boot loader that
> Atmel themselves wrote, its one of there aplication notes, and it
> emulates the "AVR PROG" protocol. I download the trial of IAR C, and I
> can't even get the thing to compile (I am not very good at C, at all), i
> twiddle with some of the compiler settings (CPU target, clock speed so
> forth) and I only generate more errors. Still not giving up, I search
> again for a boot loader.
> This time its Megaload, which I found on a search in www.avrfreaks.net .
> http://www.microsyl.com/megaload/megaload.html . I download the trial of
> ImageCraft C compiler, and I am able to compile the code this time, I
> have all the defines correct, and compiler settings correct (I hope). I
> program the HEX file to the MEGA16 and then connect the UART again. I
> run MEGALOAD, load the HEX file to program through the boot loader, and
> press the reset button on the board. Megaload detects (sometimes it
> detects other crazy crap) an Atmega16, with 16k of flash, 512 k of
> eeprome and so forth, and it tries to load the hex file. and on the
> window the left I get a never ending scrolling list of
>
> Programming Page File #0
> Programming Failed
> Programming Page File #0
> Programming Failed
> Programming Page File #0
> Programming Failed
> ....
>
> And light that anyone could shine for me would be greatly, imensly
> appreciated. Thank you in advance
> Gustavo
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "AVR-Chat
>       <http://groups.yahoo.com/group/AVR-Chat>" on the web.
>        
>     *  To unsubscribe from this group, send an email to:
>        AVR-Chat-unsubscribe@yahoogroups.com
>       <mailto:AVR-Chat-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>        
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>

Re: [AVR-Chat] Bootloader troubles

2005-07-10 by Kathy Quinlan

Gustavo Goretkin wrote:
> Thank you for your reply. I'm trying to assemble the code, but im 
> experiencing some trouble,
>         ldi     R26,low(E2END-1)         ; increment Chip Erase Counter 
> located at address E2END-1
>         ldi     R27,high(E2END-1)         ;
> 
> I don't quite understant what E2END is, and where it is supposed to be 
> defined/ equated
> thanks again
> 
> stevech wrote:


I would hazard a guess that  E2END is value equivalent to the last 
location of the EEPROM. I am not sure if this is an Atmel define or a 
complier one.

Regards,

Kat.

RE: [AVR-Chat] Bootloader troubles E2END

2005-07-11 by stevech

I found E2END in this directory and file:
C:\Program Files\Atmel\AVR Tools\AvrAssembler2\Appnotes\m8def.inc
It is NOT in this file
C:\Program Files\Atmel\AVR Tools\AvrAssembler\Appnotes

Note the "2" in the pathname for the former, not the latter.
Go figure.

Steve
===========

Mega8 chip...

                 ; ***** DATA MEMORY DECLARATIONS
*****************************************
                 .equ	FLASHEND	= 0x0fff	; Note: Word address
                 .equ	IOEND	= 0x003f
                 .equ	SRAM_START	= 0x0060
                 .equ	SRAM_SIZE	= 1024
                 .equ	RAMEND	= 0x045f
                 .equ	XRAMEND	= 0x0000
                 .equ	E2END	= 0x01ff
                 .equ	EEPROMEND	= 0x01ff
                 .equ	EEADRBITS	= 9
                 #pragma AVRPART MEMORY PROG_FLASH 8192
                 #pragma AVRPART MEMORY EEPROM 512
                 #pragma AVRPART MEMORY INT_SRAM SIZE 1024
                 #pragma AVRPART MEMORY INT_SRAM START_ADDR 0x60

======================================================================
'
Show quoted textHide quoted text
-----Original Message-----
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of Kathy Quinlan
Sent: Sunday, July 10, 2005 7:47 AM
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] Bootloader troubles

Gustavo Goretkin wrote:
> Thank you for your reply. I'm trying to assemble the code, but im 
> experiencing some trouble,
>         ldi     R26,low(E2END-1)         ; increment Chip Erase Counter 
> located at address E2END-1
>         ldi     R27,high(E2END-1)         ;
> 
> I don't quite understant what E2END is, and where it is supposed to be 
> defined/ equated
> thanks again
> 
> stevech wrote:


I would hazard a guess that  E2END is value equivalent to the last 
location of the EEPROM. I am not sure if this is an Atmel define or a 
complier one.

Regards,

Kat.


 
Yahoo! Groups Links

Re: [AVR-Chat] Bootloader troubles E2END

2005-07-12 by Gustavo Goretkin

Hmm, I don't have that directory, I have AVR studio 4, the most recent I 
believe, and the help file mentions Avr Assembler 2. Anyways, I assume 
that is the end of the Eeprom  memory for the device since the Mega 8 
has 512k , like the Mega 16.
I assembled the code, and I tried the boot loader, and if didn't work 
:(. It didn't even recognize the device.

Anyways, I found the problem with the USB to RS232 converter, and the 
actual level translator is powered from the TX line of the  serial port, 
and apparently the STK500's MAX232 isnt supplying enough power, im 
getting + and - 6 volts on its TX line, any suggestions please?

Thank you

stevech wrote:
Show quoted textHide quoted text
> I found E2END in this directory and file:
> C:\Program Files\Atmel\AVR Tools\AvrAssembler2\Appnotes\m8def.inc
> It is NOT in this file
> C:\Program Files\Atmel\AVR Tools\AvrAssembler\Appnotes
>
> Note the "2" in the pathname for the former, not the latter.
> Go figure.
>
> Steve
> ===========
>
> Mega8 chip...
>
>                  ; ***** DATA MEMORY DECLARATIONS
> *****************************************
>                  .equ      FLASHEND      = 0x0fff      ; Note: Word 
> address
>                  .equ      IOEND      = 0x003f
>                  .equ      SRAM_START      = 0x0060
>                  .equ      SRAM_SIZE      = 1024
>                  .equ      RAMEND      = 0x045f
>                  .equ      XRAMEND      = 0x0000
>                  .equ      E2END      = 0x01ff
>                  .equ      EEPROMEND      = 0x01ff
>                  .equ      EEADRBITS      = 9
>                  #pragma AVRPART MEMORY PROG_FLASH 8192
>                  #pragma AVRPART MEMORY EEPROM 512
>                  #pragma AVRPART MEMORY INT_SRAM SIZE 1024
>                  #pragma AVRPART MEMORY INT_SRAM START_ADDR 0x60
>
> ======================================================================
> '
>
>
> -----Original Message-----
> From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
> Of Kathy Quinlan
> Sent: Sunday, July 10, 2005 7:47 AM
> To: AVR-Chat@yahoogroups.com
> Subject: Re: [AVR-Chat] Bootloader troubles
>
> Gustavo Goretkin wrote:
> > Thank you for your reply. I'm trying to assemble the code, but im
> > experiencing some trouble,
> >         ldi     R26,low(E2END-1)         ; increment Chip Erase Counter
> > located at address E2END-1
> >         ldi     R27,high(E2END-1)         ;
> >
> > I don't quite understant what E2END is, and where it is supposed to be
> > defined/ equated
> > thanks again
> >
> > stevech wrote:
>
>
> I would hazard a guess that  E2END is value equivalent to the last
> location of the EEPROM. I am not sure if this is an Atmel define or a
> complier one.
>
> Regards,
>
> Kat.
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "AVR-Chat
>       <http://groups.yahoo.com/group/AVR-Chat>" on the web.
>        
>     *  To unsubscribe from this group, send an email to:
>        AVR-Chat-unsubscribe@yahoogroups.com
>       <mailto:AVR-Chat-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>        
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>

RE: [AVR-Chat] Bootloader troubles E2END

2005-07-12 by stevech

Assembler2 - - I thought it was standard in the latter version of AVR
Studio.

USB to RS232 - having bought and tosses a few of these, for reasons you
cite, the one I have now works quite well.  It's a China no-name but uses
the FTDI chipset.  You can end it all by buying a 4 or 8 port USB to serial
box on eBay, really cheap, made by Edgeport. Super reliable. See item
5788134094 on eBay
Show quoted textHide quoted text
-----Original Message-----
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of Gustavo Goretkin
Sent: Monday, July 11, 2005 8:24 PM
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] Bootloader troubles E2END

Hmm, I don't have that directory, I have AVR studio 4, the most recent I 
believe, and the help file mentions Avr Assembler 2. Anyways, I assume 
that is the end of the Eeprom  memory for the device since the Mega 8 
has 512k , like the Mega 16.
I assembled the code, and I tried the boot loader, and if didn't work 
:(. It didn't even recognize the device.

Anyways, I found the problem with the USB to RS232 converter, and the 
actual level translator is powered from the TX line of the  serial port, 
and apparently the STK500's MAX232 isnt supplying enough power, im 
getting + and - 6 volts on its TX line, any suggestions please?

Thank you

stevech wrote:

> I found E2END in this directory and file:
> C:\Program Files\Atmel\AVR Tools\AvrAssembler2\Appnotes\m8def.inc
> It is NOT in this file
> C:\Program Files\Atmel\AVR Tools\AvrAssembler\Appnotes
>
> Note the "2" in the pathname for the former, not the latter.
> Go figure.
>
> Steve
> ===========
>
> Mega8 chip...
>
>                  ; ***** DATA MEMORY DECLARATIONS
> *****************************************
>                  .equ      FLASHEND      = 0x0fff      ; Note: Word 
> address
>                  .equ      IOEND      = 0x003f
>                  .equ      SRAM_START      = 0x0060
>                  .equ      SRAM_SIZE      = 1024
>                  .equ      RAMEND      = 0x045f
>                  .equ      XRAMEND      = 0x0000
>                  .equ      E2END      = 0x01ff
>                  .equ      EEPROMEND      = 0x01ff
>                  .equ      EEADRBITS      = 9
>                  #pragma AVRPART MEMORY PROG_FLASH 8192
>                  #pragma AVRPART MEMORY EEPROM 512
>                  #pragma AVRPART MEMORY INT_SRAM SIZE 1024
>                  #pragma AVRPART MEMORY INT_SRAM START_ADDR 0x60
>
> ======================================================================
> '
>
>
> -----Original Message-----
> From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
> Of Kathy Quinlan
> Sent: Sunday, July 10, 2005 7:47 AM
> To: AVR-Chat@yahoogroups.com
> Subject: Re: [AVR-Chat] Bootloader troubles
>
> Gustavo Goretkin wrote:
> > Thank you for your reply. I'm trying to assemble the code, but im
> > experiencing some trouble,
> >         ldi     R26,low(E2END-1)         ; increment Chip Erase Counter
> > located at address E2END-1
> >         ldi     R27,high(E2END-1)         ;
> >
> > I don't quite understant what E2END is, and where it is supposed to be
> > defined/ equated
> > thanks again
> >
> > stevech wrote:
>
>
> I would hazard a guess that  E2END is value equivalent to the last
> location of the EEPROM. I am not sure if this is an Atmel define or a
> complier one.
>
> Regards,
>
> Kat.
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "AVR-Chat
>       <http://groups.yahoo.com/group/AVR-Chat>" on the web.
>        
>     *  To unsubscribe from this group, send an email to:
>        AVR-Chat-unsubscribe@yahoogroups.com
>       <mailto:AVR-Chat-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>        
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>



 
Yahoo! Groups Links

Re: [AVR-Chat] Bootloader troubles E2END

2005-07-15 by Gustavo Goretkin

I have seem to found the problem with the RS-232 to USB, and that is the 
level shifter is actually powered by the devices Tx line.

I still have had no success with the boot loader, should I just write my 
own? Is it difficult?

stevech wrote:
Show quoted textHide quoted text
> Assembler2 - - I thought it was standard in the latter version of AVR
> Studio.
>
> USB to RS232 - having bought and tosses a few of these, for reasons you
> cite, the one I have now works quite well.  It's a China no-name but uses
> the FTDI chipset.  You can end it all by buying a 4 or 8 port USB to 
> serial
> box on eBay, really cheap, made by Edgeport. Super reliable. See item
> 5788134094 on eBay
>
>
> -----Original Message-----
> From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
> Of Gustavo Goretkin
> Sent: Monday, July 11, 2005 8:24 PM
> To: AVR-Chat@yahoogroups.com
> Subject: Re: [AVR-Chat] Bootloader troubles E2END
>
> Hmm, I don't have that directory, I have AVR studio 4, the most recent I
> believe, and the help file mentions Avr Assembler 2. Anyways, I assume
> that is the end of the Eeprom  memory for the device since the Mega 8
> has 512k , like the Mega 16.
> I assembled the code, and I tried the boot loader, and if didn't work
> :(. It didn't even recognize the device.
>
> Anyways, I found the problem with the USB to RS232 converter, and the
> actual level translator is powered from the TX line of the  serial port,
> and apparently the STK500's MAX232 isnt supplying enough power, im
> getting + and - 6 volts on its TX line, any suggestions please?
>
> Thank you
>
> stevech wrote:
>
> > I found E2END in this directory and file:
> > C:\Program Files\Atmel\AVR Tools\AvrAssembler2\Appnotes\m8def.inc
> > It is NOT in this file
> > C:\Program Files\Atmel\AVR Tools\AvrAssembler\Appnotes
> >
> > Note the "2" in the pathname for the former, not the latter.
> > Go figure.
> >
> > Steve
> > ===========
> >
> > Mega8 chip...
> >
> >                  ; ***** DATA MEMORY DECLARATIONS
> > *****************************************
> >                  .equ      FLASHEND      = 0x0fff      ; Note: Word
> > address
> >                  .equ      IOEND      = 0x003f
> >                  .equ      SRAM_START      = 0x0060
> >                  .equ      SRAM_SIZE      = 1024
> >                  .equ      RAMEND      = 0x045f
> >                  .equ      XRAMEND      = 0x0000
> >                  .equ      E2END      = 0x01ff
> >                  .equ      EEPROMEND      = 0x01ff
> >                  .equ      EEADRBITS      = 9
> >                  #pragma AVRPART MEMORY PROG_FLASH 8192
> >                  #pragma AVRPART MEMORY EEPROM 512
> >                  #pragma AVRPART MEMORY INT_SRAM SIZE 1024
> >                  #pragma AVRPART MEMORY INT_SRAM START_ADDR 0x60
> >
> > ======================================================================
> > '
> >
> >
> > -----Original Message-----
> > From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On 
> Behalf
> > Of Kathy Quinlan
> > Sent: Sunday, July 10, 2005 7:47 AM
> > To: AVR-Chat@yahoogroups.com
> > Subject: Re: [AVR-Chat] Bootloader troubles
> >
> > Gustavo Goretkin wrote:
> > > Thank you for your reply. I'm trying to assemble the code, but im
> > > experiencing some trouble,
> > >         ldi     R26,low(E2END-1)         ; increment Chip Erase 
> Counter
> > > located at address E2END-1
> > >         ldi     R27,high(E2END-1)         ;
> > >
> > > I don't quite understant what E2END is, and where it is supposed to be
> > > defined/ equated
> > > thanks again
> > >
> > > stevech wrote:
> >
> >
> > I would hazard a guess that  E2END is value equivalent to the last
> > location of the EEPROM. I am not sure if this is an Atmel define or a
> > complier one.
> >
> > Regards,
> >
> > Kat.
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> > YAHOO! GROUPS LINKS
> >
> >     *  Visit your group "AVR-Chat
> >       <http://groups.yahoo.com/group/AVR-Chat>" on the web.
> >       
> >     *  To unsubscribe from this group, send an email to:
> >        AVR-Chat-unsubscribe@yahoogroups.com
> >       <mailto:AVR-Chat-unsubscribe@yahoogroups.com?subject=Unsubscribe>
> >       
> >     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> >       Service <http://docs.yahoo.com/info/terms/>.
> >
> >
> > ------------------------------------------------------------------------
> >
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "AVR-Chat
>       <http://groups.yahoo.com/group/AVR-Chat>" on the web.
>        
>     *  To unsubscribe from this group, send an email to:
>        AVR-Chat-unsubscribe@yahoogroups.com
>       <mailto:AVR-Chat-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>        
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.