0

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.
Please be positive and constructive with your questions and comments.

Error when opening serial monitor

by simon_swolfs on Fri Jan 17, 2020 11:26 am

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[code][/code]

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
Simulate01_final_v1.0.ino
(2.75 KiB) Downloaded 3 times

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

Re: Error when opening serial monitor

by adafruit_support_mike on Sat Jan 18, 2020 5:39 am

What kind of microcontroller are you using?

adafruit_support_mike
 
Posts: 60735
Joined: Thu Feb 11, 2010 2:51 pm

Re: Error when opening serial monitor

by simon_swolfs on Sat Jan 18, 2020 6:31 am

Hi adafruit_support_mike,
Im using a Feather Huzzah ESP8266.

Simon

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

Re: Error when opening serial monitor

by jwcooper on Sat Jan 18, 2020 9:46 pm

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

jwcooper
 
Posts: 673
Joined: Tue May 01, 2012 9:08 pm

Please be positive and constructive with your questions and comments.