Search found 5 matches

by NickF93
Mon May 11, 2020 5:39 pm
Forum: General discussion
Topic: STM32F103 (Blue Pill) with stm32duino + BME280 + SSD1306 strange behavior
Replies: 11
Views: 9669

Re: STM32F103 (Blue Pill) with stm32duino + BME280 + SSD1306 strange behavior

Th next release of the core will include several I2C bug fixes. You can try with the master repo to see if this fixes your issue. I checked and I actually using version 1.8.0 updated. The strange thing, that lead me to think that there is something wrong with memory allocation, is that if I change,...
by NickF93
Mon May 11, 2020 6:51 am
Forum: General discussion
Topic: STM32F103 (Blue Pill) with stm32duino + BME280 + SSD1306 strange behavior
Replies: 11
Views: 9669

Re: STM32F103 (Blue Pill) with stm32duino + BME280 + SSD1306 strange behavior

Th next release of the core will include several I2C bug fixes. You can try with the master repo to see if this fixes your issue. Sounds very interesting. I was investigating around TwoWire and Print classes, in my opinion one the two classes (more likely the first) do something bad with memory. Th...
by NickF93
Mon May 11, 2020 12:21 am
Forum: General discussion
Topic: STM32F103 (Blue Pill) with stm32duino + BME280 + SSD1306 strange behavior
Replies: 11
Views: 9669

Re: STM32F103 (Blue Pill) with stm32duino + BME280 + SSD1306 strange behavior

Your best bet is to debug Yes, I tried to change μP with another STM32F103C8 and the behavior is the same (just a try, in order to rule out the remote possibility that it might be the processor, maybe with a broken I2C peripheral) Then I tried to port the code on mbed (with PlatformIO), and it seem...
by NickF93
Sun May 10, 2020 11:24 am
Forum: General discussion
Topic: STM32F103 (Blue Pill) with stm32duino + BME280 + SSD1306 strange behavior
Replies: 11
Views: 9669

Re: STM32F103 (Blue Pill) with stm32duino + BME280 + SSD1306 strange behavior

Yes very hard. If I change something in code, value also change systematically. It seems something like a stack overflow or a bad allocation, because if I convert in int and print to display they are same values but trunked.
by NickF93
Sun May 10, 2020 3:15 am
Forum: General discussion
Topic: STM32F103 (Blue Pill) with stm32duino + BME280 + SSD1306 strange behavior
Replies: 11
Views: 9669

STM32F103 (Blue Pill) with stm32duino + BME280 + SSD1306 strange behavior

I'm going crazy trying to understand some strange reads from BME280 sensor. With this code: #include <SPI.h> #include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #include <Adafruit_Sensor.h> #include <Adafruit_BME280.h> #define SCREEN_WIDTH 128 // OLED display width, in pixels #...

Go to advanced search