"Board at COMx not available" with Feather 32u4 and BNO085

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
joeypurple7
 
Posts: 4
Joined: Sun Jan 10, 2021 11:46 am

"Board at COMx not available" with Feather 32u4 and BNO085

Post by joeypurple7 »

Hi there,

I recently got a Feather 32u4 Adalogger to go with the Adafruit BNO085 9-DOF sensor. I'm running into an issue with the example code for the BNO08x: when I upload the code and try to open the Serial monitor, Arduino IDE says "Board at COM9 is not available". I'm able to upload the Blink code and get the board to work with the serial monitor there, so the issue only seems to arise when using the BNO08x code.
Additionally, whenever I upload code (with verbose upload turned on), I need to press the reset button in order for the IDE to see the board. I have looked at the "Feather HELP!" page, but none of those solutions worked. I've posted all the code up until the main loop - at one point the serial monitor was working with the board, but never got past the line "Adafruit BNO08x test!".

The problem exists on both my USB ports, and the cable is a data cable, as it's able to run other sketches.

Code: Select all

// Basic demo for readings from Adafruit BNO08x
#include <Adafruit_BNO08x.h>

// For SPI mode, we need a CS pin
#define BNO08X_CS 10
#define BNO08X_INT 9

#define BNO08X_RESET 5

Adafruit_BNO08x  bno08x(BNO08X_RESET);
sh2_SensorValue_t sensorValue;

void setup(void) {
  Serial.begin(115200);
  while (!Serial) delay(10);     // will pause Zero, Leonardo, etc until serial console opens

  Serial.println("Adafruit BNO08x test!");

  // Try to initialize!
  if (!bno08x.begin_I2C()) {
  //if (!bno08x.begin_UART(&Serial1)) {  // Requires a device with > 300 byte UART buffer!
  //if (!bno08x.begin_SPI(BNO08X_CS, BNO08X_INT)) {
    Serial.println("Failed to find BNO08x chip");
    while (1) { delay(10); }
  }
  Serial.println("BNO08x Found!");

  for (int n = 0; n < bno08x.prodIds.numEntries; n++) {
    Serial.print("Part ");
    Serial.print(bno08x.prodIds.entry[n].swPartNumber);
    Serial.print(": Version :");
    Serial.print(bno08x.prodIds.entry[n].swVersionMajor);
    Serial.print(".");
    Serial.print(bno08x.prodIds.entry[n].swVersionMinor);
    Serial.print(".");
    Serial.print(bno08x.prodIds.entry[n].swVersionPatch);
    Serial.print(" Build ");
    Serial.println(bno08x.prodIds.entry[n].swBuildNumber);
  }

  setReports();

  Serial.println("Reading events");
  delay(100);
}

// Here is where you define the sensor outputs you want to receive
void setReports(void) {
  Serial.println("Setting desired reports");
  if (! bno08x.enableReport(SH2_GAME_ROTATION_VECTOR)) {
    Serial.println("Could not enable game vector");
  }
}

User avatar
Quineth
 
Posts: 1
Joined: Tue Feb 16, 2021 6:11 pm

Re: "Board at COMx not available" with Feather 32u4 and BNO0

Post by Quineth »

Hi,

I'm running into basically the same problem with a FLORA microcontroller, except I haven't even gotten the "Adafruit BNO08x test!" line. Thanks to anyone who answers with a solution!

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”