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
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