cancel
Showing results for 
Search instead for 
Did you mean: 

i am not able to debug the example project (Nucleo-g491re)

haarry
Associate II

what am i doing wrong?

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @haarry and welcome to the ST community,

 

 


@haarry wrote:

and i did till step1 part 5. 


At step 5, and instead of importing the project in CubeIDE, locate and open the project from your local disc by double clicking on .project file:

mALLEm_0-1771504812892.png

A window will open:

mALLEm_1-1771504907299.png

Don't browse to any location and don't modify the workspace path. Keep it as is. Then just click [Launch] button.

The project will open normally and it shows the Project Explorer content like shown here after:

mALLEm_2-1771505053929.png

Hope that helps.

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.

View solution in original post

9 REPLIES 9
Andrew Neil
Super User

Welcome to the forum.

Remember that we know nothing about you or what you have done, so you need to give some more details - see:

How to write your question to maximize your chances to find a solution

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.

so i wanted to generate pwm signals for an inverter and borrowed the above mentioned stm from my friend. so i have zero knowledge on stm32. i followed the step by step explanantion on how to start using stm32 https://wiki.st.com/stm32mcu/wiki/STM32StepByStep:Step1_Tools_installation#Download_STM32CubeL4_Firmware_package   . and i did till step1 part 5. but then its asking me to debug . then when i am trying to debug this is the error being shown 

haarry_0-1771433194361.png

 

Alexandr1
Associate

Perhaps you didn't compile the project or the debugger launch configuration is missing.
Did you compile the project?

TDK
Super User

You didn't create/import the project correctly. Use the Example Selector in STM32CubeMX to load the example.

If you feel a post has answered your question, please click "Accept as Solution".

i didnt actually. but its not told do that in the tutorial

 

haarry
Associate II

let me try that thank youu

haarry
Associate II

haarry_0-1771434998677.png

now its showing this error

 

TDK
Super User

I'm not really sure what the problem is.

Does it build okay?

If you build a default project for that chip (not board) in STM32CubeMX, can you debug that?

 

The first time you debug a project, the run configuration dialog should open automatically and you should be able to click "OK" or "Next" with default parameters.

 

Now that you've loaded it using the Example Selector, does it show up correctly in the Project Explorer tab? Should look like this:

TDK_0-1771469244040.png

 

If you feel a post has answered your question, please click "Accept as Solution".

Hello @haarry and welcome to the ST community,

 

 


@haarry wrote:

and i did till step1 part 5. 


At step 5, and instead of importing the project in CubeIDE, locate and open the project from your local disc by double clicking on .project file:

mALLEm_0-1771504812892.png

A window will open:

mALLEm_1-1771504907299.png

Don't browse to any location and don't modify the workspace path. Keep it as is. Then just click [Launch] button.

The project will open normally and it shows the Project Explorer content like shown here after:

mALLEm_2-1771505053929.png

Hope that helps.

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.