mcer12 / Nick-ESP8266

Nick is a series of different Nixie clocks based on ESP8266.
38 stars 6 forks source link

WEMOS D1 MINI - Constantly rebooting #6

Open madebywitteveen opened 2 years ago

madebywitteveen commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

Thankyou Mcer,

In your hardware are two shift registers used (74HC595D) and behind those the high-voltage drivers. (SN74141)

The HV5812 is basically your two 74HC595D’s and the high-voltage part combined in one package.

The SPI-control is similar bit the bitstring (length) and perhaps the order needs some adjusting.

Correct me if I am wrong but I don’t think this is a big deal?! Could you think this over again please?

nice holidays and best wishes

Henk

Van: mcer12 @.> Verzonden: dinsdag 21 december 2021 12:04 Aan: mcer12/Nick-ESP8266 @.> CC: madebywitteveen @.>; Author @.> Onderwerp: Re: [mcer12/Nick-ESP8266] WEMOS D1 MINI - Constantly rebooting (Issue #6)

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.

— Reply to this email directly, view it on GitHub https://github.com/mcer12/Nick-ESP8266/issues/6#issuecomment-998685136 , or unsubscribe https://github.com/notifications/unsubscribe-auth/APEZVYSSNNCO7APIZKAP4PDUSBNJHANCNFSM5KK77X6Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . You are receiving this because you authored the thread. https://github.com/notifications/beacon/APEZVYSGIH3FRGURXA4IJJ3USBNJHA5CNFSM5KK77X62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHODLTUA.gif Message ID: @. @.> >