Re AVR Assembler v1.50 Intel Extended HEX-file format

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

Hi

I have detected a severe bug by operation with AVR Assember v1.50, included in the 3.22 release of AVR Studio. What's new?

Version 3.22

Fixes in AVR Assember v1.50, included in the 3.22 release of AVR Studio

Intel extended hex files were not generated correctly above the 64K boundary. This problem is fixed in the new version.

However, in my example ex00.asm as against the completely correctly created file ex00.rom in Generic Output file format, the creation of the file ex00.hex in Intel Extended HEX-file format goes not correctly (!). Please start AVR Studio 3.22, load the file ex00.hex, and then compare kept in repair Program memory and kept in repair files ex00.asm, ex00.lst, ex00, rom. It is easy to see a variance - at creation of the file ex00.hex all has mixed up.

admin's test signature
 

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

Hi!

Sorry, but I cannot see how the .hex file is wrongly created. Please elucidate.

Best regards,

Morten, AVR tech. support, Atmel FAE

admin's test signature
 

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

Hi Morton,

Sorry for being off topic, but where did you find " elucidate "
I'm from an English speaking country and had to search my Oxford English dictionary to find out what you're talking about.
My vocabulary is all the more rich now.

Sorry once again.
Cheers Jack

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

I get that kind of question a lot :-). It might be because I speak Spanish and some similar words might pop up that aren't in common use... I'm *not* sitting at home reading Webster's dictionary ;-)

Morten

admin's test signature
 

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

Que pasa Morten,

Ah si ! Yo comprendo.

Hasta la vista.

Jim

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

¡Pues muy bien! Muchas gracias por preguntar...

Nos hablamos :)

Morten

admin's test signature
 

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

Let me elucidate:

That's because you only THINK you come from "an English speaking country" Jack! :o)

Terry

admin's test signature
 

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

Are you diss'ing us Yanks again? :-)
// richard

Richard Man http://imagecraft.com

Beyond Arduino - When you're ready to get serious...
JumpStart C Tools, The Better Alternative.

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

Hi Terry,

I now understand why Morten uses this word, however, I'm not sure why you've chosen to use it for the first time in your life.
It's not in common use by my cousins in USA, Britain or Australia and my fellow New Zealanders.
Or, maybe I'm wrong. Ignorance isn't a sin. Arrogance is though.

Cheers Jim

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

Well I was hoping to bait a scotsman or a taffy, but an antipodean will do for now! I guessed as much with that surname. ;-)

Believe me when I say we elucidate all the time here in Geordieland! And I'm told that Richard has a programmer helpmate in the region who will surely confirm this! :o))

Terry
[shedding light into darkness (or something) - as usual]

admin's test signature
 

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

Probably Yuri has not replied yet because in .ru he is still trying to figure out the "elucidate", not to mention the helpful responses in Spanish. :)

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

In my example ex00.asm as against the completely correctly created file ex00.rom in Generic Output file format, the creation of the file ex00.hex in Intel Extended HEX-file format goes not correctly (!). Please start AVR Studio 3.22, load the file ex00.hex, and then compare kept in repair Program memory and kept in repair files ex00.asm, ex00.lst, ex00, rom. It is easy to see a variance - at creation of the file ex00.hex all has mixed up.

ex00.asm

.DEVICE ATMEGA103

.CSEG

.ORG 0x0000

.DW 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007
.DW 0x0008, 0x0009, 0x000a, 0x000b, 0x000c, 0x000d, 0x000e, 0x000f

.ORG 0x8000

.DW 0x8000, 0x8001, 0x8002, 0x8003, 0x8004, 0x8005, 0x8006, 0x8007
.DW 0x8008, 0x8009, 0x800a, 0x800b, 0x800c, 0x800d, 0x800e, 0x800f

.ORG 0xfff0

.DW 0xfff0, 0xfff1, 0xfff2, 0xfff3, 0xfff4, 0xfff5, 0xfff6, 0xfff7
.DW 0xfff8, 0xfff9, 0xfffa, 0xfffb, 0xfffc, 0xfffd, 0xfffe, 0xffff

.ORG 0x7ff0

.DW 0x7ff0, 0x7ff1, 0x7ff2, 0x7ff3, 0x7ff4, 0x7ff5, 0x7ff6, 0x7ff7
.DW 0x7ff8, 0x7ff9, 0x7ffa, 0x7ffb, 0x7ffc, 0x7ffd, 0x7ffe, 0x7fff

ex00.rom

000000:0000
000001:0001
000002:0002
000003:0003
000004:0004
000005:0005
000006:0006
000007:0007
000008:0008
000009:0009
00000a:000a
00000b:000b
00000c:000c
00000d:000d
00000e:000e
00000f:000f
008000:8000
008001:8001
008002:8002
008003:8003
008004:8004
008005:8005
008006:8006
008007:8007
008008:8008
008009:8009
00800a:800a
00800b:800b
00800c:800c
00800d:800d
00800e:800e
00800f:800f
00fff0:fff0
00fff1:fff1
00fff2:fff2
00fff3:fff3
00fff4:fff4
00fff5:fff5
00fff6:fff6
00fff7:fff7
00fff8:fff8
00fff9:fff9
00fffa:fffa
00fffb:fffb
00fffc:fffc
00fffd:fffd
00fffe:fffe
00ffff:ffff
007ff0:7ff0
007ff1:7ff1
007ff2:7ff2
007ff3:7ff3
007ff4:7ff4
007ff5:7ff5
007ff6:7ff6
007ff7:7ff7
007ff8:7ff8
007ff9:7ff9
007ffa:7ffa
007ffb:7ffb
007ffc:7ffc
007ffd:7ffd
007ffe:7ffe
007fff:7fff

ex00.hex

:020000020000FC
:1000000000000100020003000400050006000700D4
:10001000080009000A000B000C000D000E000F0084
:0200000000807E
:020000021000EC
:1000020001800280038004800580068007800880CA
:0E00120009800A800B800C800D800E800F800C
:10FFE000F0FFF1FFF2FFF3FFF4FFF5FFF6FFF7FF7D
:10FFF000F8FFF9FFFAFFFBFFFCFFFDFFFEFFFFFF2D
:10FFE000F07FF17FF27FF37FF47FF57FF67FF77F7D
:10FFF000F87FF97FFA7FFB7FFC7FFD7FFE7FFF7F2D
:00000001FF

However, ex00.hex MUST BE AS (!)

:020000020000FC
:1000000000000100020003000400050006000700D4
:10001000080009000A000B000C000D000E000F0084
:020000021000EC
:0200000000807E
:1000020001800280038004800580068007800880CA
:0E00120009800A800B800C800D800E800F800C
:10FFE000F0FFF1FFF2FFF3FFF4FFF5FFF6FFF7FF7D
:10FFF000F8FFF9FFFAFFFBFFFCFFFDFFFEFFFFFF2D
:020000020000FC
:10FFE000F07FF17FF27FF37FF47FF57FF67FF77F7D
:10FFF000F87FF97FFA7FFB7FFC7FFD7FFE7FFF7F2D
:00000001FF

admin's test signature