Chat here is you are connecting ESP-xx type modules to existing AVR based Arduino

Moderator: igrr

User avatar
By theDontKnowGuy
#76852 Hi,

I am not a savvy but and wrote a little hub which converts RF433 calls to Wifi calls with some logic and abstractions.

I am having repeated crashes, after reboot and every now and then.
To my best-inexperienced understanding, it is because of a conflict between these two libs, not that I am the first two use both in a project.

the only included libs in my project are

#include <RFControl.h>
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
Board is wemos D1R2. other wemos provided with the same results.

the debug log talks about an Illegal instruction of handleInterrupt() which is in RFControl.cpp.

Another clue that when using the RFControl in its default leg (D2 GPIO0) the board won't boot most of the times until I hit the restart button on the board several times). So I am using another one (GPIO14-->D5). Tried to change the input to another GPIO with no improvement.

full code is here: https://github.com/theDontKnowGuy/myRFDevicesHub

would appreciate any help !


Exception 0: Illegal instruction
PC: 0x40203b90: handleInterrupt() at /Users/user/Box Sync/My Documents/arduino/libraries/RFControl-master/RFControl.cpp line 293
EXCVADDR: 0x00000000

Decoding stack results
0x401067da: interrupt_handler at /Users/user/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.1/cores/esp8266/core_esp8266_wiring_digital.c line 128
0x40203b9c: handleInterrupt() at /Users/user/Box Sync/My Documents/arduino/libraries/RFControl-master/RFControl.cpp line 296
0x40106834: interrupt_handler at /Users/user/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.1/cores/esp8266/core_esp8266_wiring_digital.c line 147
0x401067a0: interrupt_handler at /Users/user/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.1/cores/esp8266/core_esp8266_wiring_digital.c line 122
0x40203c1e: handleInterrupt() at /Users/user/Box Sync/My Documents/arduino/libraries/RFControl-master/RFControl.cpp line 326
0x40106845: interrupt_handler at /Users/user/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.1/cores/esp8266/core_esp8266_wiring_digital.c line 151
0x401067a0: interrupt_handler at /Users/user/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.1/cores/esp8266/core_esp8266_wiring_digital.c line 122
0x40206314: loop_wrapper() at /Users/user/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.1/cores/esp8266/core_esp8266_main.cpp line 113
0x40214024: etharp_input at core/ipv4/etharp.c line 740
0x401004d8: malloc at /Users/user/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.1/cores/esp8266/umm_malloc/umm_malloc.c line 1668
0x401004f4: calloc at /Users/user/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.1/cores/esp8266/umm_malloc/umm_malloc.c line 1687
0x40106c11: __wrap_spi_flash_read at /Users/user/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.1/cores/esp8266/core_esp8266_phy.c line 267
0x402062a3: loop_task(ETSEvent*) at /Users/user/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.1/cores/esp8266/core_esp8266_main.cpp line 129