What to do when coff file won't load?

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

I cannot do any debugging because the coff file generated by gcc will not load into Studio. It complains about not being to open a source file, but which ? There is no clue in the message. Some of the code is from the gcc library and there is no source. What can I do about that ?

admin's test signature
 

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

I have the same problem with Studio3.53. It is more impossible to get it going with Studio 3.54. It simply gives me an "illegal operation" error. I realy would like to know how to get the gcc cof files going in Studio.

But, all is not lost! Try to open the .obj (not .o) file. There should only be one. It worked for me in both 3.53 and 3.54.

Ruan

admin's test signature
 

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

But wait.....there is more.....
Since this is the AVR studio 4 forum, have you tried Studio4.02 yet? I have just done that, and it worked with gcc generated coff files! Which version of studio did you use?

Ruan

admin's test signature
 

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

Aha ! I tried versions 3.53 (blows up on coff files) and 4.0 (doesn't blow up, but doesn't work either - progress ?). Sometimes I can load the obj file, but even this fails sometimes. Of course there is not even a pretense of source level debugging with the obj file.

I will try 4.02 because this coff file problem has proved to be a nightmare (basically we are trying to debug real time AVR programs with no ability whatsoever to step through the code in the simulator).

Thanks for the tip.

admin's test signature
 

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

Yeee hah !

I tried version 4.02 (downloadable from Atmel site where it is incorrectly still described as version 4). Wonder of wonders, the coff file bugs that I was having appear to have been fixed. Even better, you now appear to be able to use Studio when you are using library code for which no source is available - it just drops into diassembly mode for these section - as it should. One further point. The source level debugging offered by cof files appears to work properly (at least it worked for my very basic tests, and I was able to set watches on variables).

I think the new version is well worth downloading if you have been struggling to load cof files.

Thanks very much to Studio developers. Now if you would just put the terminal emulator back, I could really get some work done. A few suggestions:

1) how about giving the terminal emulator the ability to let you send hex data
2) better still, could Studio hook the pc com port so that the real terminal programs or binary com programs could talk to the emulator, instead of the actual chip.

admin's test signature