Skip to content

[exporter] LPCXpresso exporter broken #2448

Closed
@toyowata

Description

@toyowata

Exported project for LPCXpresso broken from mbed library Rev.122 and onward.

Step to reproduce:

  1. Create blinky project for LPC1768 (or other LPC) target
  2. Set mbed library Rev. 122 or 123
  3. Export to LPCXpresso
  4. Open the project by LPCXpresso IDE (I used LPCXpresso v8.1.4)
  5. Build the project file
Building target: mbed_blinky.axf
Invoking: MCU C++ Linker
arm-none-eabi-c++ -nostdlib -L"/Users/toyowata/Documents/LPCXpresso_8.1.4/workspace/mbed_blinky" -L"/Users/toyowata/Documents/LPCXpresso_8.1.4/workspace/mbed_blinky/mbed" -L"/Users/toyowata/Documents/LPCXpresso_8.1.4/workspace/mbed_blinky/mbed/TARGET_LPC1768" -L"/Users/toyowata/Documents/LPCXpresso_8.1.4/workspace/mbed_blinky/mbed/TARGET_LPC1768/TARGET_NXP" -L"/Users/toyowata/Documents/LPCXpresso_8.1.4/workspace/mbed_blinky/mbed/TARGET_LPC1768/TARGET_NXP/TARGET_LPC176X" -L"/Users/toyowata/Documents/LPCXpresso_8.1.4/workspace/mbed_blinky/mbed/TARGET_LPC1768/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768" -Xlinker -Map="mbed_blinky.map" -Xlinker --gc-sections -mcpu=cortex-m3 -mthumb -T "" -o "mbed_blinky.axf"  ./main.o   
/Applications/lpcxpresso_8.1.4_606/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld: read in flex scanner failed
collect2: error: ld returned 1 exit status
make: *** [mbed_blinky.axf] Error 1

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

lpcxpresso_exporter

mbed library Rev.121 and upward

lpcxpresso_exporter_no-error

I also tried to export other target such as LPC1114FN28 anr LPCXpresso11U68, they are same result.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions