cancel
Showing results for 
Search instead for 
Did you mean: 

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

CSper
Associate

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.

5 REPLIES 5

STM32CubeProg

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

CSper
Associate

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
Associate

Bump.

Any advice?

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
Up vote any posts that you find helpful, it shows what's working..
DPlav.1
Associate

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.