Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

I can`t run user program with Bootloader in PIC18F4520

Status
Not open for further replies.

flote21

Full Member level 6
Joined
Jan 22, 2014
Messages
375
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Activity points
5,220
Hello,
I am fighting against the bootloader in a PIC18F4520. I loaded this bootloader:

https://www.sectiongo.com/main/pic18-serialport-bootloader-example-in-xc8/

And the user program is written in the memory, but I am not able to run the program. I dont know what can be the problem but when I read the memory of the PIC, I appreciated differences in the the first positions of the rom memory between the same program loaded with the bootloader and the same program loaded with the microchip programmer..

Anyones had the same problem?

Thanks.
 

paulfjujo

Advanced Member level 4
Joined
Jun 9, 2008
Messages
1,454
Helped
295
Reputation
590
Reaction score
278
Trophy points
1,363
Location
France 01800
Activity points
10,299
hello,


with a bootloader allready installed into your MCU
you have to take care about
*reset vector
*interrupt vector
in your application program... read bootloader specification

it is not the case with virgin MCU and microchip programmer
witch uses standard reset vector 0x000
and interrupts vectors 0x0008 and 0x0018
 
Last edited:

flote21

Full Member level 6
Joined
Jan 22, 2014
Messages
375
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Activity points
5,220
Hello,
I read the specs of the bootloader and everything is made in the rigth way. The only thing that I have to modify is the parameter codeoffset in the linker options of XC8. My main problem is that I can't load the user program after using the bootloader....I don't know if inside of the user program I have to indicate a special instruction in the code...
Thanks.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top