Debug IAR C using JTAGICE MK2 and AVR Studio

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

I have developed a project in C using the IAR Embedded Workbench for AVR, using the simulator to debug in the absence of a target.

I now have the target, our own ATMEGA48 based design. Using AVR Studo 4.09 and JTAGICE MK2 (ATMEGA48 not supported by JTAGICE MK1), I can write download and debug simple assembler programs. Hence emulator and target functioning OK.

JTAGICE MK2 is not supported by IAR Embedded Workbench.

I have already noted the section in the IAR help file about forcing IAR Embedded Workbench to generate the correct debug file format, but so far I have been unable to find a way of loading it into AVR Studio.

Does anyone know if it is possible to use AVR Studio with JTAGICE MK2 to debug the O/P of IAR Embedded Workbench ?

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

AVR Studio version 4.09 works with the JTAGICE mkII. I believe that the IAR C compiler provides a compatable files for symbolic debugging of C code. I know that the ImageCraft C compiler does.

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

hello steve,
i would assume that you use ewavr v3.xx. iar changed the default file format for debugging to ubrof9, which ist not supported by avrstudio 4.
you have tell the linker, that he should also produce a ubrof8 file which you can load with avrstudio 4.

hope this helps
gerhard

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

hello steve,
i would assume that you use ewavr v3.xx. iar changed the default file format for debugging to ubrof9, which ist not supported by avrstudio 4.
you have tell the linker, that he should also produce a ubrof8 file which you can load with avrstudio 4.

hope this helps
gerhard