Error when opening serial monitor

Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Locked
User avatar
simon_swolfs
 
Posts: 2
Joined: Fri Jan 17, 2020 5:48 am

Error when opening serial monitor

Post by simon_swolfs »

Hi everybody,
When i upload my Arduino IDE code (look in the file attachment )everything is fine. But when i open my serial monitor, it gives this 'Exception'.

Adafruit IO connected.
Humidity: -6274.38%
Temperature is: 22.31 ºC

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

>>>stack>>>

ctx: cont
sp: 3ffffda0 end: 3fffffc0 offset: 01a0
3fffff40: 3ffee190 3ffeebf4 000003e8 3ffee778
3fffff50: 3ffee7c8 3ffee778 3ffee9b0 40206711
3fffff60: 402090ed 000003e8 3ffee778 402090e2
3fffff70: 3fffdad0 3ffee798 3ffee9b0 40201178
3fffff80: 00000014 3ffee7f0 3ffee9b0 402078d4
3fffff90: 00000014 3ffee7f0 3ffee9b0 3ffeeaec
3fffffa0: 3fffdad0 00000000 3ffeeaac 40208418
3fffffb0: feefeffe feefeffe 3ffe84f0 40100cc5
<<<stack<<<

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

load 0x4010f000, len 1392, room 16
tail 0
chksum 0xd0
csum 0xd0
v3d128e5c
~ld Does anybody know what this means and what i can do to solve this problem?

Also my humidity sensor gives me very strange value: Humidity: -6274.38%

*EDIT
I did find that the problem occurs when I initiate the CCS811 code ( if (mySensor.dataAvailable())....)
If I leave that part out. Everything runs fine.
Attachments

[The extension ino has been deactivated and can no longer be displayed.]


User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Error when opening serial monitor

Post by adafruit_support_mike »

What kind of microcontroller are you using?

User avatar
simon_swolfs
 
Posts: 2
Joined: Fri Jan 17, 2020 5:48 am

Re: Error when opening serial monitor

Post by simon_swolfs »

Hi adafruit_support_mike,
Im using a Feather Huzzah ESP8266.

Simon

User avatar
jwcooper
 
Posts: 1004
Joined: Tue May 01, 2012 9:08 pm

Re: Error when opening serial monitor

Post by jwcooper »

A quick thing you can try is isolating the CCS811 logic and running just an example sketch.

If the example works, something is wrong in your code and you can compare the examples to see if anything is obvious.

Test file here:
https://github.com/adafruit/Adafruit_CC ... 1_test.ino

Locked
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.

Return to “Internet of Things: Adafruit IO and Wippersnapper”