Arduino, ESP32 Bluetooth, PS4 Controller

Hallo ,
ich stehe auf dem Schlauch.
Ich versuche die Empfangenen Daten vom PS4 Controller auf dem ESP32 zulesen. Die Verbindung mit dem ESP klappt und der Controller ist connectet. Sobald ich das Projekt zum lesen hochlade geht der ESP in Error.
Fehlermeldung ESP32:


06:27:16.789 -> rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
06:27:16.789 -> configsip: 0, SPIWP:0xee
06:27:16.789 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
06:27:16.789 -> mode:DIO, clock div:1
06:27:16.789 -> load:0x3fff0018,len:4
06:27:16.789 -> load:0x3fff001c,len:1100
06:27:16.789 -> load:0x40078000,len:9564
06:27:16.789 -> ho 0 tail 12 room 4
06:27:16.789 -> load:0x40080400,len:6320
06:27:16.789 -> csum err:0x68!=0x80
06:27:16.789 -> ets_main.c 371

Folgender Sketch wird hoch geladen:

#include <PS4Controller.h>

void setup() {
  Serial.begin(115200);
  PS4.begin("03:03:03:03:03:03");
  Serial.println("Ready.");
}

void loop() {
  // Below has all accessible outputs from the controller
  if (PS4.isConnected()) {
    if (PS4.Right()) Serial.println("Right Button");
    if (PS4.Down()) Serial.println("Down Button");
    if (PS4.Up()) Serial.println("Up Button");
    if (PS4.Left()) Serial.println("Left Button");

    if (PS4.Square()) Serial.println("Square Button");
    if (PS4.Cross()) Serial.println("Cross Button");
    if (PS4.Circle()) Serial.println("Circle Button");
    if (PS4.Triangle()) Serial.println("Triangle Button");

    if (PS4.UpRight()) Serial.println("Up Right");
    if (PS4.DownRight()) Serial.println("Down Right");
    if (PS4.UpLeft()) Serial.println("Up Left");
    if (PS4.DownLeft()) Serial.println("Down Left");

    if (PS4.L1()) Serial.println("L1 Button");
    if (PS4.R1()) Serial.println("R1 Button");

    if (PS4.Share()) Serial.println("Share Button");
    if (PS4.Options()) Serial.println("Options Button");
    if (PS4.L3()) Serial.println("L3 Button");
    if (PS4.R3()) Serial.println("R3 Button");

    if (PS4.PSButton()) Serial.println("PS Button");
    if (PS4.Touchpad()) Serial.println("Touch Pad Button");

    if (PS4.L2()) {
      Serial.printf("L2 button at %d\n", PS4.L2Value());
    }
    if (PS4.R2()) {
      Serial.printf("R2 button at %d\n", PS4.R2Value());
    }

    if (PS4.LStickX()) {
      Serial.printf("Left Stick x at %d\n", PS4.LStickX());
    }
    if (PS4.LStickY()) {
      Serial.printf("Left Stick y at %d\n", PS4.LStickY());
    }
    if (PS4.RStickX()) {
      Serial.printf("Right Stick x at %d\n", PS4.RStickX());
    }
    if (PS4.RStickY()) {
      Serial.printf("Right Stick y at %d\n", PS4.RStickY());
    }


    Serial.println();
    // This delay is to make the output more human readable
    // Remove it when you're not trying to see the output
    delay(1000);
  }
}

[EDIT] Code Tags </> hinzugefügt Uwe[/EDIT]

Dann zeige (Link posten) doch mal, welche Library du verwendest.
Und korrigieren bitte deine Code-Tags, damit der Sketch richtig lesbar wird.

Was meinst du mit Link posten ?
Die Zeilennummer an der Seite?

Ups....du weißt nicht, was ein Link ist ?

Ein Link ist der Verweis auf eine Website, welche Library du verwendest und wo du die Library her hast.

achso ....
Weiß was ein Link ist, habe es nur falsch verstanden.

Hi,
danke schonmal für die hilfe nach dem hochladen ist der ESP ready und nach dem verbindet mit dem Controller erscheint diese Fehlermeldung.
16:17:21.352 -> Ready.
16:17:26.038 -> Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
16:17:26.038 -> Core 0 register dump:
16:17:26.038 -> PC : 0x400d68da PS : 0x00060430 A0 : 0x800d74f1 A1 : 0x3ffd23c0
16:17:26.038 -> A2 : 0x3ffd5380 A3 : 0x01000048 A4 : 0x3ffd2428 A5 : 0x00000040
16:17:26.038 -> A6 : 0x40107be4 A7 : 0x40107b90 A8 : 0x3ffd6a40 A9 : 0x01000020
16:17:26.038 -> A10 : 0x3ffd68d4 A11 : 0x3ffd53a4 A12 : 0x00000000 A13 : 0x00000000
16:17:26.038 -> A14 : 0x00001800 A15 : 0x00000000 SAR : 0x00000008 EXCCAUSE: 0x0000001c
16:17:26.038 -> EXCVADDR: 0x01000048 LBEG : 0x4000c46c LEND : 0x4000c477 LCOUNT : 0x00000000
16:17:26.038 ->
16:17:26.038 -> Backtrace: 0x400d68da:0x3ffd23c0 0x400d74ee:0x3ffd23f0 0x400d9fc2:0x3ffd2410 0x400daa89:0x3ffd24b0 0x400fb56c:0x3ffd24e0 0x400fb7d2:0x3ffd2500 0x40090461:0x3ffd2530
16:17:26.038 ->
16:17:26.038 -> Rebooting...
16:17:26.086 -> ets Jun 8 2016 00:22:57
16:17:26.086 ->
16:17:26.086 -> rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
16:17:26.086 -> configsip: 0, SPIWP:0xee
16:17:26.086 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
16:17:26.086 -> mode:DIO, clock div:1
16:17:26.086 -> load:0x3fff0018,len:4
16:17:26.086 -> load:0x3fff001c,len:1100
16:17:26.086 -> load:0x40078000,len:9232
16:17:26.086 -> load:0x40080400,len:6400
16:17:26.086 -> csum err:0xff!=0x07
16:17:26.086 -> ets_main.c 371
16:17:27.119 -> ets Jun 8 2016 00:22:57
16:17:27.119 ->

Evtl. hilft dir der Exeption Decoder weiter.

Haben Sketch hochgeladen und habe folgenden fehler: Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
21:02:36.727 -> Core 0 register dump:
21:02:36.727 -> PC : 0x400d68da PS : 0x00060430 A0 : 0x800d74f1 A1 : 0x3ffd23c0
21:02:36.727 -> A2 : 0x3ffd5380 A3 : 0x01000048 A4 : 0x3ffd2428 A5 : 0x00000040
21:02:36.727 -> A6 : 0x40107be4 A7 : 0x40107b90 A8 : 0x3ffd6a40 A9 : 0x01000020
21:02:36.727 -> A10 : 0x3ffd68d4 A11 : 0x3ffd53a4 A12 : 0x00000000 A13 : 0x00000000
21:02:36.727 -> A14 : 0x00001800 A15 : 0x00000000 SAR : 0x00000008 EXCCAUSE: 0x0000001c
21:02:36.775 -> EXCVADDR: 0x01000048 LBEG : 0x4000c46c LEND : 0x4000c477 LCOUNT : 0x00000000
21:02:36.775 ->
21:02:36.775 -> Backtrace: 0x400d68da:0x3ffd23c0 0x400d74ee:0x3ffd23f0 0x400d9fc2:0x3ffd2410 0x400daa89:0x3ffd24b0 0x400fb56c:0x3ffd24e0 0x400fb7d2:0x3ffd2500 0x40090461:0x3ffd2530
21:02:36.775 ->

Auswertung über den Encoder:
PC: 0x400d68da: l2c_csm_w4_l2cap_disconnect_rsp at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/bt/bluedroid/stack/l2cap/l2c_csm.c line 1052 EXCVADDR: 0x01000048 Decoding stack results 0x400d68da: l2c_csm_w4_l2cap_disconnect_rsp at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/bt/bluedroid/stack/l2cap/l2c_csm.c line 1052 0x400d74ee: process_stream_frame at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/bt/bluedroid/stack/l2cap/l2c_fcr.c line 1214 0x400d9fc2: process_l2cap_cmd at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/bt/bluedroid/stack/l2cap/l2c_main.c line 529 0x400fb56c: btu_start_timer at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/bt/bluedroid/stack/btu/btu_task.c line 436 0x400fb7d2: btu_start_timer_oneshot at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/bt/bluedroid/stack/btu/btu_task.c line 657 0x40090461: vPortTaskWrapper at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/freertos/port.c line 143

Kann damit leider nichts anfangen...