Studio 4.12 SP4 Build 498 loads hex file partially

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

To debug my project with the JTAG ICE MkII I've developed a bootloader as one project and now I will use some functions if this bootloader within my main project. So I concatinate both hex file with srec and get one hexfile which can be loaded by the Studio.

The combined hex-file is created by the following commands:

avr-objcopy -O srec -R .eeprom steueurung.elf ./steuerung.s19
srec_cat steuerung.s19 ../../bootloader/default/ARCbootloader.hex -intel -O steuerung.hex -intel -Line_length 44

Looking to the file steuerung.hex gives the following:

:020000040000FA
:100000000C948F050C943E1F0C94B4120C94AA050A
:100010000C94AA050C94AA050C94AA050C94AA05A4
:100020000C94AA050C94AA050C9488120C94AA05A9
....
:1048A000800000020408100040800102000810206F
:0848B000400072617365000015
:1078000006C002C09DC1089581E048C0089580E08F
:1078100045C008955D9BFECF8CB90895A9E9B3E0FA
....

While the bootloader should start at 0x3c00 which is on Studio's address-scheme 0x7800 it looks good for me. If the hole hex file is loaded and you take the disassembler window to look to the code there are only 0xffff in the addresses and only the application code is availabile.

If you load the hex-file by the menu item "Program AVR" (chip icon) bootloader and application are programmed.

Any comments?

Cheers
Knut

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

To prevent any "without 4.13 everything can happen" replies, I've tested it with Studio 4.13 and there is not benefit. One has to load the file with the "Program AVR" Button. Start debugging and switch off the reload within the JTAGICE mkII Option. While the reload can only be switched off after debugging is started (@Atmel: Why not before?) you can reload the file again,... boaring.

Knut