Skip to main content
Associate
December 9, 2024
Question

i install stm32cube ide in my system but can't generate code

  • December 9, 2024
  • 3 replies
  • 1368 views

i install stm32cube ide in my system and i installed but generate code does not show any error

3 replies

Andrew Neil
Super User
December 9, 2024

@KrishSprio_2024 wrote:

 generate code does not show any error


That's usually a good thing?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate
December 9, 2024

but i can't generate code what i do

Andrew Neil
Super User
December 9, 2024

You didn't mention that!

So give us a step-by-step description of precisely what you do when you try to generate code.

Also tell what platform you're on, and what versions you're using, and what target you're trying to generate for, etc:

https://community.st.com/t5/community-guidelines/tkb-p/community-guidelines

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
mƎALLEm
Technical Moderator
December 9, 2024

Hello,

Describe what you did step by step. This important to know where you failed. If possible to share your project folder.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
Associate
December 10, 2024

Open On-Chip Debugger 0.12.0+dev-00600-g090b431b1 (2024-09-13-19:14) [https://github.com/STMicroelectronics/OpenOCD]

Licensed under GNU GPL v2

For bug reports, read

http://openocd.org/doc/doxygen/bugs.html

Info : Listening on port 6666 for tcl connections

Info : Listening on port 4444 for telnet connections

Info : STLINK V2J45S7 (API v2) VID:PID 0483:3748

Info : Target voltage: 2.929973

Error: init mode failed (unable to connect to the target)


its shows that target device connect but i properly connected

its final give this error for dbuger

Error in final launch sequence:

 

Failed to execute MI command:

target extended-remote localhost:3333

 

Error message from debugger back end:

localhost:3333: Connection timed out.

Failed to execute MI command:

target extended-remote localhost:3333

 

Error message from debugger back end:

localhost:3333: Connection timed out.

localhost:3333: Connection timed out.



Andrew Neil
Super User
December 10, 2024

What does that have to do with generating code?

You need to create a project first - before you can debug it!

See this "MOOC" (online video course) - STM32CubeIDE basics:

https://www.youtube.com/playlist?list=PLnMKNibPkDnFCosVVv98U5dCulE6T3Iy8

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.