Debugging CodeVision COF file not working with ICE200

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

Hi

I'm using:
CodeVisionAVR V1.24.3a
AVRStudio V4.07 Build 240
ICE200

I have 2 seperate problems which may or may not be related...

1. I'm generating a .cof file in CodeVision and attempting to open it in AVR Studio to debug.
When I open the .cof in Studio, if I select the simulator I get the C source visible in a window in a paused state ready to start stepping through, which is good. However, if I select the ICE200 the code seems to start running immediately and when I break it a window labelled Disassembler opens and I can step through that (which makes no sense at all to me). How can I step through my C code using the ICE200.
Note: The ICE200 works fine when writing assembler in Studio.

2. Whenever I run a project using the ICE200 at any time, a window labelled AvrTargetIce200 opens asking me to upgrade an old version of ICE200. If I say no I can continue on normally. If I say yes, I eventually get an 'Unable to read input file' message.
What is the file it's trying to read?

Any help appreciated.

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

I was NEVER able to get Studio 4.07 to work with ICE200. I have been using it somewhat successfully with Studio 4.08 and 4.09, so it may be a good idea to upgrade your Studio. There is still an annoying bug which Atmel is kindly looking at where, at reset, the cursor goes to the 1st instruction pointed to by the reset vector rather than the reset vector itself. When this happens the ICE will not run, you will have to rebuild and run several times before it works again or try to reselect the target and device. All my experience is with assembler code and ICE200 so other problems may exist with C compilers also.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Thats interesting that you say you've never had much success with the ICE200 in Studio4.07. As long as I write in assembler within Studio the ICE works really well, it still does the 'do you wish to upgrade' thing but otherwise it does the job. It's only when I open a .cof file that things go wrong. I updated to V4.09 yesterday but nothing changed. :(

Has anyone else had this problem?
For anyone using the CodeVisionAVR compiler, how do you do your debugging in AVR Studio?

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

What the... ..... sorry, double post here..

Thats interesting that you say you've never had much success with the ICE200 in Studio4.07. As long as I write in assembler within Studio the ICE works really well, it still does the 'do you wish to upgrade' thing but otherwise it does the job. It's only when I open a .cof file that things go wrong. I updated to V4.09 yesterday but nothing changed. :(

Has anyone else had this problem?
For anyone using the CodeVisionAVR compiler, how do you do your debugging in AVR Studio?

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

You may want to contact Jonathan Mitchell or Kristi Little at Unique (Atmel Support) in Melbourne (03) 9760 4277

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Please remember that forgetting ICE-200 reset pullup resistor gives similar problems! The reset pin is floating in ICE-200. In real chip the reset pin is pulled up by chip itself! At least for me this gave 10 minute headache!