BME680 and ATTiny1614 #600
Replies: 3 comments
|
The compiled code does not fit in the flash. 2.5.x brings improvements to flash usage with the Wire library, so that's why it compiles on 2.5.x but not 2.4.x You might want to consider an ATtiny3224 - they're now available! |
|
as an aside, someone with time to waste could pick apart that compiled library - extract the .a with avr-ar, dump the relocation table and the code with avr-objdump.... (I also at one point was dismayed to discover that the IAQ sensing actually couldn't be done without a proprietary library. Actually probably easier to just compile sketch for the 2560, dump assembly listing, and go from there. That would at least handle the relocation table stuff for you, so you'd only have to sort through the hideous compiler generated assembly. A quick look at the IAQEstimator code indicates that it's a shitload of calculations of which every part is done using floating point math. No wonder it's bloated. And of course, all the intermediate values are stored on the stack. and because its' compiler generated, nothing is done to make it readable. Though it also wasn't intentionally obfuscated. Was built with avr-gcc 5.8, and 3.6.2 build 1778 of the gnu tools. Would be a good exercise for someone who has plenty of time on their hands and wants to get good at AVR assembly. And a public service :-P |
|
The root cause is your static field initialization timing: private static Logger logger = LoggerFactory.getLogger(SomeLoggingClass.class);When tests run sequentially:
Recommended Fix: Use a Logback
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I'm working on a project utilizing the Bosch BME680 gas sensor.
I tried to include a few different BME680 libraries with different outcome.
I tried with megaTinyCore v2.4.2 since i ran into the "nullpointer exception issue" with updating to 2.5. and don't want to lose all my other libraries.
edit: updated to 2.5.4.
Adafruit BME680 "BME680test" and the SV-Zanshin "I2CDemo" examples doesn't compile with:
The CloseCube Examples ("tph" and "tphg") compile and I will go on with these. But from my current understanding this isn't as high sophisticated as the adafruit one.
Can someone explain why the adafruit library doesn't compile? I guess it's a resource (memory) problem with the attiny.
edit:
regarding to this page you need the BSEC Library, which is closed-source, to calculate the air quality index (IAQ) from the values, which is not recommended for AVR at all.
Thanks
David
All reactions