Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

WEMOS D1 MINI - Constantly rebooting #6

Open
madebywitteveen opened this issue Dec 18, 2021 · 6 comments
Open

WEMOS D1 MINI - Constantly rebooting #6

madebywitteveen opened this issue Dec 18, 2021 · 6 comments

Comments

@madebywitteveen
Copy link

Hi, mcer12
Trying to get the code working at an WEMOS D1 MINI without success unfortunately.
The WEMOS is constantly rebooting with an 1-second interval.

here is a brief serial monitor output:

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

load 0x4010f000, len 3460, room 16
tail 4
chksum 0xcc
load 0x3fff20b8, len 40, room 4
tail 4
chksum 0xc9
csum 0xc9
v0006c9d0
~ld
[CONF] No credentials set, going to config mode.
START CONFIG-PORTAL
AT CONFIF_PORTAL
[SERV] IP address: 192.168.1.99
DNS-SERVER STARTED
MDNS STARTED

Somewhere in 'config_portal' I'm suspecting the problem to be. Line 320 ??
Did some exception decoding and this was the result:

x4021f450: std::_Function_handler ::_M_invoke(std::_Any_data const&) at c:\users\whate\documents\arduinodata\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\c++\10.3.0\bits/std_function.h line 289
0x4021f464: std::_Function_handler ::_M_manager(std::_Any_data&, std::_Any_data const&, std::_Manager_operation) at c:\users\whate\documents\arduinodata\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\c++\10.3.0\bits/std_function.h line 268
0x40205dd8: handleNotFound() at C:\SynologyDrive\DOCS HENK\PROJECT\ESP8266 GITHUB NIXIE\Nick-ESP8266-master\IN16_DUPLEX_HW_SPI/config_portal.ino line 320
0x4021f464: std::_Function_handler ::_M_manager(std::_Any_data&, std::_Any_data const&, std::_Manager_operation) at c:\users\whate\documents\arduinodata\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\c++\10.3.0\bits/std_function.h line 268
0x4021f450: std::_Function_handler ::_M_invoke(std::_Any_data const&) at c:\users\whate\documents\arduinodata\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\c++\10.3.0\bits/std_function.h line 289
0x4021f4d0: std::_Function_handler ::setup(esp8266webserver::ESP8266WebServerTemplate *, String const&, String const&, String const&)::{lambda()#3}>::_M_manager(std::_Any_data&, std::_Function_handler ::setup(esp8266webserver::ESP8266WebServerTemplate *, String const&, String const&, String const&)::{lambda()#3}> const&, std::_Manager_operation) at c:\users\whate\documents\arduinodata\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\c++\10.3.0\bits/std_function.h line 268
0x40203370: std::_Function_handler ::setup(esp8266webserver::ESP8266WebServerTemplate , String const&, String const&, String const&)::{lambda()#3}>::_M_invoke(std::_Any_data const&) at c:\users\whate\documents\arduinodata\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\c++\10.3.0\bits/invoke.h line 103
0x40212c00: HardwareSerial::flush() at C:\Users\whate\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266\HardwareSerial.cpp line 125
0x40214178: Print::println() at C:\Users\whate\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266/Print.h line 57
0x40220035: fs::File::setTimeCallback(long long (
)()) at C:\Users\whate\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266\FS.cpp line 208
0x4020aa13: setup() at C:\SynologyDrive\DOCS HENK\PROJECT\ESP8266 GITHUB NIXIE\Nick-ESP8266-master\IN16_DUPLEX_HW_SPI/IN16_DUPLEX_HW_SPI.ino line 293
0x40216878: loop_wrapper() at C:\Users\whate\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266\core_esp8266_main.cpp line 198

Could you help me out ?

@mcer12
Copy link
Owner

mcer12 commented Dec 18, 2021

Hi, I suspect you're using the new ESP8266 arduino core which is not supported. You have to use 2.7.4

If you want to make it work with version 3.0+ I am happy to accept PR.

@madebywitteveen
Copy link
Author

Hi mcer12, reverted back the core and using 2.7.4
image

The IDE is currently set to 'LOLIN' (WEMOES) D1 R2 & mini which should be correct ? Tried setting the board to 'Generic ESP8266' also without luck.
The Erase Flash setting in the IDE is set to 'All Flash Contents' but that didn't change a thing either.
Tried connecting to an external 5VDC lab supply instead of the USB cable but that didn't make any difference.
Any ideas ?

The hardware connected to the ESP (shift registers and so on) is similar to the setup I'm using but the code needs some change to make it work.
Can you please contact me via the contact form at my website.
Thankyou

@mcer12
Copy link
Owner

mcer12 commented Dec 19, 2021

Sorry, if you want me to help, you will have to use this github issue.

  1. uninstall ESP8266 completely, then install 2.7.4 again (just to be sure)
  2. copy modified SPI library from link below to your arduino libraries folder
    https://github.com/mcer12/Flora-ESP8266/tree/main/Libraries/SPI
  3. flash the firmware again with "erase all flash contents" selected

That SPI library is needed, I will make sure to note it somewhere in this repo wiki.

@madebywitteveen
Copy link
Author

Yes my man! The SPI library was the problem!
it is working now, thanks.
Is the IP-address (3 digits) after booting displayed at the tubes when having your hardware ?

About my hardware, I'm using an 20-output HV shift register (HV5812 by microchip) the six anodes are scanned in duo's.
Enable one : Hour-Digit1 & Minute-Digit2 are enabled at the same time
Enable two : Hour-Digit2 & Second-Digit1 are enabled at the same time
Enable three : Minute-Digit1 & Second-Digit2 are enabled at the same time
output's 1-10 are connected to digit's 1,2&3
output's 11-20 are connected to digit's 4,5&6

is this something you would change for me?
I do have some more requests please. I am willing to reward you

Thankyou

@mcer12
Copy link
Owner

mcer12 commented Dec 21, 2021

So you're saying you're using the sketch with totally different hardware? I can't help you with that, sorry.

The sketch is intended for SN74141 nixie driver, not for shift registers. You will have to rewrite the nixie driving functions to match your setup. I plan on making a new nixie clock with shift registers but don't know when I get to that.

@madebywitteveen
Copy link
Author

madebywitteveen commented Dec 21, 2021 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants