BusIO library causing errors from Adafruit_SPIDevice.h
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- jazz77
- Posts: 3
- Joined: Tue Feb 07, 2023 6:34 pm
BusIO library causing errors from Adafruit_SPIDevice.h
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.
- adafruit_support_carter
- Posts: 29168
- Joined: Tue Nov 29, 2016 2:45 pm
Re: BusIO library causing errors from Adafruit_SPIDevice.h
These are Arduino libraries. Are you using the Arduino IDE?
- jazz77
- Posts: 3
- Joined: Tue Feb 07, 2023 6:34 pm
Re: BusIO library causing errors from Adafruit_SPIDevice.h
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:
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.- jazz77
- Posts: 3
- Joined: Tue Feb 07, 2023 6:34 pm
Re: BusIO library causing errors from Adafruit_SPIDevice.h
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.
Please be positive and constructive with your questions and comments.