mikroprog for pic and debugger problems

General discussion on mikroProg™ programmer and debugger and mikroProg Suite software as well.
Post Reply
Author
Message
jery
Posts: 29
Joined: 27 Jun 2011 21:37

mikroprog for pic and debugger problems

#1 Post by jery » 18 Jul 2017 09:32

I have just bought the mikroprog suite for pic.

I have one project with pic18LF26k22 , the only way to work with the debugger is power the mcu from the mikroprog and to put a pull up resistor on mclr pin.
(I use to disable the mclr pin at my projects)

....................
Update
after some testing, the debugger doesnt work , now I can get into in debug mode but when I press the start button I get the following errors.



Is need it to put extra pull ups or pulls down on the clock and data pins?
I have the laterst drivers
Latest fw on mikroprog
I have tested on a second pc
I use windows 10 64bit
I havent connect anything on data and clock pins , just the mikroprog
latest version of mikroc
laterst version of mikroprog suite
Programing works on this pcb
Attachments
Untitled.jpg
Untitled.jpg (31.88 KiB) Viewed 4600 times

jery
Posts: 29
Joined: 27 Jun 2011 21:37

Re: mikroprog for pic and debugger problems

#2 Post by jery » 18 Jul 2017 10:21

I enabled the mclr pin and now I dont get an error msg

User avatar
darko.ilijevski
Posts: 581
Joined: 21 Mar 2017 16:57

Re: mikroprog for pic and debugger problems

#3 Post by darko.ilijevski » 19 Jul 2017 17:17

Hello,

So, were you able to resolve your issue ?

Regards
BR,
Darko

jery
Posts: 29
Joined: 27 Jun 2011 21:37

Re: mikroprog for pic and debugger problems

#4 Post by jery » 20 Jul 2017 08:26

As I see I must enable the MCLR pin ?
With MCLR enable , it doesn't need to power the pcb from mikroprog.

User avatar
darko.ilijevski
Posts: 581
Joined: 21 Mar 2017 16:57

Re: mikroprog for pic and debugger problems

#5 Post by darko.ilijevski » 20 Jul 2017 16:53

Hello

MCLR pin is basically used to feed the programming voltage to the MCU, so it has to be enabled in order to program the device. During the programming - especially if you are using high voltage programming, that pin can be fed with up to 12v (depending on the MCU) If you disable it or put some inadequate resistors on it, it might interfere with the programming process. For the most accurate info on that, you can check in the datasheet of a certain MCU you are trying to program.

Best regards
BR,
Darko

jery
Posts: 29
Joined: 27 Jun 2011 21:37

Re: mikroprog for pic and debugger problems

#6 Post by jery » 21 Jul 2017 09:08

It doesnt need to be enable for mcu programing.You can configure mclr as a Port and you can program the mcu with no problem.
Mikroprog can program the mcu with the MCLR disable , but debugger doesn't work.
Is this standard for mikroprog debug? because I think that there isnt on the manual

User avatar
darko.ilijevski
Posts: 581
Joined: 21 Mar 2017 16:57

Re: mikroprog for pic and debugger problems

#7 Post by darko.ilijevski » 21 Jul 2017 18:21

Hi,

Yes, you are correct for the programming, when I said enabled, I was thinking like - the pin not being cut off from the circuitry, or disconnected. Programmer sets the Vpp via that pin, doesn't care about the current code in the MCU itself - you can't 'lock' the PIC that way... But without it, you couldn't even program. As for the debug - I will investigate a bit and let you know.

Best regards...
BR,
Darko

Post Reply

Return to “mikroProg™ programmer and debugger”