Programmer not programming

General discussion on mikroProg™ programmer and debugger and mikroProg Suite software as well.
Post Reply
Author
Message
salex319
Posts: 72
Joined: 28 Nov 2013 01:17

Programmer not programming

#1 Post by salex319 » 10 Sep 2021 19:41

Working on Windows 10 system I have been developing on a long time. Programmer has worked on it for years. But today I've been trying to program some boards on my programmer and debugger and it has stopped working. I've tried it on a couple of different boards working with PIC16F1824 and 1828s. I've connected the logic analyzer to the clock and data lines and I'm confused by what I see. I've written a very simple program and when I try to program it it fails as shown below. It's capable of identifying the Microchip part and proceeds with programming but seems to send zeros during what I guess is programming. I'm probably missing something simple but can't figure it out.

Code: Select all

program Test;

{ Declarations section }

begin
  { Main program }
  OSCCON:=0x72;  // 0x72=8 Mhz
  //OSCCON:=0x3A;  // 0x52=500 KHz (using Internal MF clock)
  ANSELA:=0;  // Configure all pins as Digital for now
  ANSELB:=0;  // Configure all pins as Digital for now
  ANSELC:=0;  // Configure all pins as Digital for now

  TRISC1_bit:=0;

  while true do
        begin
        LATC1_bit:=0;
        Delay_1ms();
        LATC1_bit:=0;
        end;

end.
Test.hex
:020000000E28C8
:100006000330FC009730FD00FD0B0728FC0B07288A
:06001600000000000800DC
:10001C0072302100990023008C018D018E0121008A
:0E002C008E1022008E1003208E1017281C2824
:020000040001F9
:04000E00E23F1316A4
:00000001FF

Programmer issue #1.png
Programmer issue #1.png (166.2 KiB) Viewed 2253 times
I have expanded portions of the logic analyzer to show it appears to be mostly working.
Programmer issue #2.png
Programmer issue #2.png (3.33 KiB) Viewed 2253 times
Programmer issue #3.png
Programmer issue #3.png (2.55 KiB) Viewed 2253 times

hexreader
Posts: 1784
Joined: 27 Jun 2010 12:07
Location: England

Re: Programmer not programming

#2 Post by hexreader » 10 Sep 2021 19:57

Disclaimer: - I have no idea what I am talking about, but....

1) You are using old Mikroprog software 2.8 - I would upgrade to 2.9

2) Update firmware to programmer after step 1

3) What mikroProg hardware are you using? - is it MIKROE-764? - or on-board programmer?

Will investigate further when 1) to 3) is answered.....
Start every day with a smile...... (get it over with) :)

salex319
Posts: 72
Joined: 28 Nov 2013 01:17

Re: Programmer not programming

#3 Post by salex319 » 12 Sep 2021 19:26

Thanks for your reply.

1) I cant' find the 2.9 upgrade you mention. Where do I get it?
2) I performed a firmware update from within the programmer software.
Programmer issue #4.png
Programmer issue #4.png (21.28 KiB) Viewed 2235 times
Since then the programmer has been working. I don't know if the update made a difference or if that was just a coincidence. Probably coincidence because I have worked with this board before.
3) My programmer is the 764.

So for now if you could point me to how to perform the 2.9 upgrade that would be great.

hexreader
Posts: 1784
Joined: 27 Jun 2010 12:07
Location: England

Re: Programmer not programming

#4 Post by hexreader » 12 Sep 2021 19:36

Sorry, I should probably should have been clearer...
Mikroprog suite 2.9

Not firmware version - that looks OK

I sense that it may make no difference, but possibly worth a try.

I do not own PIC16F1824, or 28. I successfully programmed 16F1827. Closest PIC that I own.
Attachments
forum.png
forum.png (10.33 KiB) Viewed 2234 times
Start every day with a smile...... (get it over with) :)

abhijitrashinkar
Posts: 17
Joined: 31 Jul 2010 19:41

Re: Programmer not programming

#5 Post by abhijitrashinkar » 23 Feb 2022 15:41

Hello! Hexreader
good evening

Kindly excuse me if i am writing on the wrong note, may i request you to point out my mistake if possible.

I am using EasyPIC V7 and also i have installed MikroProg Suite V2.90, my board has a firmware V1.11.11.1 and everything was working until i need to use PIC18F26K42 and PIC18F27K42 (because of 12Bit ADC), i was answered by Filip (MicroE person) to upgrade the firmware from the suite, i tried to upgrade the firmware but every time it is interrupted due to some errors and then i receive the EMPTY error at the end.

No i am left without any firmware in the EasyPIC, so as per Filip advise i installed the firmware by the file he provided, somehow i managed to install the firmware but again the old version (V1.11.11.1), unfortunately this firmware is not able to program the above mentioned chips.

To solve this problem i purchased MikrpProg 764, but again the same "History Repeat" this device also has a firmware with version V1.11.11.1, so i am again back to the same square. Honestly i am afraid the update the firmware of this new device, rather confused if i should perform the upgradation or not.

Kindly excuse if i have posted my doubt on wrong heading, i will be very grateful if you could answer my doubt/problem, unfortunately i am not receiving any answer from the support team for the moment.

DOUBT: is it possible to get the firmware file like what Filip shared for the EMPTY error, that will be easy to solve the problem quickly.

Thank you.

Regards
Abhi

hexreader
Posts: 1784
Joined: 27 Jun 2010 12:07
Location: England

Re: Programmer not programming

#6 Post by hexreader » 23 Feb 2022 15:46

Attached is "forempty" utility:

Run this program to get old firmware loaded, then do the update procedure to get current firmware

let me know if you need further help...
Attachments
ForEmpty.zip
(788.05 KiB) Downloaded 46 times
Start every day with a smile...... (get it over with) :)

abhijitrashinkar
Posts: 17
Joined: 31 Jul 2010 19:41

Re: Programmer not programming

#7 Post by abhijitrashinkar » 23 Feb 2022 16:35

Hello! Friend

Many many thanks for your prompt reply.

I tried installing your file for the EMPTY firmware but continuously receiving error and could not complete the firmware installation. I tried to install the firmware file like Admin also but without success.

I will try using the same file which Filip gave me in the past, because that file worked to install the EMPTY file but i need to do that using my Windows XP computer, my present computer is Windows 8.1

I will keep you posted in a while. Once again many thanks for your prompt help.

Regards
Abhi

hexreader
Posts: 1784
Joined: 27 Jun 2010 12:07
Location: England

Re: Programmer not programming

#8 Post by hexreader » 23 Feb 2022 16:39

Ignore the above post #6 - I do not think that you need it.

Run all programs in "ADMIN" mode

1) Run mikroProg suite (you already have 2.90 current version)

2) USB
- firmware update
- yes

3) v01.16.12.21 is the current version firmware

Not sure if I am making sense: not sure if I know what I am talking about :(

attached is a simple test program for PIC18F27k42
Attachments
pintest.zip
(70.94 KiB) Downloaded 42 times
Last edited by hexreader on 23 Feb 2022 17:44, edited 1 time in total.
Start every day with a smile...... (get it over with) :)

hexreader
Posts: 1784
Joined: 27 Jun 2010 12:07
Location: England

Re: Programmer not programming

#9 Post by hexreader » 23 Feb 2022 16:44

If above does not work - try better quality USB cable connected directly to PC

... running out of ideas and clutching at straws ...
Start every day with a smile...... (get it over with) :)

abhijitrashinkar
Posts: 17
Joined: 31 Jul 2010 19:41

Re: Programmer not programming

#10 Post by abhijitrashinkar » 27 Feb 2022 14:52

Hello! Hexreader and Filip
good evening

This is to update you both regarding the firmware upgradation of my EasyPIC V7 board and MikroProg device, both are upgraded and working as expected. No doubt it was not a easy task to upgrade but somehow managed.

Thank you.

Regards
Abhi

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

Re: Programmer not programming

#11 Post by filip » 28 Feb 2022 12:27

Hi,

I'm glad that you made it! :)

Regards,
Filip.

Post Reply

Return to “mikroProg™ programmer and debugger”