Template for the CORE2 board to use with Mbed OS 5.15 RTOS.
You need to install following tools:
- Microsoft C/C++ extension (
ms-vscode.cpptools
) - PlatformIO IDE (
platformio.platformio-ide
)
https://docs.platformio.org/en/latest/frameworks/mbed.html#ignoring-particular-components
In directory ~/.platformio/packages/framework-mbed/features
create file called .mbedignore
with the following content:
cellular/*
cryptocell/*
deprecated_warnings/*
lorawan/*
lwipstack/*
nanostack/*
netsocket/*
nfc/*
unsupported/*
Use PlatformIO: Build
task.
Attach ST-LINK programmer to the board and use PlatformIO: Upload
task.
Connect CORE2 to your computer via micro-usb port and use the core2-flasher
tool (from this repo) to upload a generated firmware.hex
file. You will find the firmware.hex
file in the .pio/build/core2
directory.
To flash firmware using core2-flasher
run:
./core2-flasher .pio/build/core2/firmware.hex
This board pinout is described in src/TARGET_CORE2/PinNames.h
file. Pin names defined in that file are similar to ones used by hFramework
and should be easily identifiable. Peripheral functions available for each pin are described in PeripheralPins.c
file.