Cannot compile, hang on step "generating LD script"

Trying to build my first proejct using mbed -os, but while compiling a simple blink project for the first time the compiler stops at a point where it is generating LD script and it is stuck there forever. Any ideas?

transcript of terminal output

Compiling .pio\build\hexiwear\FrameworkMbeddrivers\usb\source\USBHID.o
Compiling .pio\build\hexiwear\FrameworkMbeddrivers\usb\source\USBKeyboard.o
Compiling .pio\build\hexiwear\FrameworkMbeddrivers\usb\source\USBMIDI.o
Compiling .pio\build\hexiwear\FrameworkMbeddrivers\usb\source\USBMSD.o
Compiling .pio\build\hexiwear\FrameworkMbeddrivers\usb\source\USBMouse.o
Compiling .pio\build\hexiwear\FrameworkMbeddrivers\usb\source\USBMouseKeyboard.o
Compiling .pio\build\hexiwear\FrameworkMbeddrivers\usb\source\USBSerial.o
Compiling .pio\build\hexiwear\FrameworkMbedrtos\source\ConditionVariable.o
Compiling .pio\build\hexiwear\FrameworkMbedrtos\source\EventFlags.o
Compiling .pio\build\hexiwear\FrameworkMbedrtos\source\Kernel.o
Compiling .pio\build\hexiwear\FrameworkMbedrtos\source\Mutex.o
Compiling .pio\build\hexiwear\FrameworkMbedrtos\source\Semaphore.o
Compiling .pio\build\hexiwear\FrameworkMbedrtos\source\ThisThread.o
Compiling .pio\build\hexiwear\FrameworkMbedrtos\source\Thread.o
Compiling .pio\build\hexiwear\src\main.o
Generating LD script .pio\build\hexiwear\MK64FN1M0xxx12.ld.link_script.ld

What exact platformio.ini are you using?

Is there any antivirus active that could interfer?

Hello,

Thank you for your answer.
I disabled antivirus real time protection and the problem persists.

The platformio.ini file is exactly as it was generted when the project was created, see below.

[env:hexiwear]
platform = freescalekinetis
board = hexiwear
framework = mbed

I can’t reproduce the issue on my computer. A newly created project for the Hexiwear and pressing the build button gives me

Try and update all versions first. Open a CLI and execute

pio upgrade --dev
pio platform update freescalekinetis

then restart VSCode, execute the project task “Clean” and retry building.

If that doesn’t fix the issue, it must be something external to PlatformIO.

Hello,

I followed your steps, and it did not solve the issue.
Then I decided to create a new project from scratch, and it compiled ok.
Something was probably wrong with the other project

Thanks