EDIT: Post updated with screenshots.
As detailed below, I've made attempts via several different methods to export and build the "Demo Application" for the Embedded Artists LPC4088 Experiment Base Board offline, all without success. Why is it not working, and how can I get it working?
Direct link to the application: https://os.mbed.com/users/embeddedartists/code/lpc4088_ebb_ptp/
It is linked from here in the "Demo Application" section: https://os.mbed.com/users/embeddedartists/notebook/lpc4088-experiment-base-board---projects/
It looks like it's using an old version of mbed, and there are some broken library references, among other things... But I don't know how to fix it.
My various export and build attempts
For later reference, note the available and greyed-out export options from the mbed online "compiler".
1. mbed online compilation fails with "update libraries" option.
Details
From
https://os.mbed.com/users/embeddedartists/code/lpc4088_ebb_ptp/
"Import into Compiler"
- Import As: Program
- Update all libraries to the latest revision - CHECKED
Import warnings:
Compilation fails.
2. mbed online compilation succeeds, but cannot build exported project.
(This is the basis for #s 3 - 5, below.)
Details
From
https://os.mbed.com/users/embeddedartists/code/lpc4088_ebb_ptp/
"Import into Compiler"
- Import As: Program
- Update all libraries to the latest revision - UNchecked
Import warning:
Compilation succeeds (with warnings).
3. Export from online "compiler" to Keil uVision5 fails.
From
https://os.mbed.com/compiler/#nav:/lpc4088_ebb_ptp;
Details
Right click project, choose Export...
- Export Target: EA LPC4088 QuickStart Board (the only option)
- Export Toolchain: Keil uVision5
- Export All Files: [checked/unchecked does not affect result]
Result: ERROR - "An error occurred during export. Please contact support."
4. Export from mbed online "compiler" to LPCXpresso succeeds, but cannot build due to linker error.
Some source edits were required to resolve compiler errors, and
the linker option "No startup or default libs (-nostdlib)" was
DE-selected to get it that far.
I can build and run if I rem out `mcifs.runTest()` in main.cpp...
but I need to use the SDCard, so this is not a viable resolution for me.
Details
From
https://os.mbed.com/compiler/#nav:/lpc4088_ebb_ptp;
Right click project, choose Export...
- Export Target: EA LPC4088 QuickStart Board (the only option)
- Export Toolchain: LPCXpresso
- Export All Files: UNchecked
Export succeeds.
- Extract downloaded zip file. Put folder in desired location on filesystem for development.
Using MCUXpresso IDE (v10.0.2 [Build 411][2017-07-11])
(I also tried LPCXpresso v8.2.2_650 - same result.)
- Import project(s) from file system...
Uncheck "Copy projects into workspace"; check project.
Build errors (note many warnings, too)
Edit TestAcc.cpp to resolve first two errors (int -> int32_t).
Build project again - new errors
Edit WM8731.cpp to resolve new errors (add curly braces around body of path_analog case).
Build project again - linker errors remain
Project properties - uncheck the "No startup or default libs (-nostdlib)" option.
Build project again - one new linker error remains
10:42:31 **** Incremental Build of configuration Debug for project lpc4088_ebb_ptp ****
make -r -j4 all
Building target: lpc4088_ebb_ptp.axf
Invoking: MCU C++ Linker
arm-none-eabi-c++ -L"C:\dev\lpc4088_ebb_ptp" -L"C:\dev\lpc4088_ebb_ptp\EALib" -L"C:\dev\lpc4088_ebb_ptp\EALib\FATFileSystem" -L"C:\dev\lpc4088_ebb_ptp\EALib\FATFileSystem\ChaN" -L"C:\dev\lpc4088_ebb_ptp\I2S" -L"C:\dev\lpc4088_ebb_ptp\LM75B" -L"C:\dev\lpc4088_ebb_ptp\SDFileSystem" -L"C:\dev\lpc4088_ebb_ptp\mbed" -L"C:\dev\lpc4088_ebb_ptp\mbed\TARGET_LPC4088" -L"C:\dev\lpc4088_ebb_ptp\mbed\TARGET_LPC4088\TARGET_NXP" -L"C:\dev\lpc4088_ebb_ptp\mbed\TARGET_LPC4088\TARGET_NXP\TARGET_LPC408X" -L"C:\dev\lpc4088_ebb_ptp\mbed\TARGET_LPC4088\TOOLCHAIN_GCC_ARM" -L"C:\dev\lpc4088_ebb_ptp" -Xlinker -Map="lpc4088_ebb_ptp.map" -Xlinker --gc-sections -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -T "C:\dev\lpc4088_ebb_ptp\mbed\TARGET_LPC4088\TOOLCHAIN_GCC_ARM\LPC4088.ld" -o "lpc4088_ebb_ptp.axf" ./SDFileSystem/SDFileSystem.o ./LM75B/LM75B.o ./I2S/I2S.o ./EALib/FATFileSystem/ChaN/ccsbcs.o ./EALib/FATFileSystem/ChaN/diskio.o ./EALib/FATFileSystem/ChaN/ff.o ./EALib/FATFileSystem/FATDirHandle.o ./EALib/FATFileSystem/FATFileHandle.o ./EALib/FATFileSystem/FATFileSystem.o ./EALib/AR1021.o ./EALib/Adafruit_GFX.o ./EALib/EaLcdBoard.o ./EALib/GFXFb.o ./EALib/LcdController.o ./EALib/MCIFileSystem.o ./EALib/MMA7455.o ./EALib/QSPIFileSystem.o ./EALib/SPIFI.o ./EALib/TSC2046.o ./EALib/XBee.o ./EALib/glcdfont.o ./EALib/gpdma.o ./EALib/sdram.o ./AR1021I2C.o ./EaLcdBoardGPIO.o ./Graphics.o ./TestAcc.o ./TestAudio.o ./TestDisplay.o ./TestFileSystemMCI.o ./TestFileSystemSPI.o ./TestJoystick.o ./TestRGBLed.o ./TestShiftreg.o ./TestTemperature.o ./TestTrimpot.o ./WM8731.o ./main.o C:/dev/lpc4088_ebb_ptp/mbed/TARGET_LPC4088/TOOLCHAIN_GCC_ARM/system_LPC407x_8x_177x_8x.o C:/dev/lpc4088_ebb_ptp/mbed/TARGET_LPC4088/TOOLCHAIN_GCC_ARM/board.o C:/dev/lpc4088_ebb_ptp/mbed/TARGET_LPC4088/TOOLCHAIN_GCC_ARM/cmsis_nvic.o C:/dev/lpc4088_ebb_ptp/mbed/TARGET_LPC4088/TOOLCHAIN_GCC_ARM/retarget.o C:/dev/lpc4088_ebb_ptp/mbed/TARGET_LPC4088/TOOLCHAIN_GCC_ARM/startup_LPC408x.o -lmbed
c:/nxp/mcuxpressoide_10.0.2_411/ide/tools/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7e-m/softfp\libc.a(lib_a-abort.o): In function `abort':
abort.c:(.text.abort+0xa): undefined reference to `_exit'
c:/nxp/mcuxpressoide_10.0.2_411/ide/tools/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7e-m/softfp\libc.a(lib_a-signalr.o): In function `_kill_r':
signalr.c:(.text._kill_r+0x10): undefined reference to `_kill'
c:/nxp/mcuxpressoide_10.0.2_411/ide/tools/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7e-m/softfp\libc.a(lib_a-signalr.o): In function `_getpid_r':
signalr.c:(.text._getpid_r+0x0): undefined reference to `_getpid'
collect2.exe: error: ld returned 1 exit status
make: *** [lpc4088_ebb_ptp.axf] Error 1
10:42:33 Build Finished (took 1s.812ms)
5. From the online mbed compiler, attempting again to export to LPCXpresso,
but
selecting the "Export All Files" in the export dialog (shown UNchecked in screenshot
04b_mbed_online_compiler_export_to_LPCXpresso.png) increases the size of the
downloaded zip file, but does not change the contents, other than the build timestamp
in the .cproject file.
So the result is the same as #4.
6. "Export to desktop IDE" (LPCXpresso) directly from project page
Excludes
dependencies from downloaded zip file. (Excludes EALib, I2S, LM75B, and
SDFileSystem. Includes mbed.)
Zip file contents otherwise are basically the same as #4.
From
https://os.mbed.com/users/embeddedartists/code/lpc4088_ebb_ptp/
Click "Export to desktop IDE".
Choose toolchain "LPCXpresso (DEPRECATED)".
7. "Export to desktop IDE" (uvision5) directly from project page fails
"Page error" / "Sorry, this page is currently unavailable."
8. I am unable to export to an offline IDE using mbed-cli.
I describe this in more detail here:
https://os.mbed.com/questions/79232/Cannot-export-to-IDE-from-mbed-cli/
EDIT: Post updated with screenshots.
As detailed below, I've made attempts via several different methods to export and build the "Demo Application" for the Embedded Artists LPC4088 Experiment Base Board offline, all without success. Why is it not working, and how can I get it working?
Direct link to the application: https://os.mbed.com/users/embeddedartists/code/lpc4088_ebb_ptp/
It is linked from here in the "Demo Application" section: https://os.mbed.com/users/embeddedartists/notebook/lpc4088-experiment-base-board---projects/
It looks like it's using an old version of mbed, and there are some broken library references, among other things... But I don't know how to fix it.
My various export and build attempts
For later reference, note the available and greyed-out export options from the mbed online "compiler".
1. mbed online compilation fails with "update libraries" option.
Details
From https://os.mbed.com/users/embeddedartists/code/lpc4088_ebb_ptp/
"Import into Compiler"
Import warnings:
Compilation fails.
2. mbed online compilation succeeds, but cannot build exported project.
(This is the basis for #s 3 - 5, below.)
Details
From https://os.mbed.com/users/embeddedartists/code/lpc4088_ebb_ptp/
"Import into Compiler"
Import warning:
Compilation succeeds (with warnings).
3. Export from online "compiler" to Keil uVision5 fails.
From https://os.mbed.com/compiler/#nav:/lpc4088_ebb_ptp;
Details
Right click project, choose Export...
Result: ERROR - "An error occurred during export. Please contact support."
4. Export from mbed online "compiler" to LPCXpresso succeeds, but cannot build due to linker error.
Some source edits were required to resolve compiler errors, and the linker option "No startup or default libs (-nostdlib)" was DE-selected to get it that far. I can build and run if I rem out `mcifs.runTest()` in main.cpp... but I need to use the SDCard, so this is not a viable resolution for me.
Details
From https://os.mbed.com/compiler/#nav:/lpc4088_ebb_ptp;
Right click project, choose Export...
Export succeeds.
Using MCUXpresso IDE (v10.0.2 [Build 411][2017-07-11]) (I also tried LPCXpresso v8.2.2_650 - same result.)
Uncheck "Copy projects into workspace"; check project.
Build errors (note many warnings, too)
Edit TestAcc.cpp to resolve first two errors (int -> int32_t). Build project again - new errors
Edit WM8731.cpp to resolve new errors (add curly braces around body of path_analog case). Build project again - linker errors remain
Project properties - uncheck the "No startup or default libs (-nostdlib)" option.
Build project again - one new linker error remains
5. From the online mbed compiler, attempting again to export to LPCXpresso,
but selecting the "Export All Files" in the export dialog (shown UNchecked in screenshot 04b_mbed_online_compiler_export_to_LPCXpresso.png) increases the size of the downloaded zip file, but does not change the contents, other than the build timestamp in the .cproject file. So the result is the same as #4.
6. "Export to desktop IDE" (LPCXpresso) directly from project page
Excludes dependencies from downloaded zip file. (Excludes EALib, I2S, LM75B, and SDFileSystem. Includes mbed.) Zip file contents otherwise are basically the same as #4.
From https://os.mbed.com/users/embeddedartists/code/lpc4088_ebb_ptp/
Click "Export to desktop IDE". Choose toolchain "LPCXpresso (DEPRECATED)".
7. "Export to desktop IDE" (uvision5) directly from project page fails
"Page error" / "Sorry, this page is currently unavailable."
8. I am unable to export to an offline IDE using mbed-cli.
I describe this in more detail here: https://os.mbed.com/questions/79232/Cannot-export-to-IDE-from-mbed-cli/