debugging/watching classes in AS6.1

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

It is the first time I use C++ for one of my projects.

Even more stupid, I tried to modify an existing (and more or less working) project and replaced parts of the code for use of a C++-class (code for circular buffer).

It took me almost one day to solve all compiling errors.

Now, the code compiles and should be debugged on a test circuit using an JTAGICE3.

Whenever the constructor-code for the class is reached, I can see, that all class-intern pointers remain 0000 (!) and other variables don't change their values.

Is there any problem known while debugging a class ?

I program like a man:
COPY CON: > firmware.hex

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

you can definitely debug classes using the simulator. I do not use a JTAGICE3 so cannot comment on its behaviour.

I suggest trying it with the studio simulator and validating that the code works as you expect and then moving to the ICE.

regards
Greg

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

With JTAGICE3 I have the strange effect, that sometimes being inside the class coe, anything is 0.
The correct values show up after exiting the class-code

I program like a man:
COPY CON: > firmware.hex

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

Which AVR are you using?
AVR Clock speed?

The JTAG speed could be either too high or too low.

If you want a career with a known path - become an undertaker. Dead people don't sue! - Kartman

Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB user