Running MPLAB simulation problems

General discussion on mikroC.
Post Reply
Author
Message
pwdixon
Posts: 1431
Joined: 13 Apr 2005 11:14
Location: UK

Running MPLAB simulation problems

#1 Post by pwdixon » 14 Apr 2005 09:15

I'm trying to run MPLAB to simulate an 18F8520 but I cannot get it to work as the assembler objects to the code produced by MikroC can anyone give me any guidance?

gambrose
Posts: 369
Joined: 28 Sep 2004 17:34
Location: uk

#2 Post by gambrose » 14 Apr 2005 10:45

The asm code produced is not compatible with MPLAB the main problems are the line numbers which all have to be taken out and the variable declarations which have to be included.

This has problem has come up before, my advice is have a little moan to mE and if enough people want MPLAB compatible assembly then they will probably do something about it.
Graham Ambrose

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: Running MPLAB simulation problems

#3 Post by zristic » 14 Apr 2005 11:50

From MPLAB main menu: File->Import, then point to your HEX made in mC and then run the simulator... It always works.

pwdixon
Posts: 1431
Joined: 13 Apr 2005 11:14
Location: UK

Ok but...

#4 Post by pwdixon » 14 Apr 2005 12:01

So import gets the hex loaded and it runs, (at least a run bar at the bottom of the screen says it's running), but I don't get anything on the analyser....

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: Ok but...

#5 Post by zristic » 14 Apr 2005 14:54

MPLAB is very complicated to configure. You have to try various settings in Project->Edit Project

royhopkins
Posts: 6
Joined: 30 Jul 2005 01:56

MPLAB simulation

#6 Post by royhopkins » 30 Jul 2005 02:02

Can any one tell me how to import MikroC into MPLAB so that I can program a chip via my ICD2 programmer.

Bruce
Posts: 1
Joined: 31 Jul 2005 03:03
Contact:

#7 Post by Bruce » 31 Jul 2005 03:17

With MPLAB runing, ICD2 selected as the programmer, and the target PIC
selected, click File >> Import, and load the compiled .hex file.

MikroC won't integrate (as a language tool) into MPLAB, but you can still
use ICD2 to program code generated by MikroC into the target.
regards,

Bruce
http://www.rentron.com

Post Reply

Return to “mikroC General”