View previous topic :: View next topic |
Author |
Message |
jmaudley
Joined: 01 Feb 2011 Posts: 32 Location: 53
|
Bootloader 18f46k80 |
Posted: Mon Oct 24, 2016 6:11 am |
|
|
Hi,
Having bootloader issues.
My starting point was to use Ex_bootloader and ex_bootload.
I have programmed these on a CCS development board which uses a PIC18f4580 chip and everything works fine.
Now I need to get this working on my new hardware platform which uses a PIC18F46K80 chip.
I have modified the chip and fuses to suit the new board otherwise programs are the same as on the working system.
Result:
Bootloader displays prompt: waiting for data (as expected)
Download using SIOW.exe : runs through programming but application doesn't work.
I'm trying to understand if the new 18f46k80 chip requires me to adjust the LOADER_END address in BOOTLOADER.H.
Could this be problem? Studying BOOTLOADER.H but not really getting it at the moment.
Any help appreciated.
(PCWH compiler 5.051) |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19538
|
|
Posted: Mon Oct 24, 2016 7:33 am |
|
|
Unless you have changed the size of the bootloader, no.
Are you sure your fuses are right?. Basic test, program using the same fuses, a little test program to flash an LED or toggle a pin at a fixed rate. Does the pin toggle or the LED flash at the right rate?. If this is wrong, the baud rate will be wrong and the bootloader will reject everything.....
Are you sure the pin you are using to trigger the bootloader is programmed correctly?. The 46K80 has a lot more peripherals that in some cases may need to be disabled. The pin used in the example (B5), is connected to CCP5 on the 46K80, which takes priority over port I/O. |
|
|
jmaudley
Joined: 01 Feb 2011 Posts: 32 Location: 53
|
|
Posted: Mon Oct 24, 2016 7:52 am |
|
|
LED flashes correctly.
RS232 debug message is working fine.
Bootloader triggers OK as I can see the message 'waiting for download'.
SIOW displays downloading.
Application doesn't run after download.
bootloader.h is included. |
|
|
jmaudley
Joined: 01 Feb 2011 Posts: 32 Location: 53
|
|
Posted: Wed Oct 26, 2016 2:26 am |
|
|
Resolved - thank you Richard CCS support.
I had a timeout specified in the #uses RS232 line which messed up the bootloader.
Had I posted the code I'm sure someone else would have spotted that. |
|
|
|