Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Feather M0 Express and BNO055 9DOF Error
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Feather M0 Express and BNO055 9DOF Error

by no_albert on Tue Apr 21, 2020 12:33 pm

Hello everyone,

I am trying to use my Adafruit BN055 9DOF sensor, but I ran into some issues. I purchased the Feather M0 Express and installed the latest version of CircuitPython. I chose this board because the Adafruit guide on the BNO055 shows this specific board in use. Furthermore, I downloaded the latest CircuitPython libraries and dragged the adafruit_bno055.mpy library onto the library folder in my Feather M0 Express (CircuitPython is on the board). I created a code.py file and copy-pasted the BNO055 sample code shown on the BN055 guide. Though when I save the file onto the board I get the following message:

Image

Image

Please let me know how I can solve this issue. I assumed that the adafruit_bno055.py file is the file before conversion to the .mpy, and uploaded the adafruit_bno055.py file onto the CircuitPython, but that creates memory error. The images below does not have this file because I wanted to show the original error I encountered.

Thanks,
Alberto Andrade

no_albert
 
Posts: 8
Joined: Mon Apr 20, 2020 3:21 pm

Re: Feather M0 Express and BNO055 9DOF Error

by danhalbert on Tue Apr 21, 2020 1:04 pm

What version of CircuitPython did you install, and what did you have before? The version will be printed at the top of the REPL prompts and is also in the BOOT_OUT.TXT file?

And which bundle did you get the adafruit_bno055.mpy from? Make sure it's the 5.x bundle. Recopy the .mpy file to the board to make sure.

Yes, the .py version is too big to use on an M0, unfortunately.

danhalbert
 
Posts: 2117
Joined: Tue Aug 08, 2017 12:37 pm

Re: Feather M0 Express and BNO055 9DOF Error

by mikeysklar on Tue Apr 21, 2020 1:05 pm

Hello Alberto,

Please make sure your M0 Express is running the latest CircuitPython release version 5.2.0 and the latest libraries (5.2.x 20200421 release). Removing the existing libraries you have under the lib folder.

https://circuitpython.org/board/feather_m0_express/

https://circuitpython.org/libraries

mikeysklar
 
Posts: 1644
Joined: Mon Aug 01, 2016 8:10 pm

Re: Feather M0 Express and BNO055 9DOF Error

by no_albert on Tue Apr 21, 2020 1:52 pm

This is the CircuitPython file: adafruit-circuitpython-feather_m0_express-en_US-5.2.0.uf2

This is the most recent library I was using at the time: adafruit-circuitpython-bundle-5.x-mpy-20200417

no_albert
 
Posts: 8
Joined: Mon Apr 20, 2020 3:21 pm

Re: Feather M0 Express and BNO055 9DOF Error

by mikeysklar on Tue Apr 21, 2020 2:18 pm

Great. Your board version is good. Just upgrade the libraries and use the MPY file not a PY version.

mikeysklar
 
Posts: 1644
Joined: Mon Aug 01, 2016 8:10 pm

Re: Feather M0 Express and BNO055 9DOF Error

by no_albert on Tue Apr 21, 2020 2:46 pm

I was using the [newest] adafruit_bno055.mpy library, but the serial window in mu-editor gives me that error about adafruit_bno055.py in line 36, but I am not using an adafruit_bno055.py file anywhere.


edit: news to newest

no_albert
 
Posts: 8
Joined: Mon Apr 20, 2020 3:21 pm

Re: Feather M0 Express and BNO055 9DOF Error

by tannewt on Tue Apr 21, 2020 2:50 pm

I've locked the other topic. As I said there, update all .mpy files. The error is that the BNO library is importing another .mpy that is out of date.

The .py in the traceback can be ignored. That's just the original filename.

tannewt
 
Posts: 1779
Joined: Thu Oct 06, 2016 8:48 pm

Re: Feather M0 Express and BNO055 9DOF Error

by no_albert on Wed Apr 22, 2020 1:38 pm

Fixed! Thanks to all! I updated all the libraries used, and that did the trick.

no_albert
 
Posts: 8
Joined: Mon Apr 20, 2020 3:21 pm

Please be positive and constructive with your questions and comments.