Run perfect on Debug, but not in relaese

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
mlebel
Posts: 58
Joined: 13 Apr 2010 11:55
Location: Karmiel, ISRAEL
Contact:

Run perfect on Debug, but not in relaese

#1 Post by mlebel » 10 Nov 2010 12:54

Hi,

I'm using mikroC PRO with the SPI Ethernet ENC28J60 Library.
When I'm debugging it on MPLAB or even just run it in Debug mode,
It all works perfect, it connect get IP & other info from DHCP.
But, when I load the program to the controller with the programmer (i.e release)
It doesn't work (no connection).

Is anyone had this problem & if yes how it was resolved?

Tn'x in advance
Meir Lebel

Mince-n-Tatties
Posts: 2780
Joined: 25 Dec 2008 15:22
Location: Scotland

Re: Run perfect on Debug, but not in relaese

#2 Post by Mince-n-Tatties » 15 Nov 2010 20:58

how are you using MPLAB to do the debug? do you have an easypic 6 or are you using a pickit?

when you go to release did you make sure to release target from reset in the programmer menu?

also be sure to generate non-debug code otherwise it wont run without the debugger.
Best Regards

Mince

Post Reply

Return to “mikroC PRO for PIC General”