I am trying to run my newly purchased BNO055 sensor on my raspberry pi with ubuntu 22.04 64-bit. I installed the adafruit_bno055 package and could import it in python. Next I tried to import board and that failed: no such module.
That's where the trouble started. As far as I could see this problem was caused by having no circuitpython installed. So I tried to install that and I got: "Blinka Exiting due to error: Sorry, the OS detected was Ubuntu. This script currently only runs on Raspberry Pi OS.". It appears that the only way to get circuitpython up and running is by compiling and installing it by my self. Please correct me if I am wrong, the documentation is not clear and I tried it and failed.
I tried to setup circuitpython following these instructionshttps://learn.adafruit.com/building-circuitpython/linux. Installed the Cortex-A toolchain, with the 10.3-2021.07 version because circuitpython is version 7 or higher. When I downloaded that version of the toolchain it was something different than was suggested in the instructions: gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf instead of gcc-arm-none-eabi-10-2020-q4-major. It seems that I got the 64 bit version which suited me fine as I run on a 64bit system.
Everything seems allright until I try to make a BOARD=raspberry_pi4b:
Code: Select all
$ make BOARD=raspberrypi_pi4b
Use make V=1, make V=2 or set BUILD_VERBOSE similarly in your environment to increase build verbosity.
mkdir -p build-raspberrypi_pi4b/genhdr
GEN build-raspberrypi_pi4b/genhdr/moduledefs.h
[Errno 8] Exec format error: 'aarch64-none-elf-gcc'
[Errno 8] Exec format error: 'aarch64-none-elf-gcc'
concurrent.futures.process._RemoteTraceback:
Seriously: what must I do to run the BNO055 sensor in ubuntu 22.04 64 bit? And looking to the next phase of the project: what must I do to get it running in ros2 humble hawking? I saw an entry of adafruit in the rosdep python config file. Does that mean it will be installed without problems?
Thanks in advance for any help!