Can't select anyting else but mega128 to simulate

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

I start AVR studio, open my COF-file and select AVR Simulator. But the only part that shows up is mega128??? It was a long time since I used the simulator as I use my mktII so maybe I do something totally wrong here? Anyway, please help!

I use Ver 4.11.410 Service Pack 3

My favorites:
1. My oscilloscope, Yokogawa DLM2024.
2. My soldering iron, Weller WD2M, WMRP+WMRT.
3. JTAGICE3 debugger.

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

Well that's an out of date Studio and why are you using COFF ? You should be using Elf/Dwarf2

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

OK, I make sure to update to latest right away. It may be that this version was not good, but usually bugs are not so extreme like this one.

I use COFF because that is what comes out of my Imagecraft compiler :-)

What is Elf/Dwarf2?

My favorites:
1. My oscilloscope, Yokogawa DLM2024.
2. My soldering iron, Weller WD2M, WMRP+WMRT.
3. JTAGICE3 debugger.

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

Quote:
What is Elf/Dwarf2?

It is one of several debug formats supported by AVR Studio.

Once upon a time, avr-gcc was unable to produce code that could be debugged in AVR Studio. Then, some smart people got together, read up on the COFF specification, and created a patch for the GNU toolchain, to allow it to produce files that *could* be debugged in AVR Studio. These files were of the COFF format.

But, this patch was buggy and incomplete. NOTE that it wasn't that AVR Studio's treatment of COFF files was buggy... It's just that GCC's conversion to COFF format wasn't up to par. And this patch proved quite troublesome to maintain. The maintainers of avr-gcc decided that continuing along that path was pointless, because the Elf/Dwarf2 debug format was already working quite well for other systems, and it was already natively supported by the GNU toolchain.

The folks at Atmel agreed, and so they added Elf/Dwarf2 as an acceptable debug file format.

It is my understanding that the folks at Atmel will continue to address any confirmed shortcomings in AVR Studio's treatment of any of its supported debug formats. It just so happens that, more often than not, problems with COFF files from avr-gcc were actually GCC's fault, not AVR Studio's.

But that does not answer the question about the missing simulator options. Ensure that you have the latest version of Internet Explorer installed. And then upgrade to the latest version of AVR Studio. And then apply the latest service pack.

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

Thanks Ifmorrison for the detailed answer.

I have upgraded AVR studio and now everyhting acts as expected.

My favorites:
1. My oscilloscope, Yokogawa DLM2024.
2. My soldering iron, Weller WD2M, WMRP+WMRT.
3. JTAGICE3 debugger.

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

I know you've fixed it, but for others; my latest version of AVRStudio has the following to say in the "Generic" Known Issues section of the Help File.

Quote:
Some users can not select any devices for debugging, and/or the debug session will never start. Typical only the ATmega128 is available for selection when using ICE40/50, simulator or JTAGICE mkII.
This is probably caused by some DLL files being damaged and/or having wrong versions. We have identified two actions that can help to solve these issues:

1) Make sure you have the latest Internet Explorer version 6 installed with the latest service pack.

2) Install the Microsoft XML Parser (MSXML) 3.0 Service Pack 4 or later (SP4). AVR Studio 4 uses the XML parser extensively. This package can be downloaded from the following site:

...

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!