Debugging unmanaed project

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

Debugging unmanaed project

1,262 Views
michaelanburaj
Contributor I

Hello, I just got the LPC55s69 board and I was able to run the SDK projects on the current MCUexpresso IDE. Now, moving further, I tried to create a project and launch config for an unmanaged project (elf image built out side using the gcc tool chain included in the IDE). By launching it, I get errors, it Appears that the IDE does not recognize the elf images built outside. How to deal with this? Please point me literature for this.

Labels (1)
0 Kudos
Reply
5 Replies

1,166 Views
michaelanburaj
Contributor I

Additional info: There is also the "New projects" option under the quickstart panel. This seems to do all that I want, but, then unfortunately it does not support a project option for Makefile project (or) unmaganged.

FYI: I am not stuck, as I have the workaround to manually copy/match stuff over to "Makefile project"

Thanks,

-Michael.

0 Kudos
Reply

1,166 Views
ErichStyger
Specialist I

Hi Michael,

if you want to create unmanaged/make file projects, you have to do it manually.

See Tutorial: Makefile Projects with Eclipse | MCU on Eclipse 

As for the debugging parts: the 'blue' debug button creates the launch config setting based on the SDK/MCU used/assigned to the project.

I hope this this helps,

Erich

0 Kudos
Reply

1,166 Views
michaelanburaj
Contributor I

Hello Con Verse, Erich,

Thank you both for responding quickly. Actually, after posting this, by comparing and matching settings from a sample project from SDK, I was able to run my elf image successfully. The problem was not with the image created outside, but rather the project & Linkserver.launch settings. I am able to manually copy the project settings.MCU settings on the  and also after the probe detection stage on the LinkServer.launch I manually match some of the settings.

Although this works, it is a bit ugly. I assume there should be a better or more cleaner approach to this. Like for instance if there is an option to attach the SDK.LPC55S69 (in my case) to the empty project "Makefile project" then I assume the settings into both project setting.MCU, LinkServer.launch->Startup commands and all other relevant settings would then get automatically inherited from the SDK like it happens for the SDK_demo projects. I tried finding this path (customized eclipse has many ways, that it can get a bit confusing at times).

FYI:

1. I have the SDK already installed into MCUexpresso and when I import the SDK.example project, the settings on both project settings and Linkserver.Launch->Startup seem to be populated with what is required automatically. Either these settings come from the attached SDK or is carried within these projects. Either case, if I can do a step that will allow inheriting all the correct settings automatically by pointing to the SDK for the Makefile project (which I have not figured yet) or my inheriting the settings from a SDK.demo project, that will be lot cleaner than me manually copying them over.

2. Even after manually choosing the right SDK, MCU under project setting.MCU (different compared to Attaching SDK with the board picture when importing SDK.demo project), the LinkServer.launch->Startup commands come out differently, then I have to manually edit them (copy-paste) these commands from SDK.demo project for it to connect and run the image without errors.

Thanks,

-Michael.

0 Kudos
Reply

1,166 Views
converse
Senior Contributor V

There is nothing special about an image built 'inside' or 'outside' of the IDE - provided they are using the same compiler/linker etc and have created a valid image, then it should work.

Probably best if you report the exact error messages you see, and describe how you built your image (perhaps provide the .map files?)

0 Kudos
Reply

1,166 Views
ErichStyger
Specialist I

Could you post your image or at least the error messages?

0 Kudos
Reply