Need help: LPC4088 LPCXpresso project setup

09 Jan 2017

Hi all,

We're currently trying to build the "blinkyled with mbed-os" (mbed os 5) for the LPC4088 in LPCxpresso (v8.2.2). We did this via the usual route: exporting the blinkyled example from the online mbed compiler to LPCxpresso. But unfortunately, we're running into several problems. In the

(in the responses below is a list of exactly what we did)

  • First of all, a lot of the features in mbed-os seem to give building errors, mainly with header files appearently being placed in different filepaths than the headers suggest, and in some cases appear to be missing. In the LPC1768 export, we solved this by adding some extra include filepaths and by removing some features, but that seems to me like a "dirty" solution, of problems which we didn't expect. Are these features developmental, or are they supposed to work?
  • Secondly (after removing an #endif that seems to be placed randomly in the code and fixing some includes), the removal/change of features doesn't seem to work in the LPC4088 export, the following error is given: "../mbed-os/events/equeue/equeue_mbed.cpp:83:56: error: 'Semaphore' was not declared in this scope" Together with countless similar errors.

We're now trying to modify the mbed code to solve these issues, but we're kinda hesistant to do so as we do not grasp the full implications of our modifications.

Does anyone know what we are doing wrong? Or does anyone have a working demo for mbed-os for the LPC4088 board that he/she wants to share with us?

Thanks in advance for you help.

09 Jan 2017

The steps we took:

  1. create new online embed project for LPC4088 using blinky led as example
  2. export it without repositories and other files (else the export seems to crash)
  3. import zip into LPCXpresso
  4. comment out line 330 (#endif) in mbed- os/targets/TARGET_NXP/TARGET_LPC408x/device/TOOLCHAIN_GCC_CR/startup_lpc407x8x.cpp (it gives an error, and we can't find the use of this statement)
  5. added in front of line 50 in mbed.h: #include "mbed_config.h"
  6. Removed folder mbed-os/features/storage (although with some reshuffling of includes, we could solve all building errors)
  7. Removed folder mbed-os/features/nanostack/FEATURE_NANOSTACK (although with some reshuffling of includes, we could solve all building errors)
  8. removed folder mbed-os/features/FEATURE_UVISOR
  9. Removed folder mbed-os/features/FEATURE_LWIP
  10. Removed folder mbed-os/features/FEATURE_COMMON_PAL
  11. Removed folder mbed-os/features/FEATURE_BLE
  12. Added in front of line 24 in mbed-os/drivers/RawSerial.h: #include "mbed_config.h"