-
Notifications
You must be signed in to change notification settings - Fork 3k
Add mcuxpresso exporter #4916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add mcuxpresso exporter #4916
Conversation
Awesome work @JojoS62 It looks like your rebase included some commits from master somehow. Could you remove those duplicated commits from this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you copied the contents of the gnuarmeclipse exporter. To prevent duplication of fixes, could you import it and override things instead?
I'll get that for you as another PR real quick. |
@studavekar Can we get the deploy notes installed in CI? Could you let us know when that's Done? |
@JojoS62 Let me know if you would like some help with this. @mmahadevan108 FYI. |
@theotherjimmy I tried
What do have I to do with this patch file or to resolve the problem? |
Signed-off-by: Mahadevan Mahesh <[email protected]>
@theotherjimmy I'm working on deriving from the gae class, but I will have some questions... |
+💯
That used to help generate a list of supported targets. When using a fixed list of supported targets, you should not have to worry about it. The export API now uses the class method |
@JojoS62 I forgot to respond to your prior comment. I'm sorry. I'll get right on that. |
Oh Dang, your history looks pretty duplicated. It looks like you rebased then tried to
If something goes horribly wrong from steps 2-5, you can restore your branch to it's former glory with:
|
BTW, I tried the steps 1-4, and the history looks good. |
Thanks, ok, I'll try to clean up. I made my old mistake again to merge updates in my branch because the zip export failed. So I'd better use two branches, one with only my work on something and another one for merging this and other stuff? |
Correctness over liveness, every time. I'll take a look. |
Don't worry about checking for existence, that's pretty cheap compared to scanning all repos that make up the project and zipping all of that. I bet you would have trouble measuring the difference anyway. |
´ |
Hmm... That works for me. Try the exact hash. |
For example |
It looks like you're still adding commits. You may have to cherry pick them after you are done with the process above. |
febfe6d
to
8ae5eda
Compare
Now the PR contains only the one from 'git checkout sha'. I have added only the one commit to get the working stage clean. |
Looks like a good start. Are you planning on cherry-picking the other commits and pushing them up now? |
I'll try |
- used LPC4088 for testing - split template for LPC54114 into common and Cortex-Mx dependet parts like in old LPCXpresso exporter - changed fixed linker script name to name from options Todo: use flags and configurations from options (like in gae exporter)
creates output for debug, develop and release builds TODO. replaces some fixed flags, develop build not working , linker has no input files
change backslash to forward slash in excluded_folders set
project is read, but still fixes necessary: - archticture is fixed entry, read from config - linker options - linker script file ? - linker settings 'managed build' page causes error - develop still not working
target family, fpu removed 'develop' proffile, it causes errors in import
target specific templates use a common template .cproject.tmpl and extend it by adding target information. This is necessary for the flash and debugging tools
@JojoS62 Below is a patch for platforms (e.g: K64F, LPC54608) that are supported via the SDK being installed in MCUXpresso. Without this change, build will work but failures will be seen during launch. Can this be included. This is the last patch from me. Thanks. |
- fixes invalid char '#' in linker script - added 'mbedclean'
added template for K64F
some targets need an additional SDK.
no problem, you are welcome. I'm happy when this exporter gets more attention and support. |
@JojoS62 What is the status of this patch? |
Compiling the K64F target works, thats what I could test. |
@0xc0170 @JojoS62 Sorry about the delay. as the saying goes: "when you're up to your neck in alligators, it's hard to remember that your initial objective was to drain the swamp" That's been dealing with CI this past week or two. |
@theotherjimmy - pretty please make this a top priority to test and merge when ready. We would like this to be part of the next mbed OS release (in 2 weeks?), so we can use it in internal training in 3 weeks. Thanks a lot @JojoS62 and @mmahadevan108 for all your work on this! |
@JojoS62 @mmahadevan108 @0xc0170 I'm going to run what the CI job would do on my machine, and mark this as ready for merge if that passes. |
Hey guys, I ran this through a local version of CI on my machine, and it looks good. I had to modify the success check and add some missing imports. I'm going to post the results shortly, and we can elide an export build on this one until we have this eclipse variant installed in CI. |
Examples that passed:
No examples failed to build. Tested with:
|
@0xc0170 marking this as ready for merge speculatively. Please check that the default checks have run on this PR, and then it's ready. |
@theotherjimmy This needs exporters tests again (new commits) |
Uh, nope. This exporter is not yet it CI, and I posted the test report above. |
There is no benefit to running an export-build here, as this exporter is not covered. |
Description
Add an exporter for MCUXpresso (NXP), successor of LPCXpresso
Status
IN DEVELOPMENT
needs work
Migrations
If this PR changes any APIs or behaviors, give a short description of what API users should do when this PR is merged.
NO APIs changed
Related PRs
#4819
Todos
Deploy notes
needs installation of MCUXpresso, tested with version 10.0.2
Steps to test or reproduce
create a project file with 'mbed export -i mcuxpresso'
import the created project.zip
** Note: this version always creates a zip file for faster testing. Needs a clean solution for creating a zip file as an option.