Re: sending a file over CAN
YAP <[email protected]>
| Newsgroups | gmane.comp.hardware.bus.can |
|---|---|
| Message-ID | <CAEhj8MFV3oEtToVCpu18DazJsA3TRrayNHjGMgRZpZqjX1_eRQ@mail.gmail.com> |
In the VSCP project (http://www.vscp.org) you can find some sample code for a CAN bootloader. No code for TI chips yet but for AVR/PIC and some Arm devices. The current code should be easily ported to Ti. Cheers /Ake On Thu, Oct 4, 2012 at 7:12 PM, Corey, Richard <[email protected]> wrote: > Consider breaking the file into smaller blocks, adding a CRC for each block, > then use a block-retry mechanism. > > > > Otherwise, one packet lost due to an interrupt overrun makes you resend the > entire file. > > > > Rick Corey | > > > > From: [email protected] > [mailto:[email protected]] On Behalf Of Diaz Sonny > Sent: Thursday, October 04, 2012 5:42 AM > To: [email protected] > > > Subject: [CANLIST] sending a file over CAN > > > > Hey all, > > > > I am brand new to CAN. I am tasked with reprogramming several TI chips > (28069, 28035) over CAN. Basically the TI chips have a bootstrap loader. On > bootup they will look for a certain message over can that will tell it to > jump to the reprogramming software. This software will get a new software > image over the CAN bus and save it in flash. > > > > Is there any example code available on how to transfer a file over CAN? I > know how to read a file in C/C++ in binary mode and then send it over > something like Ethernet or serial. Is there a difference when doing > something like this over CAN? Are there any pitfalls I should be aware of? > > > > Thanks, > > SD > > > > ________________________________ > > STRICTLY PERSONAL AND CONFIDENTIAL: This email may contain confidential and > proprietary material for the sole use of the intended recipient. Any review > or distribution by others is strictly prohibited. If you are not the > intended recipient, please contact the sender and delete all copies > > ________________________________ > > Check out the new Crane Aerospace Electronics Newsroom! > Like us on Facebook! > We value your opinion! How may we serve you better? Please click the survey > link to tell us how we are doing: > http://www.craneae.com/surveys/satisfaction.htm > > Your feedback is of the utmost importance to us. Thank you for your time. > > Crane Aerospace & Electronics Confidentiality Statement: > The information contained in this email message may be privileged and is > confidential information intended only for the use of the recipient, or any > employee or agent responsible to deliver it to the intended recipient. Any > unauthorized use, distribution or copying of this information is strictly > prohibited and may be unlawful. If you have received this communication in > error, please notify the sender immediately and destroy the original message > and all attachments from your electronic files. > > ________________________________ -- --- Ake Hedman eurosource, http://www.eurosource.se -- Archives and useful links: http://groups.yahoo.com/group/CANbus Subscribe and unsubscribe at www.vector.com/canlist/ Report any problems to <[email protected]>