Software debugger issue.

General discussion on mikroC PRO for AVR.
Post Reply
Author
Message
dibor
Posts: 208
Joined: 29 Dec 2014 18:59

Software debugger issue.

#1 Post by dibor » 07 Jan 2015 11:49

Hello.
I have few question about software debugger.
I know this debugger is only software debugger and can not to debug hardware.
But I can not understand why I can't to debug my program where I have UART communication.
Why is debugger stuck on UART communication?
If this is software only debugger so it will skip this function.

Regards.

User avatar
nemanja.nikolic
Posts: 171
Joined: 01 Dec 2014 10:50

Re: Software debugger issue.

#2 Post by nemanja.nikolic » 08 Jan 2015 11:36

Hello,

UART is hardware module, because that you can't skip this function.
Debugger wait for the some condition in you function.

Nemanja.

Best regards.

dibor
Posts: 208
Joined: 29 Dec 2014 18:59

Re: Software debugger issue.

#3 Post by dibor » 08 Jan 2015 12:46

Hello.
Which condition ??? What I need to do ???
Change statement on any bit ???
I do not have my UART function I use build-in function.
What I can to do for debugging my program (I do not want to remove UART function from source only for debugging!!!)?
By the way SPI has same problem, impossible to debug program where present SPI function.

How you are can help me?

Regards.

User avatar
nemanja.nikolic
Posts: 171
Joined: 01 Dec 2014 10:50

Re: Software debugger issue.

#4 Post by nemanja.nikolic » 09 Jan 2015 09:59

Hello,

Because AVR compiler has only software debugger, it makes no sense to use UART, SPI and other hardware modules in debug mode.
If there is any condition where you expect some data to fulfill your condition, you'll get stuck.
Simply said, you can use the software debugger when your board is disconnect.

Nemanja.

Best regards.

dibor
Posts: 208
Joined: 29 Dec 2014 18:59

Re: Software debugger issue.

#5 Post by dibor » 09 Jan 2015 11:57

Hello.
Thanks for answer.
I do not have any board, I want simulate my program, as I can under AvrStudio and GCC compiler(there nothing stuck but its only software debugger) ,I do not have any hardware connected to anything.
How can I simulate my program if your simulator/debugger doesn't works, *.coff file provided by yours compiler do not compatible with AvrStudio and others programs ????

Regards.

User avatar
nemanja.nikolic
Posts: 171
Joined: 01 Dec 2014 10:50

Re: Software debugger issue.

#6 Post by nemanja.nikolic » 12 Jan 2015 11:55

Hello,

All I want to say is: there is no sense to debug code with library and function for hardware modules in mikroC pro for AVR.
*.coff file is universal file for all compilers. You can import *.coff file (provided in mikroC PTO for AVR) in AVR Studio and debug.

Nemanja.

Best regards.

dibor
Posts: 208
Joined: 29 Dec 2014 18:59

Re: Software debugger issue.

#7 Post by dibor » 12 Jan 2015 12:36

Hello.
Thanks for answer.
I disagree with you about .coff file.

Please take any example for USART or SPI from example directory , compile it then open .coff file in the AvrStudio6.2 and you will see - DEBUG DOESN'T WORKS!!!!

May be I'm too stupid, so please give me example(don't Led Blinks) how .cof file generated by MikroC for AVR works under AvRStudio6.2

Best Regards.

User avatar
nemanja.nikolic
Posts: 171
Joined: 01 Dec 2014 10:50

Re: Software debugger issue.

#8 Post by nemanja.nikolic » 13 Jan 2015 17:49

Hello,

Sorry, sometimes *.coff can't be read properly.
I just suggest to you what you can try.

Nemanja.

Best regards.

dibor
Posts: 208
Joined: 29 Dec 2014 18:59

Re: Software debugger issue.

#9 Post by dibor » 13 Jan 2015 18:09

Hello.
Thanks for answer and explanation.
Sorry for my next proposal.
I think answer "...sometimes *.coff can't be read properly" - only for freeware and not licensed software.
For Pro version We need to find solution :!:

Best Regards.

User avatar
nemanja.nikolic
Posts: 171
Joined: 01 Dec 2014 10:50

Re: Software debugger issue.

#10 Post by nemanja.nikolic » 14 Jan 2015 14:45

Hello,

I was tested UART example from compiler and I can debug in AVR Studio.

Best regards.
Attachments
debug1.PNG
debug1.PNG (158.05 KiB) Viewed 5736 times
debug2.PNG
debug2.PNG (63.63 KiB) Viewed 5736 times
debug3.PNG
debug3.PNG (119.41 KiB) Viewed 5736 times
debug4.PNG
debug4.PNG (136.4 KiB) Viewed 5736 times

dibor
Posts: 208
Joined: 29 Dec 2014 18:59

Re: Software debugger issue.

#11 Post by dibor » 14 Jan 2015 15:14

Hello.
Thank you for explanation.
Try to simulate ahead with F10 "Step Over" and you will see how program exit from endless loop.
And I do not see any changes in IO View window under simulation.

Anybody else used AVR Studio as simulator ???? Please give yours opinion!


Best Regards.

User avatar
nemanja.nikolic
Posts: 171
Joined: 01 Dec 2014 10:50

Re: Software debugger issue.

#12 Post by nemanja.nikolic » 15 Jan 2015 11:32

Hello,

Set hardware debugger, currently i don't have AVR programmer.
Because of that I set the simulator.

Nemanja.

Best regards.

dibor
Posts: 208
Joined: 29 Dec 2014 18:59

Re: Software debugger issue.

#13 Post by dibor » 15 Jan 2015 12:53

Hello.
A have AVR programmer but not JTAG debugger(I do not have also free pins of AVR in my project) because that I need software debugger!

You can simulate in software also step by step, do you successes full simulation with software simulator ???

Best Regards.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Software debugger issue.

#14 Post by filip » 19 Jan 2015 10:51

Hi,

We will certainly investigate this matter and let you know.

Regards,
Filip.

Post Reply

Return to “mikroC PRO for AVR General”