Newbie question

General discussion on mikroPascal PRO for AVR.
Author
Message
ObiWan
Posts: 4
Joined: 23 Sep 2015 11:01

Newbie question

#1 Post by ObiWan » 29 Sep 2015 14:13

Hi
I'm a Delphi programmer and I need to start writing code on AVR processor.
Using Mikropascal and Mikroprog connected with my custom board will I be
able to debug the code line by line ?

Sorry if I made a stupid question

Thanks a lot

FL

aCkO
Posts: 1119
Joined: 14 Feb 2011 04:07
Location: Bar, Montenegro

Re: Newbie question

#2 Post by aCkO » 29 Sep 2015 15:13

Unfortunately, no. mikroProg for AVR is just a programmer, not a debugger. You can only use software simulator to debug line by line.

Regards

ObiWan
Posts: 4
Joined: 23 Sep 2015 11:01

Re: Newbie question

#3 Post by ObiWan » 29 Sep 2015 15:46

Thanks for the answer.
Is there any device to debug from witin Mikroprg ?

tks

fl

aCkO
Posts: 1119
Joined: 14 Feb 2011 04:07
Location: Bar, Montenegro

Re: Newbie question

#4 Post by aCkO » 30 Sep 2015 01:52

Unfortunately, the answer is no again. mE's software supports only their in-house developed hardware. If I remember correctly, there were plans for the development of hardware debugger for AVR, but I don't know the current status of that project. Maybe someone from the support team can give you more info.

Regards

User avatar
biljana.nedeljkovic
mikroElektronika team
Posts: 1043
Joined: 30 Jun 2015 15:15

Re: Newbie question

#5 Post by biljana.nedeljkovic » 30 Sep 2015 11:45

Hello,

unfortunately, at this moment, we don't have a debugger for AVR, and you can only use software simulator.
Also, as aCkO mentioned, our software supports only in-house developed hardware.

As for the plans about developing a hardware debugger, we had them, but at this moment, I can't give you any certain information about its release.

Best regards,
Biljana

ObiWan
Posts: 4
Joined: 23 Sep 2015 11:01

Re: Newbie question

#6 Post by ObiWan » 05 Oct 2015 13:30

Hi
as I say before Im a really newbie in this field, so can you please
explain more on debugging with a software simulator ? Is there any
doc I can read for undestrand ?

Tks
fl

User avatar
aleksa.jovanovic
Posts: 526
Joined: 30 Jun 2015 08:48

Re: Newbie question

#7 Post by aleksa.jovanovic » 06 Oct 2015 09:38

Hi,

You can read about it in our Help section in the mikroPascal for AVR.

Software debugger does its work without the hardware being connected.
This can predict certain bugs that may occur in the code, however it can't respond to inputs, communicate with other devices etc...
Hardware debugging can be done by generating a COFF file and importing it into AVR Studio, there is a detailed explanation in our Help file on how to do this step by step.

I hope this clears it up.

Best regards,
Aleksa

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

Re: Newbie question

#8 Post by dibor » 06 Oct 2015 13:38

aleksa.jovanovic wrote:Hardware debugging can be done by generating a COFF file and importing it into AVR Studio, there is a detailed explanation in our Help file on how to do this step by step.
Maybe with JTAGICE mkII Debugger but NOT only with AVR Studio simulator!!!!

User avatar
aleksa.jovanovic
Posts: 526
Joined: 30 Jun 2015 08:48

Re: Newbie question

#9 Post by aleksa.jovanovic » 07 Oct 2015 10:25

dibor wrote:
aleksa.jovanovic wrote:Hardware debugging can be done by generating a COFF file and importing it into AVR Studio, there is a detailed explanation in our Help file on how to do this step by step.
Maybe with JTAGICE mkII Debugger but NOT only with AVR Studio simulator!!!!
I believe that the JTAGICE mkII is mentioned in the instructions that I've mentioned earlier.

Best regards,
Aleksa

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

Re: Newbie question

#10 Post by dibor » 07 Oct 2015 12:15

I'm very sorry but all others compilers(like IAR,ICC,GCC,CodeVisionAVR,BascomAVR)generates .coff file compatible with AVRStudio, but only ME doesn't!!!!!
Here quotation from Help :
"Generate COFF(Common Object File Format) file for software and hardware debugging under AVR Studio®." !!!!!!

So, I believed to ME and purchased MikroC compiler, but I can't to simulate and debug my programs!!!
I open ticket more then 6 month ago but got only child answers (like "I relaid that problem to our software department.
We will find problem and fix in some of next release of compiler.").

Please DO something.

User avatar
aleksa.jovanovic
Posts: 526
Joined: 30 Jun 2015 08:48

Re: Newbie question

#11 Post by aleksa.jovanovic » 07 Oct 2015 15:05

I'm very sorry about the issues you are experiencing.

I've used the COFF file for a project and successfully used it to debug in AVRStudio.

Could you send me your project so I could see if it will debug properly?


Best regards,
Aleksa

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

Re: Newbie question

#12 Post by dibor » 07 Oct 2015 15:46

Hello.
Tnx for answer.
I take simple example from ....Examples\Development systems\EasyAVR7\Seven Segment Display .
You can see all information in the tick # MXG-330-28858.
I do not want debug in disassembly window.
If you have any tutorial ,how debug ME program in AVRStudio, I think many users will happy to see it.

Best Regards.

User avatar
aleksa.jovanovic
Posts: 526
Joined: 30 Jun 2015 08:48

Re: Newbie question

#13 Post by aleksa.jovanovic » 08 Oct 2015 15:13

The tutorial for using mikroC PRO for AVR can be found at

Help > Tutorials > Using mikroC PRO for AVR with AVR Studio


Best regards,
Aleksa

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

Re: Newbie question

#14 Post by dibor » 08 Oct 2015 17:50

Hi.
It's not seriously answer!
Do you saw this tutorial???? :lol:
This tutorial contains 8 rows of text and link to JTAGICE mkII Debugger!!!! :twisted:
Where any word about software debugging in the AVRStudio?????
And ones again, I do not want to debug in assembler!!! :evil:
diss.PNG
diss.PNG (30.47 KiB) Viewed 5473 times
Yours .coff file is not compatible with any simulators/debuggers!!!!
Please try to change yours coff format!!!!!

Regards.

ObiWan
Posts: 4
Joined: 23 Sep 2015 11:01

Re: Newbie question

#15 Post by ObiWan » 13 Oct 2015 12:46

... little OT I think..... talking of Mikro C in wrong section can compromise thread readability

Post Reply

Return to “mikroPascal PRO for AVR General”