Sign in

username:

password:



Not a member?

Search avrclub



Search tips

Subscribe to avrclub



avrclub by Keywords

AT90S2313 | AT90S8515 | ATMega | ATmega128 | ECL | FETS | IAR | Keyboard | LCD | STK50 | TMOS | UART

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | AVRclub | [AVR club] HEX file size limit for the AT89S52 8K microcontroler

Atmel AVR Microcontroller discussion group.

[AVR club] HEX file size limit for the AT89S52 8K microcontroler - lode...@ymail.com, UNEXPECTED_DATA_AFTER_ADDRESS - Oct 13 8:48:32 2009

The hex file for my project is no exactly 8880 bytes (9216 Bytes on Disk).

I'm still able to load this hex file without any problems in the above 8K Micro controller. I was under the impression the 8K of the AT89S52 was the storage space, but this does not seem to be the case
.
Can anybody share some light on this for me ?

------------------------------------



(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )


Re: [AVR club] HEX file size limit for the AT89S52 8K microcontroler - STEVEN HOLDER - Oct 13 9:40:10 2009

Have you run the code rather than just loaded it ?, it will prpobably run f=
ine until you try to acces a bit=A0of code that is above 8k, then the crash=
will occur=A0.
=A0
>From the data sheet if ea pin is connected to vcc 0000H - 1FFFFH (8191 (8K)=
) is run from external memory, 2000H - FFFFH are to external memory, so i b=
et you the code above 8192Bytes is being (or trying) to be loaded into exte=
rnal memory even though it isn't there. (Well i'm assuming you haven't got =
any external memory).
=A0
I suspect the programmer allows writes above 8k but assumes you have extern=
al memory attached.
=A0
Does that sound about right ?
=A0
Regards
--- On Tue, 13/10/09, l...@ymail.com w=
rote:
From: l...@ymail.com
Subject: [AVR club] HEX file size limit for the AT89S52 8K microcontroler
To: a...@yahoogroups.com
Date: Tuesday, 13 October, 2009, 11:55 AM
=A0=20

The hex file for my project is no exactly 8880 bytes (9216 Bytes on Disk).=
=20

I'm still able to load this hex file without any problems in the above 8K M=
icro controller. I was under the impression the 8K of the AT89S52 was the s=
torage space, but this does not seem to be the case
.
Can anybody share some light on this for me ?=20

[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 )

RE: [AVR club] HEX file size limit for the AT89S52 8K microcontroler - Phillip Vogel - Oct 13 10:27:46 2009

The size of the hex file is not the size of the binary file. There are AT
LEAST two bytes in the hex file for each byte of storage used, plus the
address at the beginning and checksum at the end of each line. There are
other hex formats that are even larger.

From: a...@yahoogroups.com [mailto:a...@yahoogroups.com] On Behalf Of
l...@ymail.com
Sent: Tuesday, October 13, 2009 6:55 AM
To: a...@yahoogroups.com
Subject: [AVR club] HEX file size limit for the AT89S52 8K microcontroler

The hex file for my project is no exactly 8880 bytes (9216 Bytes on Disk).

I'm still able to load this hex file without any problems in the above 8K
Micro controller. I was under the impression the 8K of the AT89S52 was the
storage space, but this does not seem to be the case
.

[Non-text portions of this message have been removed]

------------------------------------



(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )

[AVR club] Re: HEX file size limit for the AT89S52 8K microcontroler - STEVEN - Oct 13 10:28:39 2009

Sorry, bit of a typo lol
Meant to say 0000H - 1FFFH (8K) is run from internal memory and 2000H - FF=
FFH is run from external memory.=20

Regards

--- In a...@yahoogroups.com, STEVEN HOLDER wrote:
>
> Have you run the code rather than just loaded it ?, it will prpobably run=
fine until you try to acces a bit=A0of code that is above 8k, then the cra=
sh will occur=A0.
> =A0
> From the data sheet if ea pin is connected to vcc 0000H - 1FFFFH (8191 (8=
K)) is run from external memory, 2000H - FFFFH are to external memory, so i=
bet you the code above 8192Bytes is being (or trying) to be loaded into ex=
ternal memory even though it isn't there. (Well i'm assuming you haven't go=
t any external memory).
> =A0
> I suspect the programmer allows writes above 8k but assumes you have exte=
rnal memory attached.
> =A0
> Does that sound about right ?
> =A0
> Regards
>=20
>=20
> --- On Tue, 13/10/09, lodewicus.maas@... wrote:
>=20
>=20
> From: lodewicus.maas@...
> Subject: [AVR club] HEX file size limit for the AT89S52 8K microcontroler
> To: a...@yahoogroups.com
> Date: Tuesday, 13 October, 2009, 11:55 AM
>=20
>=20
> =A0=20
>=20
>=20
>=20
> The hex file for my project is no exactly 8880 bytes (9216 Bytes on Disk)=
.=20
>=20
> I'm still able to load this hex file without any problems in the above 8K=
Micro controller. I was under the impression the 8K of the AT89S52 was the=
storage space, but this does not seem to be the case
> .
> Can anybody share some light on this for me ?=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
> [Non-text portions of this message have been removed]
>

------------------------------------



(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )

[AVR club] looking for delay_ms function source code - hamidreza maddah - Oct 13 11:04:32 2009


i am looking for delay function source code,
i want define the CPU=A0clock in=A0a .h file and the compiler use it for de=
lay function. but the compiler use cpu clock from project configuration.
i use codevisionavr
=20=20=20=20=20=20

[Non-text portions of this message have been removed]

------------------------------------



(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )

[AVR club] Re: HEX file size limit for the AT89S52 8K microcontroler - bert_hoogenboom - Oct 13 13:52:23 2009

It's very simple
On you harddisk it counts the bytes where every byte is a character you need 2 characters to make one byte in the controller
plus on every line in the hex file you have a adres of 4 characters and a checksum on the and of every line, and a for every line.
The hex file you can read with any editor. The binary file that is made out of this you can not read any more. a 9216 bytes hex file will result in a binary program of about 3k bytes.
Bert

--- In a...@yahoogroups.com, lodewicus.maas@... wrote:
>
> The hex file for my project is no exactly 8880 bytes (9216 Bytes on Disk).
>
> I'm still able to load this hex file without any problems in the above 8K Micro controller. I was under the impression the 8K of the AT89S52 was the storage space, but this does not seem to be the case
> .
> Can anybody share some light on this for me ?
>

------------------------------------



(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )

[AVR club] Re: HEX file size limit for the AT89S52 8K microcontroler - Donald H - Oct 13 23:35:14 2009



--- In a...@yahoogroups.com, lodewicus.maas@... wrote:
>
> The hex file for my project is no exactly 8880 bytes (9216 Bytes on Disk).
>
> I'm still able to load this hex file without any problems in the above 8K Micro controller. I was under the impression the 8K of the AT89S52 was the storage space, but this does not seem to be the case
> .
> Can anybody share some light on this for me ?
>

http://en.wikipedia.org/wiki/Intel_HEX

------------------------------------



(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )

[AVR club] Re: HEX file size limit for the AT89S52 8K microcontroler - Donald H - Oct 13 23:37:22 2009



--- In a...@yahoogroups.com, "Donald H" wrote:
>
> --- In a...@yahoogroups.com, lodewicus.maas@ wrote:
> >
> > The hex file for my project is no exactly 8880 bytes (9216 Bytes on Disk).
> >
> > I'm still able to load this hex file without any problems in the above 8K Micro controller. I was under the impression the 8K of the AT89S52 was the storage space, but this does not seem to be the case
> > .
> > Can anybody share some light on this for me ?
> > http://en.wikipedia.org/wiki/Intel_HEX
>

http://www.microsym.com/content/index.php?pid=4&id=25

READ and understand all documents on this site.

------------------------------------

______________________________
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 )

Re: [AVR club] HEX file size limit for the AT89S52 8K microcontroler - lode...@ymail.com, UNEXPECTED_DATA_AFTER_ADDRESS - Oct 15 3:01:57 2009

It sounds right yes. Somebody much more experienced then I am, contacted me yesterday via direct email, and I sent him my .asm and .hex file - which at this stage is just below 12K in size. I can still load the hex file into my AT89S52 without any errors and none of the sequences I coded is missing, which shows to me that it doesn't fail writing the complete file, without giving me errors

Something I did not knew, which was highlighted by the person helping me, is that the binary version of this 12K Hex file is about 6K, and that's why I'm still able to load it into the 8K flash.

The programmer I'm using only creates a .hex file from the .asm file, and not a .bin file as well. Maybe google is not my friend here, but even when I google the above I could not find a good hit, but the explanation does make 100% sense to me. A lot of people said I must read the manual, but not even my manual explains this .bin file concept to me

Thanx for the reply - Much Appreciated

------------------------------------

______________________________
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 )

Re: [AVR club] HEX file size limit for the AT89S52 8K microcontroler - lode...@ymail.com, UNEXPECTED_DATA_AFTER_ADDRESS - Oct 15 3:02:24 2009

Thank you - this explains it to me. As from a reply in this same post, the app I'm using to compile the .hex files does not produce a .bin file, therefor I never knew about the .bin file concept

Regards

--- In a...@yahoogroups.com, "Phillip Vogel" wrote:
>
> The size of the hex file is not the size of the binary file. There are AT
> LEAST two bytes in the hex file for each byte of storage used, plus the
> address at the beginning and checksum at the end of each line. There are
> other hex formats that are even larger.
>
>
>
>
>
> From: a...@yahoogroups.com [mailto:a...@yahoogroups.com] On Behalf Of
> lodewicus.maas@...
> Sent: Tuesday, October 13, 2009 6:55 AM
> To: a...@yahoogroups.com
> Subject: [AVR club] HEX file size limit for the AT89S52 8K microcontroler
>
>
>
>
>
> The hex file for my project is no exactly 8880 bytes (9216 Bytes on Disk).
>
> I'm still able to load this hex file without any problems in the above 8K
> Micro controller. I was under the impression the 8K of the AT89S52 was the
> storage space, but this does not seem to be the case
> .
>
>
>
> [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 )