INNO-MAKER / usb2can

87 stars 44 forks source link

Can't reprogram STM32F072 through SWD using STLINK-V3 #7

Open Tomblarom opened 2 years ago

Tomblarom commented 2 years ago

I'm fairly new to this and recently got myself the STLINK-V3 (so far it was a mistake..). I want to install this opensource PEAK PCAN firmware, but I can't establish a connection. This firmware is for STM32F042, but the minor difference between these chips is that the STM32F072 has more flash memory:

The STM32F072 series provides 64 to 128 Kbytes of Flash memory in 48-, 64- or 100-pin packages. The STM32F042 series comprises variants with 16 to 32 Kbytes of Flash memory and 20-, 28-, 32- and 48-pin package options. Source

According to the STLINK-V3 manual, it's requires to addionally supply power for the target:

Note: The STLINK-V3SET product does not provide power supply to the target application.

I used the STM32F072 datasheet to figure out the SWD pins. This my wiring:

image

Still, I can't successfully connect using the ST-LINK Utility...

image

Tomblarom commented 2 years ago

Calvin from inno-maker support told me, that they use RPC (level 2) for their USB2CAN STM32 hardware.

image

pawlowskialex commented 2 years ago

But why? This is so bizarre. I'm returning the device to the seller and I invite everybody else to do the same unless Innomaker provide a way to upgrade the device with candleLight_fw (which they modified but haven't attributed the original authors in any way).