Byteduino hardware cosigner wallet crashing

Why is this crashing? Using https://www.amazon.com/gp/product/B07DKD79Y9/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1

How do I understand these errors?

Guru Meditation Error: Core 1 panic’ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x400014fd PS : 0x00060630 A0 : 0x800de05a A1 : 0x3ffb1d90
A2 : 0x00004e20 A3 : 0x00004e1c A4 : 0x000000ff A5 : 0x0000ff00
A6 : 0x00ff0000 A7 : 0xff000000 A8 : 0x00000000 A9 : 0x3ffb1d50
A10 : 0x00000001 A11 : 0x40085dbc A12 : 0x00000001 A13 : 0x00000001
A14 : 0x00060620 A15 : 0x00000000 SAR : 0x00000010 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00004e20 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xffffffff

ELF file SHA256: 0000000000000000000000000000000000000000000000000000000000000000

Backtrace: 0x400014fd:0x3ffb1d90 0x400de057:0x3ffb1da0 0x400de17f:0x3ffb1ed0 0x400dddca:0x3ffb1ef0 0x400d2190:0x3ffb1f70 0x400e067b:0x3ffb1fb0 0x4008ef75:0x3ffb1fd0

Rebooting…
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x17 (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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1100
load:0x40078000,len:10312
load:0x40080400,len:6432
entry 0x400806a4


I’m doing the byteduino project any my AP doesn’t have a password:

// Byteduino Cosigner Device - papabyte.com
// MIT License

#include <Arduino.h>
#include <byteduino.h>

#if defined (ESP32)
#include <WiFiMulti.h>
WiFiMulti WiFiMulti;
#endif

#if defined (ESP8266)
#include <ESP8266WiFiMulti.h>
#include <ESP8266WebServer.h>
ESP8266WiFiMulti WiFiMulti;
#endif

WiFiServer server(80);
void sendWebpage(WiFiClient &client);

void setup() {

Serial.begin(115200);

while (!Serial)
continue;

setDeviceName(“Byteduino”);
setHub(“byteball.org/bb”);

//don’t forget to change the keys below!
setPrivateKeyM1(“PRIVATEKEY”);
setExtPubKey(“PUBKEY”);
setPrivateKeyM4400(“ANOTHERPRIVATEKEY”);

WiFi.softAPdisconnect(true);
WiFiMulti.addAP(“myapname”, “”);

while (WiFiMulti.run() != WL_CONNECTED) {
delay(1000);
Serial.println(F(“Not connected to wifi yet”));
}
Serial.println(WiFi.localIP());

server.begin();
}

void sendWalletsJson(WiFiClient &client) {
client.flush();
client.print(getWalletsJsonString());

}

void sendPairedDevicesJson(WiFiClient &client) {
client.flush();
client.print(getDevicesJsonString());
}

void sendDeviceInfosJson(WiFiClient &client) {

client.flush();
client.print(getDeviceInfosJsonString());
}

void sendOnGoingSignatureJson(WiFiClient &client) {
client.flush();
client.print(getOnGoingSignatureJsonString());
}

void loop() {
// put your main code here, to run repeatedly:
byteduino_loop();

WiFiClient client = server.available();

if (client) {
// an http request ends with a blank line
boolean currentLineIsBlank = true;

int i = 0;
char bufferClient[300];
char textToSign[45];
while (client.connected()) {
  while (client.available()) {
    char c = client.read();
    if (i < 300) {
      bufferClient[i] = c;
      i++;
    }
    // if you've gotten to the end of the line (received a newline
    // character) and the line is blank, the http request has ended,
    // so you can send a reply
    if (c == '\n' && currentLineIsBlank) {

      // Here is where the POST data is.
      int j = 0;
      while (client.available())
      {
        textToSign[j] = client.read();
        j++;
      }
      textToSign[44] = 0x00;
      Serial.println(textToSign);

      if (strstr(bufferClient, "ongoing_signature.json") != nullptr) {
        sendOnGoingSignatureJson(client);
      } else if (strstr(bufferClient, "paired_devices.json") != nullptr) {
        sendPairedDevicesJson(client);
      } else if (strstr(bufferClient, "device_infos.json") != nullptr) {
        sendDeviceInfosJson(client);
      } else if (strstr(bufferClient, "wallets.json") != nullptr) {
        sendWalletsJson(client);
      } else if (strstr(bufferClient, "refuse_signature") != nullptr) {
        refuseTosign(textToSign);
        Serial.println("deny signature");
      } else if (strstr(bufferClient, "confirm_signature") != nullptr) {
        acceptToSign(textToSign);
        Serial.println("confirm signature");
      } else if (strstr(bufferClient, "favico") == nullptr ) {
        sendWebpage(client);
      }


      client.stop();
    }
    else if (c == '\n') {
      // you're starting a new line
      currentLineIsBlank = true;
    }
    else if (c != '\r') {
      // you've gotten a character on the current line
      currentLineIsBlank = false;
    }
  }
}

}

}

Hi there

According to the situation we have collected so far, the most likely to cause a constant reset problem may have two reasons:

  1. Power supply problem: please make sure the voltage of USB ≥ 4.7V, 300mA;
  2. You chose an error board: because each type of board may have a different FLASH size, and they have a different partition map, it will cause the internal logic error.

@joshua Can you tell me which board in your hand?

Can you please try to choose the WiFi Kit 32 and test again?

Do you mean the WIFI_Kit_32_FactoryTest? I get this error.

ELF file SHA256: 0000000000000000000000000000000000000000000000000000000000000000

Backtrace: 0x400df180:0x3ffb1ed0 0x400df3cb:0x3ffb1f30 0x400d22b9:0x3ffb1f70 0x400e1ba7:0x3ffb1fb0 0x4008f7f1:0x3ffb1fd0

Rebooting…
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x17 (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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1100
load:0x40078000,len:10312
load:0x40080400,len:6432
entry 0x400806a4
Not connected to wifi yet
Guru Meditation Error: Core 1 panic’ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x400df180 PS : 0x00060630 A0 : 0x800df3ce A1 : 0x3ffb1ed0
A2 : 0x3ffb7f10 A3 : 0x00000000 A4 : 0x00000000 A5 : 0x3ffbbfd0
A6 : 0x00000000 A7 : 0x00000000 A8 : 0x00000000 A9 : 0x00000000
A10 : 0x00000008 A11 : 0x00000000 A12 : 0x0000000c A13 : 0x00000000
A14 : 0x3f40256c A15 : 0x00000000 SAR : 0x00000020 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xfffffffc

ELF file SHA256: 0000000000000000000000000000000000000000000000000000000000000000

Backtrace: 0x400df180:0x3ffb1ed0 0x400df3cb:0x3ffb1f30 0x400d22b9:0x3ffb1f70 0x400e1ba7:0x3ffb1fb0 0x4008f7f1:0x3ffb1fd0

Rebooting…
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x17 (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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1100
load:0x40078000,len:10312
load:0x40080400,len:6432
entry 0x400806a4

Ok, I got the stock app working:

Hi, Joshua

How did you solve it?

I’m not sure. THe byteduino stuff is stil crashign though.

How do I use the crashlog/backtrace? Is there a way to read it?

You didn’t use our development framework?

Hi, I also get the similar problem:

ERROR : BELOW ----------------
Rebooting…
Serial initial done
you can see OLED printed OLED initial done!
LoRa Initial success!
setup()
Initialising Gateway…
Connecting to WiFi…
Connected to coffee
IP address: 172.20.10.11
wifi connection status : 3
Connected to:
coffee
IP address:
185210028
configureLoRa()
configureLora() completed!
setup() done
set MQTT_Server
connect to mqtt server mqtt-server.local
set MQTT_Server complete and start connect to MQTT server
MQTT connecting as client LoRa-Gateway-225832847895868…
Guru Meditation Error: Core 1 panic’ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x400014e8 PS : 0x00060630 A0 : 0x800e582c A1 : 0x3ffb1aa0
A2 : 0xfffffffe A3 : 0xfffffffc A4 : 0x000000ff A5 : 0x0000ff00
A6 : 0x00ff0000 A7 : 0xff000000 A8 : 0x462d4100 A9 : 0x3ffb1e10
A10 : 0x00002038 A11 : 0x00000fa0 A12 : 0x400d3d24 A13 : 0x3ffb1e70
A14 : 0x00060623 A15 : 0x00000000 SAR : 0x00000010 EXCCAUSE: 0x0000001c
EXCVADDR: 0xfffffffc LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xffffffff

ELF file SHA256: 0000000000000000000000000000000000000000000000000000000000000000

Backtrace: 0x400014e8:0x3ffb1aa0 0x400e5829:0x3ffb1ab0 0x400ecd5a:0x3ffb1dc0 0x400ecd92:0x3ffb1e50 0x400d4998:0x3ffb1e90 0x400d1c1d:0x3ffb1f30 0x400d1e49:0x3ffb1f90 0x400d6775:0x3ffb1fb0 0x4008f71d:0x3ffb1fd0

Rebooting…

================================

It keep on reboot, and i crash on this function _mqttClient.connect():
Serial.printf(“MQTT connecting as client %s…\n”, clientId.c_str());
// Attempt to connect
if (_mqttClient.connect(“TEST1”)) {

Please help…

Thank you.

Choong Leng ( from Singapore)

That’s very likely that you choose a wrong board.

This is the hw that i choose :slight_smile:

please help… thanks!

29%20AM

I think the crash is there. Please help…

@coffee

If you comment this line, it will not reboot all the time?

If commented this, it will not reboot…
32%20PM 15%20PM

Can you paste your test code? Let us analyze it together