BusIO library causing errors from Adafruit_SPIDevice.h

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jazz77
 
Posts: 3
Joined: Tue Feb 07, 2023 6:34 pm

BusIO library causing errors from Adafruit_SPIDevice.h

Post by jazz77 »

I am using an MSP430G2553 board with the Adafruit Lux Sensor. I imported the libraries for Adafruit_BusIO and the Adafruit_VEML7700 for the sensor. I am trying to compile the example code veml7700_autolux but keep running into errors saying BitOrder is undefined. I am also using Energia to use these libraries with the TI board. We are running on the new gcc-elf compiler. Any help would be appreciated.
Errors.png
Errors.png (53.01 KiB) Viewed 49 times

User avatar
adafruit_support_carter
 
Posts: 29153
Joined: Tue Nov 29, 2016 2:45 pm

Re: BusIO library causing errors from Adafruit_SPIDevice.h

Post by adafruit_support_carter »

These are Arduino libraries. Are you using the Arduino IDE?

User avatar
jazz77
 
Posts: 3
Joined: Tue Feb 07, 2023 6:34 pm

Re: BusIO library causing errors from Adafruit_SPIDevice.h

Post by jazz77 »

Sorry, forgot to update this. I am using Energia, and I added a condition "defined(ENERGIA)" in one of the IFs in the header file and it solved the problem. Now I am facing storage issues:
storage.png
storage.png (20.1 KiB) Viewed 41 times
I'm trying to find compiler flags to rearrange the memory. I've been playing with the platform.txt file by adding -mcode-region=any and -mdata-region=any but they don't seem to solve the problem.

User avatar
jazz77
 
Posts: 3
Joined: Tue Feb 07, 2023 6:34 pm

Re: BusIO library causing errors from Adafruit_SPIDevice.h

Post by jazz77 »

Update on this: instead of trying to re-arrange the memory, I decided the memory was just too small on that board. I tried compiling on a different board (MSP430FR5969) with more memory and the overflow errors were gone.

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

Return to “Other Products from Adafruit”