sunil21
Advanced Member level 4
I am working on a project with atmega 8 and doing the code in Avr studio 6.2 and simulation in proteus.
I am trying to debug few float related functions.
i.e., for testing purpose I have created one AVR program with a main function and the function I want to test,
no hardware is needed and so not connected. the function is related to ADC and doing some float maths and all... and returns a value. for accurate testing purpose I wrote the dummy main which calls this particular function and returns a value to the main function.
my question is how can I debug this without connecting to a hardware. I am using usbasp to program this software, I don't think this allows any debugging!
When I wrote this program in to AVR studio 6.2 and try to debug it ask me to connect a hardware.
In Proteus , I tried this and the simulation stopped when the float part comes up.
I am trying to debug few float related functions.
i.e., for testing purpose I have created one AVR program with a main function and the function I want to test,
no hardware is needed and so not connected. the function is related to ADC and doing some float maths and all... and returns a value. for accurate testing purpose I wrote the dummy main which calls this particular function and returns a value to the main function.
my question is how can I debug this without connecting to a hardware. I am using usbasp to program this software, I don't think this allows any debugging!
When I wrote this program in to AVR studio 6.2 and try to debug it ask me to connect a hardware.
In Proteus , I tried this and the simulation stopped when the float part comes up.