AVR Studio 4.09 Does not load my COF file correctly

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

Has anyone else experienced this problem. When i attempt to load my cof file in AVR studio the code seems to load correctly in the target (via JTAG) but the source window never opens. Once the code is fully loaded the target executes withought ever hitting the run button. When the reset button is pressed a disassembler window opens with the timer 1 compare match interrupt service routine at address 0 in flash and no reference to my C code can be seen anywhere. See below for details on my project.

Language: C
Compiler: CodeVision 1.24.2c Standard
Emulator: JTAG
Processor: Mega128

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

Hi, Iyachtu,

Iyachtu wrote:
Has anyone else experienced this problem. When i attempt to load my cof file in AVR studio the code seems to load correctly in the target (via JTAG) but the source window never opens.

Yes, me.
I'am working with the GCC compiler.

In my last small project I experienced this phenomen.
I had written down my code, compiled, "no error, no warning".
I loaded into studio - the target got programmed, but no source code visible.
So, my code was a buggy code.

I nailed the cause down by restarting with a simple program, which worked without any fault.
Then I added more and more modules of the buggy code, compiled, loaded by studio.
Until the same fault appeared again. The cause must have been in the last added buggy code.

At last I assumed, the elf to cof converter can't deal with a FILE* declaration within a struct.

I found a way to circumvent this declaration by declaring the pointer as void*.

The cause in your program will be different - please place it here.

Ciao
Wolfgang Horn

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

After some testing My code has come to a point where deleting a single blank line in the c file means the differance betwene being able to debug and not. Would this be an indication that AVR Studio has a limit on the size of source file it can load?