Blinky
Example embedded PDK project. Flashes an LED at around 1 Hz.
| File | Description |
|---|---|
| CMakeLists.txt | Build script |
| Makefile | Build helper. Configure and launch a CMake build |
| PDK | Portable Development Kit |
| blinky.cpp | Project source |
Status
Supported targets
Supported micro-controllers..
| PDK_TARGET | Core | Clock | RAM | Description |
|---|---|---|---|---|
| rp2040 | Arm Cortex-M0 | 133 MHz | 264K | Raspberry Pi RP2040 MCU |
| rp2350 | Arm Cortex-M33F | 150 MHz | 520K | Raspberry Pi RP2350 MCU |
| LPC11U24 | Arm Cortex-M0 | 48 MHz | 8K | NXP LPC11u24 MCU |
| LPC1768 | Arm Cortex-M3 | 96 MHz | 32K | NXP LPC1768 MCU |
| LPC810 | Arm Cortex-M0 | 25 MHz | 1K | NXP LPC810 MCU |
| nRF51 | Arm Cortex-M0 | 16 MHz | 16K | Nordic Semi nRF51 MCU |
| nRF52 | Arm Cortex-M4 | 64 MHz | 128K | Nordic Semi nRF52 MCU |
| native | arm64, x86-64 | - | - | Simulated hardware on macOS or Linux |
Supported modules..
| PDK_TARGET | Modules |
|---|---|
| rp2040 | RPIPICO, BADGER2040, TUFTY2040 |
| rp2350 | RPIPICO, TINY2350 |
| LPC11U24 | MBED |
| LPC1768 | MBED |
| LPC810 | DIP |
| nRF51 | MICROBITv1 |
| nRF52 | MICROBITv2 |
Software dependencies
- https://github.com/SloeComputers/PDK
CMakevia UNIXmakeor auto detection ofninjaif installedPython3arm-none-eabi-gcc(for non-native targets)SDL2(for native target)
Checkout
This repo uses git sub-modules, so checkout using –recurse to clone all the dependent source…
git clone --recurse https://github.com/SloeComputers/Blinky.git
or
git clone --recurse ssh://git@github.com/SloeComputers/Blinky.git
Build
Indirect build for all targets using the make helper…
make
Indirect build for a named target using the make helper…
make rp2040
Direct build for a single target using CMake…
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=PDK/TGT/rp2040/toolchain.cmak
make
Flashable images for modules supported for the selected target will be found under the build directory…
build/blinky_RPIPICO.uf2
License
None