mikroC pic18f45k22 load hex with MPLAB IDE b8.76

General discussion on mikroC PRO for 8051.
Post Reply
Author
Message
Karolina_1
Posts: 5
Joined: 10 Mar 2017 09:36

mikroC pic18f45k22 load hex with MPLAB IDE b8.76

#1 Post by Karolina_1 » 17 Mar 2017 00:21

hello friends

i really need help. I am new to PIC. So i have been using pic18f45k22 microcontroller. I created hex file in MikroC Pro. Than i loaded it to Proteus and its working fine.
Next, i wanted to load it into real pic.
I am using PICkit3 and MPLAB IDE V7.76. I connected pins from 1 till 6 to MCLR, Vdd, Vss, PGD, PGC and left 6th pin not connected as pic18f45k22 doesnt have PGM pin.
1. Opened the MPLAB
2. Selected device
3. Ticket on configuration bits
4. Selected programmer as pickit 3
PICkit 3 detected
Connecting to PICkit 3...
Firmware Suite Version...... 01.47.12
Firmware type......................PIC18F
PICkit 3 Connected.
Device ID Revision = 00000005
5. Ticket on(turn on) power target circuit from PIC
6. Program & Verify
Programming...
Programming/Verify complete

Verifying...
Verify complete

7. Blank Checking...
The following memory regions failed blank check:
Program Memory
Address: 00000000 Expected Value: 000000ff Received Value: 00000016
Blank check failed(0000000 meaning pickit was not recognized and connect)

Maybe problem with mikroC pro. maybe i didnt configure pins like MCLR or Watchdog time etc. Maybe these 6 pins from pickit3 not connected correctly to pic18f45k22. or problem with compiler.

void main() {
TRISD0_bit = 0;
ANSELD=0;

do{
LATD = 0x00;
Delay_ms(1000);
LATD = 0xFF;
Delay_ms(1000);
}while(1);
}

I would appreciate any help. Thanks in advance :-)
Attachments
sdaf.PNG
sdaf.PNG (63.05 KiB) Viewed 2794 times
ffff.PNG
ffff.PNG (101.48 KiB) Viewed 2794 times

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

Re: mikroC pic18f45k22 load hex with MPLAB IDE b8.76

#2 Post by hexreader » 17 Mar 2017 09:56

Start every day with a smile...... (get it over with) :)

Post Reply

Return to “mikroC PRO for 8051 General”