cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to connect to port using STM32_Programmer_CLI, timeout error occurred

dheerajdake9
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
Houda GHABRI
ST Employee

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

View solution in original post

3 REPLIES 3
Houda GHABRI
ST Employee

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

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.

Deleted