|
Re: How do I add a new "toolchain" to Eclipse? [message #1834953 is a reply to message #1834702] |
Sun, 22 November 2020 00:00 |
Dave Nadler Messages: 14 Registered: December 2015 |
Junior Member |
|
|
Here's the solution:
1) Install your favorite GCC. I used a 32-bit MinGW from http://winlibs.com/
2) In MCUXpresso, create a new C/C++ project, either managed build or un-managed. On next panel, give a name, uncheck "show project types and toolchains only of they are supported on the platform", then select toolchain MinGW.
3) After the project is created, set debug+release properties:
• C/C++ Build, Environment, MINGW_HOME environment variable to c:\MinGW32.
• Launching gdb inside Eclipse will die if there are DLLs required and not on the path.
Either modify the path in the local Eclipse shell (how?), or use linker option -static.
Otherwise on starting gdb Eclipse gives the error:
Failed to execute MI command: -run
Error message from debugger back end:
During startup program exited with code 0xc0000135.
A project created this way can be built and debugged within MCUXpresso.
In my case I also added GUI framework wxWidgets to help with our test frameworks.
Enjoy,
Best Regards, Dave
|
|
|
Powered by
FUDForum. Page generated in 0.03684 seconds