Closed taktran closed 3 years ago
I've written a project using bbc-microbit-classic-s130
changing that line and it works fine. I'm not using the microbit runtime, instead I'm just using MicroBitDisplay.h
to drive the display.
I would use the microbit components individually as the s130 softdevice takes up much more memory. Here is a link to my project if it would help.
I'm trying to build the microbit-samples project with the
bbc-microbit-classic-gcc-s130
target ie,But, I get an error (see below). It seems like it is trying to link to
yotta_targets/bbc-microbit-classic-gcc-s130/ld/NRF51822.ld
, but the s130 target generatesyotta_targets/bbc-microbit-classic-gcc-s130/ld/NRF51822_S130.ld
(ie, it has an extra_S130
suffix).I'm not sure how all this linking works, but I did hack around and change
yotta_targets/bbc-microbit/class-gcc-s130/CMake/toolchain.cmake
(line 22) fromto
which fixed the build.
However, copying
build/bbc-microbit-classic-gcc-s130/source/microbit-samples-combined.hex
to the micro:bit didn't seem to do anything (blank screen after upload). I did try the normal build (yt build
) and copiedbuild/bbc-microbit-classic-gcc/source/microbit-samples-combined.hex
to the micro:bit, and it works as expected, showing the "HELLO WORLD!" text.Any ideas? It is an issue with the
toolchain.cmake
file, or the default sample project? Or something I'm missing?Thanks!
Build error