News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

why the avr project can't debug ?

Started by vfdff, April 05, 2009, 03:37:54 PM

Previous topic - Next topic

vfdff

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

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

vfdff

thanks for your detail answer,that's to say ,the  avr compiler don't have an debug tool itself?