Skip to main content
Visitor II
September 2, 2019
Question

Is there a tool / API to flash an STM32 MCU using a CAN Interface?

  • September 2, 2019
  • 5 replies
  • 1591 views

I'm looking for a way to flash an STM32 MCU via the integrated CAN bootloader by using a CAN Interface like the PCAN-USB. I am aware of the AN3154 documentation but i'm probably not the first one to try that, so i'm hoping that there is e.g. an API availible that handles the communication to the MCU, that i could adapt to the PCAN interface.

    This topic has been closed for replies.

    5 replies

    Visitor II
    September 2, 2019

    STM32CubeProg

    See the "Introduction" and "STM32CubeProgrammer C++ API" chapters of UM2237 user manual.

    CSperAuthor
    Visitor II
    September 2, 2019

    Thanks a lot for your quick answer! This is almost what i'm looking for, but - correct me if i'm worng - i'm still tied to the st-link V3 when using the CubeProgrammer API. My intent is to use a 'thid party' interface, in my case the PCAN-USB.

    Visitor II
    June 22, 2021

    Bump.

    Any advice?

    Graduate II
    June 22, 2021

    Seems odd that people selling CAN devices aren't domain experts in their own corner of the universe..

    The ST-LINK/V3-SET and STM32 Cube Programmer implement CAN based updates.

    Figure you'll have to code your own for given USB-CAN dongles of your own choosing, presumably they have API/DLL and related communities, and code examples.

    Visitor II
    June 23, 2021

    English in not my first language, so I can't grab your irony, if any.

    Thanks for the answer, anyway. I was suspecting this and you confirmed.