cancel
Showing results for 
Search instead for 
Did you mean: 

Iussue with stm Cube Ide 1.16 on flashing/debugging STM32L5xx

ALong.4
Associate II

Hi,

after updating the STMCube IDE from 1.15.1 to 1.16 i cannot flash my board with STM32L5xx MCU (Rev. Z, 512 KB flash memory, bootloader version: 0x92).

Investigating the problem it seems that issue should nbe on newer stm cube programmer(2.17) or the combination of new gdb server and new cube programmer.

Here is the step i made for invetsigating the problem:

  • 1. If you click on Show Command Line in the Debugger configuration it shows you what is invoked, it launches the gdb server + the cube programmer.
    • C:\ST\STM32CubeIDE_1.8.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.win32_2.1.400.202404281720\tools\bin\ST-LINK_gdbserver.exe -p 61234 -l 31 -v -d -s -cp C:\ST\STM32CubeIDE_1.8.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.1.400.202404281720\tools\bin -m 0 -g
  • You have the option of launching them from windows power shell by selecting ‘Connect to remote etc..). In this way stm cube ide will only do the gdb client part, i suppose.
  • ALong4_1-1721126556945.png
  • In the folder shown by the commands (the plugins folder) you can find the gdb server and programmers of previous STMCUBE IDE releases, for example in the image below the stmcube programmers bundled with stm cube ide 1.15.1 and 1.16, are respectively programmer 2.16.0 and programmer 2.17.0ALong4_2-1721126638134.png

     

  • Launching the new gdb server with the old stm cub pregrammer from powershell: it works and flashes, here is the command:
    i C:\STM32Cube_1.8.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.win32_2.1.400.202404281720\tools\bin\ST-LINK_gdbserver. exe -p 61234 -l 31 -v -d -s -cp C:\STM32CubeIDE_1.8.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.1.201.202404072231\tools\bin -m 0 -g

Other notes:

  • Changing swd frequency still does not work.
  • Changing reset behaviour still does not work.

Hope it helps.

Thank you,

Alessandro.

0 REPLIES 0