Author Topic: why the avr project can't debug ?  (Read 3994 times)

Offline vfdff

  • Multiple posting newcomer
  • *
  • Posts: 19
why the avr project can't debug ?
« on: April 05, 2009, 03:37:54 pm »
when I choose the avr project to ceate c++ project,I find it is impossiable to debug ,but it's all right when I choose console application to ceate c++ project, why ??
ps:
I have install both gcc compiler and winavr !

Alex79

  • Guest
Re: why the avr project can't debug ?
« Reply #1 on: April 08, 2009, 04:33:52 pm »
Hi, maybe I'm missing the mark here, but:
You can't debug because the AVR is a different processor than your pentium-ish one, so your gdb debugger can not step through the instructions. You need either an AVR simulator or a hardware connection to your AVR so the debugging takes place in-hardware.
If you are using Windors you can use AVRStudio to debug (free). For a hardware debug, you should use JTAG or debugWire depending on the AVR you are using. AVRStudio is very easy and simulates every register, peripheral and IO port on the AVR.
Hope it helped!

Regards,
Alex

Offline vfdff

  • Multiple posting newcomer
  • *
  • Posts: 19
Re: why the avr project can't debug ?
« Reply #2 on: April 10, 2009, 02:54:57 pm »
thanks for your detail answer,that's to say ,the  avr compiler don't have an debug tool itself?