-
Notifications
You must be signed in to change notification settings - Fork 1
host_rp2040
mean00 edited this page Apr 3, 2024
·
4 revisions
The build system contains similar files in all cases (derived from lnArduino)
- platformConfig.cmake : Location of toolchain and compile flags
- mcuSettings.cmake : Describe the chip, flash size, frequency,etc...
- build_default.cmake : Select which version to build
It is strongly suggested to use a Pico Zero, it is ridiculously small and you 'll have a pulsing led for free. Using a gumstick also works.
This is a minimalistic port for RP2040, it works just fine. You'll need
- a recent ARM-Clang (see https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm
- rust nightly + arm toolchain
- The https://github.com/raspberrypi/pico-sdk
- You'll need to apply a small usb patch on the pico sdk ( lnArduino/mcus/arm_rp2040/tinyUsb/sdk.patch , else it will crash on usb)
- Edit build_default.make , just leave
SET(USE_CLANG True)
SET(USE_RP2040 True)
- make build && cd build && cmake .. && make -j 4, you 'll end up with a .uf2