Skip to main content
dheerajdake9
Associate III
March 27, 2021
Solved

Unable to connect to port using STM32_Programmer_CLI, timeout error occurred

  • March 27, 2021
  • 1 reply
  • 2555 views

Hello ST Community,

This is the issue I'm facing when trying to connect to my board. I'm able to use the LINUX GUI to connect to the device and program it. No issues with it. I want to do the same using a script and the CLI doesn't seem to co-operate. My goal is to connect to the board and program my elf file on it. Nothing fancy. Can you help with this?

./STM32_Programmer_CLI -c port=/dev/ttyACM0
 
 -------------------------------------------------------------------
 
 STM32CubeProgrammer v2.7.0 
 
 -------------------------------------------------------------------
 
 
 
Serial Port /dev/ttyACM0 is successfully opened.
 
Port configuration: parity = even, baudrate = 115200, data-bit = 8,
 
 stop-bit = 1.0, flow-control = off
 
 
 
Timeout error occured while waiting for acknowledgement.
 
 
 
Timeout error occured while waiting for acknowledgement.
 
Error: Activating device: KO. Please, verify the boot mode configuration and check the serial port configuration. Reset your device then try again...

Thanks

Dheeraj

This topic has been closed for replies.
Best answer by Houda GHABRI

Hi @dheerajdake9​ ,

Thanks for this valuable feedback.

Issue is confirmed and I will bring it up internally to be fixed soon.

I will keep you posted with updates.

Hope this helps you.

Houda

1 reply

Houda GHABRI
Houda GHABRIBest answer
ST Employee
March 31, 2021

Hi @dheerajdake9​ ,

Thanks for this valuable feedback.

Issue is confirmed and I will bring it up internally to be fixed soon.

I will keep you posted with updates.

Hope this helps you.

Houda

VTaya.1
Associate III
April 5, 2021

Hi Houda Ghabri.

I am facing similar kind of issue while connecting my nucleo - STM32H732ZG with cube programmer vai UART over UART3 pD9 and PD8 pins.

I have tried giving connect command 0x7F with another STM host controller when STM32H723ZG is in boot mode with specified UART boot configuration, there also I am not receiving valid response from STM controller.

Is this issue from STM bootloader side..?

A sample code to program any STM controller in boot mode vai UART would be great help to me.