Artemis Error

I just got my openlog artemis. I am trying to get imu data sent from the ardunio to my rasberry pi running ubuntu 20.04 through the use of rosserial. My issue that after going through the setup guide on the spark fun website and running the basics script for the imu on the artemis I get this error

ICM_20948::checkID: ICM_20948_check_id returned: Wrong ID

ICM_20948::startupDefault: checkID returned: Wrong ID

ICM_20948_I2C::begin: startupDefault returned: Wrong ID

Initialization of the sensor returned: Wrong ID

Trying again…

I am new to this so any help would be greatly appreciated.

The most common issues for that type of error are:

*the board package not being installed (search for ‘Sparkfun 20948’ in the ‘manage libraries’ menu)

*the wrong board or COM port is selected in the IDE (should be artemis, then select the COM port that appears/disappears when you plug it in…might have to search google for how to do this in ubuntu)

Hope this helps!

Thank you for the help. I get this error in the compiling area of IDE

Arduino: 1.8.15 (Linux), Board: “RedBoard Artemis, 460800, Ambiq Secure Bootloader (Advanced)”

Sketch uses 137860 bytes (14%) of program storage space. Maximum is 983040 bytes.

Global variables use 42240 bytes (10%) of dynamic memory, leaving 350976 bytes for local variables. Maximum is 393216 bytes.

[86395] Error loading Python lib ‘/tmp/_MEIIqVhfW/libpython3.7m.so.1.0’: dlopen: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29’ not found (required by /tmp/_MEIIqVhfW/libpython3.7m.so.1.0)

[86395] Error loading Python lib ‘/tmp/_MEIIqVhfW/libpython3.7m.so.1.0’: dlopen: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29’ not found (required by /tmp/_MEIIqVhfW/libpython3.7m.so.1.0)

This report would have more information with

“Show verbose output during compilation”

option enabled in File → Preferences.

Should the board be Artemis Openlog? Because if so I am not seeing that.

So a small update I have GLIBC version 2.31 installed. So I do not understand why I am getting this error

I think you can only compile and upload artemis on a windows PC, give that a try to upload your code and then move the board back to your Pi.

I am having the same error trying to upload to my Artemis Nano. Everything I’ve come across, including drivers for the CH340e used on the Nano claim to have been tested on Ubuntu 18.04 (which uses libc v2.29) but I am using Ubuntu 20.04 with libc v2.31. I suspect a driver issue. I have compiled and uploaded the same ‘Blink’ program on Arduino 1.8.15 on a Win 10 box and it works just fine. I’m still trying to figure out how to ‘upgrade’ the driver to be compatible with 20.04.

Passing along what I’ve learned.

I’ve attempted to upload Arduino sketches using a couple of versions of the Arduino IDE on both Ubuntu 18.04 and 20.04 without success. I’ve convinced myself, using debug methods from others on the internet, that it is not a CH340 driver issue but some issue with the uploader in the Arduino IDE.

I came across this solution somewhere and it works on Ubuntu 20.04, at least in uploaded ‘Blink’ reliably.

https://github.com/sparkfun/Artemis-Firmware-Upload-GUI

Note: I couldn’t get the Linux install to run so I resorted to Anaconda Navigator/Spyder and ran the source python script inside the Spyder IDE. You have to install pyserial and pycryptodome packages in the Anaconda3 environment before the python script will execute. Good luck.