PIC18 Simulator IDE , hardware operation

Gaby

New Member
Hello every one !
How to make a program written with PIC18 Simulator operate on hardware ( on real PIC18 ic ) ?
I wrote a program for PIC18F4550 using PIC18 Simulator , then I simulated it on PIC18 simulator and Proteus and it worked correctly . I tried to operate the program on hardware , but it did not work . What is the problem ?
Here some information may help you diagnose the problem :
The hardware I use is a printed circuit with PIC18F4550 mounted on it with all other elements needed .
The microcontroller is loaded with a Boot loader placed between 0 H and 800 H .
The PIC18F4550 circuit board that I have works with other programs that I wrote using assembly language on MPLAB IDE v1.9 .
When I write the assembly programs I set the original to 0x800 or 800H ( ORG 0x800 ) , to start at the address that follows the Boot loader .
I use to download the hex file to the PIC18F4550 the PICDEM FS USB Demo tool .
In my program on PIC18 Simulator I did not mentioned any thing about the Original , or where the program should start .

I think the problem is that the program starts at 0x0000 and I have the Boot Loader at this address . How to set the original address of the program with PIC18 Simulator ?
If you have any other suggestion about the problem , please tel me about it .

Thank you
 
If it works on ISIS but not for real... The problem is almost always the OSC settings...

I don't think it is the bootloader space as Vladimir does a bootloader and almost all bootloaders reside it the top portion of memory.... Look at the StartFormZero function...
 
Hi,

If other programs have worked ok on that 4550 then it suggests a problem with your code.

Why not post your code and circuit diagram.

Do you have / have you tried a proper programmer rather than using the bootloader ?
 
Thank you Ian;
Can you tell me how can I make the PIC18 use the internal Oscillator using PIC18 Simulator ?
 
Hi,

If other programs have worked ok on that 4550 then it suggests a problem with your code.

Why not post your code and circuit diagram.

Do you have / have you tried a proper programmer rather than using the bootloader ?
It will do from the off there is a configuration window selectable from the main IDE...

Can I use the PIC18 Simulator to download my program to the real PIC18 ? And how can I do it ?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…