Alire with microbit v1

Hi,

I’ve spent some (several) hours now to get a trivial example to link for a bbc:microbit card V1.

Google AI was involved but it did not help that much.

I’m on opensuse 16 and have no compiler installed.

In the end, it compile but usually complains on missing memory-map.ld

sattmate@fuji-i3:~/micro_1> alr build
ⓘ Building micro_1=0.1.0-dev/micro_1.gpr...         
Bind
   [gprbind]      micro_1.bexch
   [Ada]          micro_1.ali
Link
   [link]         micro_1.adb
/home/sattmate/.local/share/alire/toolchains/gnat_arm_elf_11.2.4_ba16d45c/bin/../lib/gcc/arm-eabi/11.2.0/../../../../arm-eabi/bin/ld: cannot open linker script file memory-map.ld: No such file or directory
collect2: error: ld returned 1 exit status
gprbuild: link of micro_1.adb failed

it insists of installing gnat 11, and not 15/16 which is odd, but perhaps the crate has note been updated. It is ok for my purpose, but odd.

So - can anyone point me to how I should do - if I have a clean computer - to get a cross compiling environment that can be used via cli, and compile and link to the bbc-micro?

Did you install the BSP? (Board Support Package) Alire - Microbit_bsp

Also, take a look at Alire - Microbit_examples

The missing file is basically what the BSP should provide or you have to write it by hand if you are doing support from scratch.

I hope this helps. Best regards,
Fer