Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By TonyK59
#71268 Hello,

I have a sketch with an OLED I2V display and a BMP180 attached to D3 and D5. The Sketch works perfectly. However I added a BMP180 sensor (temp, humidity, pressure) and this makes the sketch crash.

D3 = SDA
D5 = SCL

The crash code :


Exception (0):
epc1=0x40106ecd epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: cont
sp: 3fff0aa0 end: 3fff0d40 offset: 01a0

>>>stack>>>
3fff0c40: 3ffefaa0 3ffefb10 3ffefaa0 402085ec
3fff0c50: 00000000 00000000 3ffefaa0 40208611
3fff0c60: 3ffefaf0 3ffefb10 3ffefab8 402028f7
3fff0c70: 00000000 00000000 00000000 40205ef8
3fff0c80: 00000000 00000000 3ffefb9c 00000080
3fff0c90: 3ffefb10 00000000 00000000 00000001
3fff0ca0: 3ffefaf0 00000001 3ffefab8 40205944
3fff0cb0: 00000080 3fff405c 00000000 00000000
3fff0cc0: 00000000 00000000 00000001 0000009a
3fff0cd0: 3ffefab8 00000001 3ffefab8 40205bec
3fff0ce0: 3ffee970 00000000 00000000 40205c94
3fff0cf0: 0000b39a 3ffefd0c 402097dc 3ffefd20
3fff0d00: 40201576 0000001b 0000001b 3ffefd0c
3fff0d10: 3fffdad0 00000000 3ffefab8 40202ca6
3fff0d20: 3fffdad0 00000000 3ffefd04 40209828
3fff0d30: feefeffe feefeffe 3ffefd20 40100718
<<<stack<<<

ets Jan 8 2013,rst cause:2, boot mode:(1,6)


ets Jan 8 2013,rst cause:4, boot mode:(1,6)

wdt reset

When I remove the BMP180 physically, the sketch works fine. Any idea what's wrong ?

Many thanks for your help !

Tony
User avatar
By QuickFix
#71343
TonyK59 wrote:attached to D3 and D5.

D3 and D5 of what?
What board are you using?
And what does your sketch look like?

D3 and D5 on a WEMOS and NodeMCU, are not GPIO3 and GPIO5, but GPIO0 and GPIO14.
Normally, although not actually required, I2C is connected to GPIO4 (SDA) and GPIO5 (CLK) (D2 and D1 on WEMOS and NodeMCU) :idea: