Skip to main content
CSper
Associate
September 2, 2019
Question

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

  • September 2, 2019
  • 5 replies
  • 1625 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

After Forever
Senior III
September 2, 2019

STM32CubeProg

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

CSper
CSperAuthor
Associate
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.

DPlav.1
Visitor II
June 22, 2021

Bump.

Any advice?

Tesla DeLorean
Guru
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.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
DPlav.1
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.