cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CUBEprogrammer connect fails but can program just fine in cubeIDE

HTrip.1
Associate II

Hello,

I cannot use the STM32CUBEprogrammer standalone program, however my programmer works just fine with stm32CUBEIDE V1.7. During programming in STM32cubeide the configuration is visible and it loads STM32cubeprogrammer V2.8 I copied the settings over to the standalone program since those seem to work in STM32CUBEIDE but it still does not work. I updated to the latest firmware and tried out both V2.9 and V2.8 of STM32CUBEprogrammer but neither works.

My settings: (from cubeide same settings used in cubeprogrammer)

ST-LINK SN : 6

ST-LINK FW : V2J39S7

Board    : --

Voltage   : 3.33V

SWD freq  : 4000 KHz

Connect mode: Under Reset

Reset mode : Hardware reset

Device ID  : 0x447

Revision ID : Rev Z

Device name : STM32L07x/L08x/L010

Flash size : 128 KBytes

Device type : MCU

Device CPU : Cortex-M0+

BL Version : 0x__

I am using an ST-link compatible probe not an official one at the moment. The official one however does work. I dont mind using an official programmer but this one is a bit more convenient since it also can supply power.

https://opencircuit.nl/product/st-link-v2-stm8-stm32-programmer

Does anyone know why this problem happens? I dont think there is anything wrong with my connection. But it might be an incompatability between the official and this particular programmer, specifically with the standalone program but not the command line variant used in cubeide.

1 ACCEPTED SOLUTION

Accepted Solutions
HTrip.1
Associate II

I tried ST-link and this works but instead of hardware and connect under reset. I needed to use software system reset and normal mode. For now my problem is solved since ST-link also has the features I needed (memory read) but I still find it weird that cubeprogrammer still fails to work. Whereas both ST-link and cubeIDE do work.

View solution in original post

3 REPLIES 3
HTrip.1
Associate II

I tried ST-link and this works but instead of hardware and connect under reset. I needed to use software system reset and normal mode. For now my problem is solved since ST-link also has the features I needed (memory read) but I still find it weird that cubeprogrammer still fails to work. Whereas both ST-link and cubeIDE do work.

mattias norlander
ST Employee

Hi,

You are free to use any debugger of your choice.

But, we as ST, cannot invest time in providing technical support for debug probes that we did not design nor manufacture..

Kind regards, Mattias

HTrip.1
Associate II

Hi,

That is ok, I thought maybe someone else encountered the same issue as me in the past and perhaps knows a solution.