-
Notifications
You must be signed in to change notification settings - Fork 3k
[exporter] LPCXpresso exporter broken #2448
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
Comments
Can you test the latest master here with |
It wrongly uses the TOOLCHAIN_ARM rather than TOOLCHAIN_GCC_CR Other issueDuring this test, I got multiple definition errors in the build, but this fixes the issue. #2498 I still got errors by automated test by singletest.py below:
It failed all non-RTOS test cases. This is because the software_init_hook is always enabled even if non-RTOS build here. |
ARM Internal Ref: IOTMORF-439 |
I have created other ticket for automated test fail issue here : #2581 |
@toyowata Is this resolved with the latest exporter updates? |
@sg- Actually, it is getting worse. I got an error dialog below when I exported to the LPCXpresso. Step to reproduce
|
reproduced. I have the error message at hand. Could you try exporting from the command line tools? that is:
then import the project into lpcxpresso This would help, as the error you are seeing is only related to how the online export system works. If that's the only issue, then exporting from the command line should work. |
The mbed export command generates LPCXpresso project without error. However, I got following error when I build the project by LPCXpresso IDE.
The project windows doesn't seem to have source code and libraries. |
I've tried also the mbed-cli with the blinky example. The export stops after scanning FEATURE_STORAGE and the exported project file is not generated.
I can compile the the project with GCC_ARM. With GCC_CR, the .bin is created also but there is an error when the size should be prompted: |
Update: I was looking for an archive file in .build, but a .project and .cproject for the eclipse ide is built in the root of my blinky-example project. These files look ok, but when I import from the root of my project, the import pulls in all the unwanted stuff like the complete mbed-os dir with all tools etc. |
@toyowata what version of mbed-os are you using? @JojoS62 Comment 1: That error is likely related to memap.py, could you open a new issue for that link error so that we can track it separately? @JojoS62 Comment 2: The .project and .cproject file in the root is expected; zip files are only created for mbed 2 tests. The source of mbed-os (*.c, *.cpp) should be pulled in to the project, but the tools should not be in the project workspace. Further, I can't seem to download the zip file you posted. |
@theotherjimmy I used mbed-os-5.1.4 for this test and rev.126 for this. I also found some reports from community questions below: |
I have this issue too, started new mbed project, choose blinky and export from online compiler. Import into lpcxpresso v8.2.2 [Build 650] and get the same -t error. |
@Carl-M I'm sorry, but I don't know what you are talking about when you refer to the "-t error" |
Sorry this is the error |
You don't have a linker script. It should be between the |
What target did you try? |
Mbed LPC1768 |
Do you mean 1768? |
The -t is a linker option that is wrong. I experienced also that options are defined double, once in project settings and also in additional misc settings.
|
@JojoS62 @Carl-M I appreciate you enthusiasm for this exporter. The exporter in question is called codered in the tools (file here) In the current master, once issue #2892 Is fixed, you may use the eclipse_gcc_arm or similar exporter to have an equivalent export. That is the way we have planned forward. OTOH, if you would like to dive into the tools code yourself, I can help you with that. |
Thanks, eclipse exporter is what I appreciate also. Lpcxpresso uses the GCC toolchain, do no need for a different handling. I see only differences in the linker script that is generated by lpcxpresso. Using the gcc_arm scripts work, but switching to lpcxpresso managed scripts makes trouble.
|
Perfect! Is there any special handling that LPCXpresso needs? (Special flashing tools, Code analysis tools, etc?) If not, I can change LPCXpresso to be an alias to EclipseGccArm |
In order to allow code to compile, a quick fix is ->Project->Properties->Settings->Tool Settings->MCU C++ linker->Managed Linker Script This worked for me |
@JojoS62 It's been a few weeks! If you could get back to me on this:
Then I can get on making the LPCXpresso exporter more robust. |
thanks for asking. I'm still struggling with the exporters in general. I use the mbed-os master branch and I execute the following:
That gives me an output in mbed-os\export where still a lot is missing and the dir structure is messed up, even a mbed.h. I have attached the complete folder 'MBED_BLINKY_lpcxpresso_LPC1768 ' For the lpcxpresso most things worked before the directory structure change. The other issue was double output of flags and missing/wrong settings in the .cproject file. I had opened an issue for that but accidently closed it. I can reopen it and I will post my fix for the exporter there. |
That's the intended directory structure.
Normal projects (not tests) should be exported through mbed-cli (
Please do! |
I will try this soon. I followed the instructions in docs/building.md, but that is outdated: URL to mbed, no more setup.py, instructions for export... |
@toyowata This exporter has not received the love that it should have. I don't have time right now to fix the issues with the LPCXpresso exporter, but if you do I have some guidance. I would start by trying the gnuarmeclipse exporter in place of lpcxpresso. If that is satisfactory, then you can just change the |
I suggest to close this issue, LPCXpresso has been superseeded by MCUXpresso and projects can be exported to MCUX. |
Exported project for LPCXpresso broken from mbed library Rev.122 and onward.
Step to reproduce:
When I use Rev. 121 mbed library, it worked fine (I could build a project by LPCXpresso). The exporter doesn't seem to generate pre-build object files for target. See below:
mbed library Rev.122 and onward
mbed library Rev.121 and upward
I also tried to export other target such as LPC1114FN28 anr LPCXpresso11U68, they are same result.
The text was updated successfully, but these errors were encountered: