[Exporters] Add support for Eclipse Export #2833
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds support for Eclipse exporting. The exported project supports building with polymorphic makefiles (IAR, GCC, and ARMc5) and debugging with pyocd. The export comes with .cproject and .project eclipse files, a py_ocd run/debug launch file, and a pyocd eclipse plugin quick install p2f file.
Status
READY
Related PRs
#2577
Steps to test or reproduce
To export and build:
mbed export -m whatever -i eclipse_gcc_arm
mbed export -m whatever -i eclipse_armc5
mbed export -m whatever -i eclipse_iar
To Run (cannot run with armc5 built binary):
A. File>Import>Install>Install Software Items From File>Next
B. Browse>Root/of/your/project/eclipse-extras/necessary_software.p2f
A. This assumes that you have pyocd installed and pyocd-gdbserver.exe is in this folder as a result
To Debug:
Follow all Run steps but substitute 'Debug Configurations' for 'Run Configurations' in step 3. The pyocd_path variable value will persist if you have followed these steps for running. If you wish to debug with an armc5 generated binary, you will need to flash the board yourself, then you can debug. The debugger will not try to load the executable before debugging if it is an armc5 project.
@sg- @theotherjimmy @screamerbg