BitMaker-hub/ESP32_NerdMiner

Compiling and running on an ESP32-DevKitc-32E crashes and reboot

Opened this issue · 6 comments

Hi.
I tried to compile this repository and upload it to the mentioned ESP32 module and when I try to run it, I get this error and it reboots:

>>> Completed 0 share(s), 0 hashes, avg. hashrate 0.000 KH/s
target: 0000000000000000000000000000000000000000000000000000000000000000

extranonce2: 2a6e1ad2f3fc208f

coinbase: 

coinbase bytes - size Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.

Core 0 register dump:

PC      : 0x400d11ca  PS      : 0x00060f30  A0      : 0x800d265c  A1      : 0x3ffd3890  

A2      : 0x00000000  A3      : 0x00000000  A4      : 0x3ffd38c0  A5      : 0x00000000  

A6      : 0x3ffd38c0  A7      : 0x00000001  A8      : 0x25a5a5a5  A9      : 0x3ffd3880  

A10     : 0x00000016  A11     : 0x3f400538  A12     : 0x00000000  A13     : 0x00000018  

A14     : 0x3ffd5714  A15     : 0xff000000  SAR     : 0x00000010  EXCCAUSE: 0x0000001c  

EXCVADDR: 0x00000000  LBEG    : 0x400014fd  LEND    : 0x4000150d  LCOUNT  : 0xfffffffa  



ELF file SHA256: 0000000000000000



Backtrace: 0x400d11ca:0x3ffd3890 0x400d2659:0x3ffd38c0 0x400898aa:0x3ffd3cb0



Rebooting...

ets Jul 29 2019 12:21:46

I should also say I didn't attach any TFT LCD to it. Only using the serial port to see the output!
Any hints on what could it be?

Edited;
I just notice that sometimes, the worker starts and I can see some hashrate and etc, but it crashes sooner or later anyway and reboots!

Sometimes I see something like this:

Worker[0] on core 0: Half share completed with nonce: 897915 | 0xdb37b
>>> Completed 0 share(s), 919971 hashes, avg. hashrate 11.467 KH/s
        half share : 3e d6 3d 9a 81 13 75 96 bc 5e 64 cb 63 fe 13 84 d2 e4 fd 52 bd 76 1e 4e f2 7f 22 63 9f 92 00 00 

Worker[0] on core 0: Half share completed with nonce: 957678 | 0xe9cee
        half share : ee d3 f8 56 10 82 e7 7f a3 dc fd ad 47 5c 7d 52 ed 98 6a 55 fb 0a 0c de c5 44 f2 18 96 c3 00 00 

Worker[0] on core 0: Half share completed with nonce: 960035 | 0xea623
>>> Completed 0 share(s), 979058 hashes, avg. hashrate 11.486 KH/s
Worker[0] on core 0: Nonce > MAX_NONCE
Sending  : {"id": 1, "method": "mining.subscribe", "params": []}


Receiving: {"result":[[["mining.notify","8ac2e08c"]],"1cc5cb89",8],"id":1,"error":null}

sub_details: 8ac2e08c

extranonce1: 1cc5cb89

extranonce2_size: 8

method: mining.set_difficulty

Sending  : {"params": ["bc1.................omitted..............", "password"], "id": 2, "method": "mining.authorize"}

I'll try to make same mods as v2.
Take a look to it. I added some checkings after getting json data from pool to avoid this crashes

I'll try to make same mods as v2. Take a look to it. I added some checkings after getting json data from pool to avoid this crashes

You mean you did some changes in the code? Should I update my local repo, compile and upload again to the ESP32 I have?

@BitMaker-hub today when I checked my ESP32 it was rebooting out of nowhere. It as been working until now, but something must hhave hhappened and now I see the following in the serial port:

Welcome to minicom 2.8

OPTIONS: I18n 
Port /dev/ttyUSB1, 22:58:18

Press CTRL-A Z for help on special keys

Rebooting...

ets Jul 29 2019 12:21:46



rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

configsip: 0, SPIWP:0xee

clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00

mode:DIO, clock div:1

load:0x3fff0018,len:4

load:0x3fff001c,len:1044

load:0x40078000,len:10124

load:0x40080400,len:5856

entry 0x400806a8

Starting Worker[0] successful!

Running Worker[0] on core 0
>>> Completed 0 share(s), 0 hashes, avg. hashrate nan KH/s
Connection to host failed

E (17150) FreeRTOS: FreeRTOS Task "Worker[0]" should not return, Aborting now!

abort() was called at PC 0x400898cb on core 0



ELF file SHA256: 0000000000000000



Backtrace: 0x4008861c:0x3ffd3c00 0x40088899:0x3ffd3c20 0x400898cb:0x3ffd3c40



Rebooting...

ets Jul 29 2019 12:21:46



rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

configsip: 0, SPIWP:0xee

clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00

mode:DIO, clock div:1

load:0x3fff0018,len:4

load:0x3fff001c,len:1044

load:0x40078000,len:10124

load:0x40080400,len:5856

entry 0x400806a8


Any toughts? Could the ESP32 hardware be damaged somehow?

hello, what should I change if I want to use ST7735S

same
coinbase:
coinbase bytes - size Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.

Core 0 register dump:
PC : 0x400d3246 PS : 0x00060f30 A0 : 0x800d4622 A1 : 0x3ffecbc0
A2 : 0x00000000 A3 : 0x00000000 A4 : 0x3ffecbf0 A5 : 0x00000000
A6 : 0x3ffecbf0 A7 : 0x00000001 A8 : 0x00000000 A9 : 0x3ffecbb0
A10 : 0x00000016 A11 : 0x3f400512 A12 : 0x00000000 A13 : 0x00000000
A14 : 0x00000018 A15 : 0x3ffdfe68 SAR : 0x00000015 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000 LBEG : 0x40089911 LEND : 0x40089921 LCOUNT : 0xfffffffa

Backtrace: 0x400d3243:0x3ffecbc0 0x400d461f:0x3ffecbf0

ELF file SHA256: 4f03cb29f5cbc24a

Rebooting...

I'll try to make same mods as v2. Take a look to it. I added some checkings after getting json data from pool to avoid this crashes

we need your corrections in the code =))