CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

CAN-BUS bootloader

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Spinitalia



Joined: 24 Apr 2025
Posts: 3

View user's profile Send private message

CAN-BUS bootloader
PostPosted: Thu Apr 24, 2025 8:16 am     Reply with quote

Hello to everyone
I would like try to use the bootloader for CAN-BUS following the "ex-bootload_can.c" example.
but i don't see any host application for pc to perform the download as the "ccsbootloader.exe" for serial bootloader.
Did anyone had the same problem and found a solution?

thanks
Andrea
Ttelmah



Joined: 11 Mar 2010
Posts: 19795

View user's profile Send private message

PostPosted: Thu Apr 24, 2025 9:49 am     Reply with quote

You'd have to look at what drivers are available for the Can host interface
that you intend to use. Many are devices like ethernet to Can, and some of
these do have basic emulator software to offer host operation. There are
some embedded PC boards that have Can built in, and these again normally
come with supplied software to give host operation.
Many of the simpler USB to Can interfaces are designed to support Can
monitoring, rather than host operation. There are performance issues with
these if doing much as a host.
Look at PCan for a USB interface that works better than most.
Look at CANoe, and CANtool, which are PC packages that can operate
as a host,
Spinitalia



Joined: 24 Apr 2025
Posts: 3

View user's profile Send private message

PostPosted: Sat Apr 26, 2025 1:35 pm     Reply with quote

Maybe I explained myself badly and I apologize for this.
I have my own board with a PIC18F46k80 with its own firmware now tried and tested, as a hardware interface for my PC I use the PCAN-USB from PEAK-System with Windows S.O..
What I would like to do now is to update the firmware via bootloader on CAN-BUS.
I found the example on how to implement the bootloader in my Firmware "ex-bootload_can.c" but I have not understood how to upload it to the board.
For the serial bootloader CCS provides the software "ccsbootloader.exe" but in the case of the CAN-BUS interface there is nothing?
Ttelmah



Joined: 11 Mar 2010
Posts: 19795

View user's profile Send private message

PostPosted: Sun Apr 27, 2025 10:24 am     Reply with quote

The problem is that there is no standard for CAN on the PC.
Hence no example or driver program is possible, You have to work
our for yourself how to send the ,hex file. Talk to Peak. tell them what
you want, They may well be able to tell you how to do this.

I know you can do this with the Python language and the CAN driver,
but not if there is any 'non programmer' way of doing this using the Peak
software.
Spinitalia



Joined: 24 Apr 2025
Posts: 3

View user's profile Send private message

PostPosted: Mon Apr 28, 2025 7:41 am     Reply with quote

OK thank you,
I thought there was an example of working software to do the tests, even at the cost of using a specific usb-can adapter such as the one from PEAK-SYSTEM or buy a specific CCS tool kit.
it also means that the "ex-bootload_can.c" has not been tested and could be wrong.
in these case if the software needs to be developed, the debugging process becomes too expensive, not knowing where the problem could be, in the firmware or in the software
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group