MCUExpresso 11.1 newly loaded, can't run Hello World demo

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCUExpresso 11.1 newly loaded, can't run Hello World demo

Jump to solution
1,787 Views
GaryOlmstead
Senior Contributor I

I've just installed MCUExpresso 11.1, loaded an SDK for the K64 Tower, and created a project to run the supplied Hello World program.  No (intentional) changes of any kind.  I should say this is on a Windows 10 machine.  I have the Tower plugged into a USB port.  All files were installed in their default locations.

It compiles OK, but when I run it, I get a dialog box that says:

"Launching 'twrk64f120m_hello_world_gary.axf' has encountered a problem. 

Could not determine GDB version using command: gdb--version"

When I click on Details, it adds

"Could not determine GDB version using command gdb--version

Could not find platform independent libraries <exec_prefix>

Consider setting SPYTHONHOME  to <prefix>[<exec_prefix>]

ImportError: No module named site."

So, what does that mean, and how do I resolve this?

Best Regards

Gary Olmstead

Ventura DA

0 Kudos
1 Solution
1,669 Views
soledad
NXP Employee
NXP Employee

I believe your issue is on point 7, is that correct? 

Could you please send me a screenshot of the window that is displayed when you select debug?

Regards

Soledad

View solution in original post

0 Kudos
12 Replies
1,669 Views
GaryOlmstead
Senior Contributor I

Well, I would if I could find it.  The help feature says it's available on the Project Explorer view, but nothing says "Project Explorer".  Obviously, I haven't made any changes, it's still however it comes.

0 Kudos
1,669 Views
soledad
NXP Employee
NXP Employee

Hi,

I want to check the debug configurations, could you please share a screenshot similar to the following?

Regards

Soledad

pastedImage_1.png

0 Kudos
1,669 Views
GaryOlmstead
Senior Contributor I

Soledad --

What version of the program are you running?  I don't see "Debug Configuration" on any menu.  I see "Project > Properties" which is grayed out.  Nothing else.

0 Kudos
1,669 Views
GaryOlmstead
Senior Contributor I

pastedImage_1.pngThis is what I could find.  The menu selection only appears when there's a compiled file to debug.  It doesn't look anything like yours, aside from the bug in the upper right.

0 Kudos
1,669 Views
GaryOlmstead
Senior Contributor I

Soledad --

I've figured out that the screens and menus reconfigure themselves, probably not at random, but according to some criteria that are not obvious and not documented in the User Guide.

Here's a screen that's closer to what you want, or at least has several of the same tabs, but is completely rearranged from yours.

pastedImage_1.png

0 Kudos
1,669 Views
soledad
NXP Employee
NXP Employee

Hello,

Please follow the steps to create a new project:

1. Click on New project:

pastedImage_1.png

2. Select the device

pastedImage_2.png

3. Select the name, drivers and other options and click Finish

pastedImage_3.png

4. At this point, you create a new project and you can see it in the workspace

pastedImage_4.png

5. Using the Quickstart panel Build the project:

pastedImage_5.png

6. Using the Quickstart panel Debug the project:

pastedImage_6.png

7. A new window will be displayed, click OK

pastedImage_7.png

8. At this point, you will be able to debug your project.

pastedImage_8.png

Regards

Soledad

0 Kudos
1,670 Views
soledad
NXP Employee
NXP Employee

I believe your issue is on point 7, is that correct? 

Could you please send me a screenshot of the window that is displayed when you select debug?

Regards

Soledad

0 Kudos
1,669 Views
GaryOlmstead
Senior Contributor I

Hi Soledad --

Well, it worked perfectly.  My windows look exactly like your windows, and the code runs just fine.  As far as I can tell, the only difference is that for this exercise, I closed everything else, and only this code was present.

I had been using the menus, which should work, except that the menus are context sensitive, and important choices appear and disappear depending on where you clicked last.  Now that I know how to make the Quickstart window appear when I need it, I'll use that from now on.

Thank you very much for your help, and even more for your patience.

Gary Olmstead

Ventura CA

0 Kudos
1,669 Views
GaryOlmstead
Senior Contributor I

Soledad --

I looked at both of the links you suggested.  They are both from several years ago, and the steps they suggest don't exist anymore.  Besides that, the first one says that if you have a problem with GDB, just kill it, but doesn't say what to do after that.

0 Kudos
1,669 Views
soledad
NXP Employee
NXP Employee

Hi,

Could you please share your launch configuration settings?

Regards

Soledad

0 Kudos
1,669 Views
GaryOlmstead
Senior Contributor I

So, MCUExpresso doesn't know how to install itself?  How is that an improvement over CodeWarrior?

0 Kudos
1,669 Views
soledad
NXP Employee
NXP Employee

Hi,

The message indicates that it cannot find or launch the program. Please check that your firewall is not blocking the gdb executables.

In addition please check the following articles:

Troubleshooting Tips: Failed Debugging with GDB | MCU on Eclipse 

Emulating Eclipse ‘Run’ with ‘Debug’ Configuration | MCU on Eclipse 

I hope this helps, have a nice day!

Regards

Soledad

0 Kudos