Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

PIC18 Simulator IDE with PICkit2

Status
Not open for further replies.

Gaby

New Member
Hello,

How to make PIC18 Simulator IDE from Oshonsoft compatible with the PICkit2 from Microchip ?
when I write a program using Oshonsoft and download it to the PIC18F4550, it doesn't work, whereas an assembly program works.
The program code I wrote using Oshonsoft is correct. How it can be downloaded using PICkit2 ?
 
I have the PICkit2 v2.55 programmer. After compiling the program, I download the hex file (the binary code), But it does not work.
The prgram is downloaded successfully to the PIC18, I see the code in its memory, but it doesn't operate on hardware.
 
I will tell you how I know that the code is correct, and what is not working.
I used to program the PIC18 using USB module using a bootloader of 20MHz, and I download the program using PICDEM ES USB demo tool. This way the program works, but with some problem with the start up of the PIC18, I need to try 3 - 4 times to make it start.
Now I am trying to download the same program using PICkit2, I download it and put the PIC18 in the test, but nothing happens.
 
That is about the only thing I've used with Oshonsoft - Pickit 2. And it does work. But what I do know (from experience) is that the oscillator settings are sometimes not handled completely on Oshonsoft (especially on the chips that have built-in calibration and the calibration gets lost - it happens).
 
Can you post a very short piece of code (LED blink or something) which works on the Simulator, does not work with PicKit2, and works with bootloader (remember that in bootloader mode, the clock configuration is already "programmed" by the bootloader code - only saying that this may be where the error is occuring)?
 
Hi,

When programming 18F2431 make sure that when using the Pickit2 the pins 8 and 19 and 26, 0V pins plus PGM, are connected together also pins 7 and 20, 5V are connected together. This might also works for 18F4550 PIC with VSS VDD and PGM pins.

Double check.

C.
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top