View previous topic :: View next topic |
Author |
Message |
mehmetozcelebi
Joined: 13 Dec 2006 Posts: 2
|
18F CAN-BUS BOOTLOADER |
Posted: Wed Dec 13, 2006 3:51 pm |
|
|
Dear All,
Microchip's AN247 describes a CANBUS bootloader for 18Fxxx. How can I Integrate this Assembly code into my existing C code.
Has anybody Implemented a CAN BUS bootloader in C for multiple nodes?
Thanks in Advance.. |
|
|
kender
Joined: 09 Aug 2004 Posts: 768 Location: Silicon Valley
|
|
Posted: Wed Dec 13, 2006 8:58 pm |
|
|
I'm very inetersted in the CAN bootloader topic too.
It should be possible to blow the HEX file generated from the assebly that comes with the AN247 into the PIC with ICD. Then use a PC-CAN adaptor to send the main firmware (probably written in C) via CAN. Come to think of it, it should be also possible to download the firmware to multiple PICs simultaneously on the same CAN bus. |
|
|
mehmetozcelebi
Joined: 13 Dec 2006 Posts: 2
|
multiple nodes |
Posted: Fri Dec 15, 2006 9:22 am |
|
|
My problem begins when I have multiple nodes. I have multiple CAN nodes and the boards on the BUS are not identical. So, my problem remains. The CAN ID is hardcoded in my PIC-C Program.
The PIC-C Program should understand if code downloading is requested and then reset the PIC. Microchips AN-247 gives the right Assembly code.
However, I have no idea how to integrate that code into my C code. |
|
|
ralpok
Joined: 21 Dec 2005 Posts: 25
|
How to use CAN Bootloader |
Posted: Fri Dec 29, 2006 4:40 pm |
|
|
So I have downlaoded the AN247 bootloader from microchip with the hex file on it. I have also read through the application note and made some sense of it but don't have a feel for what I need to do to my CCS app to make it work. Anybody have an idea? Also, what type of app to I need to write for a computer to do the downloading, anybody done this yet? |
|
|
Peter Pitzeier
Joined: 24 Apr 2005 Posts: 6 Location: Austria
|
CAN bootloader 18fXXX |
Posted: Tue May 08, 2007 3:28 pm |
|
|
Hello *,
Did anybody manage to port Microchip's AN247 to CCS C? I'd like to download app code over CAN bus. I tried to use canio.asm from AN247 and the PC downloader from AN851 without success. What is CanBoot.exe from AN247\CANBoot_V7 intended to do? Any help is greatly appreciated!
Greetings from Vienna
Peter |
|
|
Benzino
Joined: 15 Feb 2010 Posts: 24
|
|
Posted: Wed Mar 10, 2010 8:13 am |
|
|
Hi,
I am looking to do the same thing. There are many things that I still do not understand after I read AN247 document and many topics on this forum.
If anyone could confirm that it works or/and provide a link to the tutorial would be very helpful.
Much appreciate,
Ben |
|
|
Lotusx
Joined: 26 Mar 2010 Posts: 2
|
|
|
Benzino
Joined: 15 Feb 2010 Posts: 24
|
|
Posted: Fri Mar 26, 2010 8:01 am |
|
|
Hi Lotusx,
thank you very much, I will have a look at it. |
|
|
irkale
Joined: 28 Mar 2010 Posts: 4
|
|
Posted: Sun Mar 28, 2010 2:13 pm |
|
|
That is correct. Lotusx and me are working on CAN support. I will try to
release beta versions next week. Initially there will be PIC18 and dsPIC30
firmwares and support for IXXAT and Vector. _________________ Open source bootloader for PIC16, PIC18, PIC24, and dsPIC |
|
|
Lotusx
Joined: 26 Mar 2010 Posts: 2
|
|
|
Benzino
Joined: 15 Feb 2010 Posts: 24
|
|
Posted: Tue Apr 13, 2010 4:59 am |
|
|
Hi Lotusx,
Thank you very much for the update. I will try it out! |
|
|
|