infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 4 of 4

Thread: Bootloader from CAN BUS to flash

  1. #1
    Beginner Beginner ipek is on a distinguished road
    Join Date
    May 2019
    Location
    Turkey, Ankara
    Posts
    4
    Points
    55

    Bootloader from CAN BUS to flash

    I am new in this field and I have to write an application with a short deadline.
    My application suppose to wait for a message from CAN bus;
    if message received before timeout, my application shall get the program as hex (piece by piece of course) (with mdt maybe? ) and write it to flash.
    If no message is received and timeout occurred, my application shall run the program that is loaded to flash previously.
    I considered using CAN BSL but(correct me if I am wrong) it loads program to SRAM and runs from there too. Since I need my program to be flashed, CAN BSL is useless for me..
    I need a suggestions maybe tips;
    Can I configure CAN BSL mode ? If yes maybe I can modify it to load from to flash instead of SRAM ?
    Or in CAN BSL mode, after data is loaded to SRAM maybe I can move it to flash ? But I am not sure how to do that..
    Or maybe I can write all bootlaoder myself, a bootloader that listens can bus(I can do that) and loads program to flash (don't know how to).. And in that case won't use can bsl, which bsl mode shall I use?
    You see I am a bit confused.. Please help

    I use XMC1400 boot kit, I have latest versions of memtool, dave and segger j-link

  2. #2

    Infineon Employee
    Infineon Employee
    jferreira will become famous soon enough
    Join Date
    Oct 2012
    Posts
    556
    Hi,

    I would recommend you openBLT, https://www.feaser.com/openblt/doku.php?id=homepage

    Regards,
    Jesus
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  3. #3
    Beginner Beginner voorburg is on a distinguished road
    Join Date
    Oct 2016
    Location
    Germany
    Posts
    6
    Points
    69.375
    OpenBLT bootloader developer here.

    The OpenBLT bootloader has all the functionality you mentioned already build-in. After a reset the bootloader always runs first for a short (and configurable) amount of time. If a specific CAN message (XCP Connect Command)
    is received within this amount of time, the firmware update continues and the newly programmed firmware is automatically started afterwards. If the CAN message is not received, the currently programmed firmware is started.

    The download archive contains demo programs for the XMC1400 Boot Kit and the XMC4700 Relax Kit. Both are preconfigured for firmware updates via CAN, so you could use these demo programs as a starting point. You
    can download OpenBLT from here. Additional information can be found in the FAQ.

    With kind regards,

    Frank

  4. #4
    Beginner Beginner ipek is on a distinguished road
    Join Date
    May 2019
    Location
    Turkey, Ankara
    Posts
    4
    Points
    55
    Hello Frank,

    I'd like to use OpenBLT but I have very limited time. In your website where you tell about CAN DEMO you said, "Select the CAN communication device that your PC uses to connect to the CAN bus."I don't have
    CAN device to connect to the PC. I have only another XMC1400 boot kit. I can send the firmware with that only. If I will use OpenBLT I shall be interpreting and sending binary file of my firmware according to your protocol.
    I don't know how do that..The nearest article in your FAQ is this : https://www.feaser.com/en/blog/?p=193 but host is a PC in here too.. Can you provide support about this problem ? Or shall I purchase commercial license ? But again I remind, I have 5 days left ....

+ Reply to Thread

Tags for this Thread

Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.