what is the solution for Error LoadProhibited esp32 ?

Hello,

I have a problem in the monitor serial. It sends me backs :

PC: 0x40081365: __pinMode at C:\Users\merli\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32\esp32-hal-gpio.c line 115
EXCVADDR: 0xffffffff

Decoding stack results
0x40081365: __pinMode at C:\Users\merli\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32\esp32-hal-gpio.c line 115
0x400d1009: setup() at C:\Working\ARDUINO\Programmes\BROUETTE\BOUETTE-V3\BROUETTE-V3-01/BROUETTE-V3-01.ino line 284
0x400d6083: loopTask(void*) at C:\Users\merli\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32\main.cpp line 14
0x40088fc1: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143

What is the solution please? I have blocked of several days..

We can't see your code

A ESP32 has 2 I/O ports, Port0 and Port1. The ESP32 does NOT have a A0 pin. If using the A:D converters on a ESP32 the pins used should be from port1 ( pins 33+ ).

Your error message does indicate a pin mode error.

You should get a ESP32 WROOM 32 Pinout schemo to figure out which pins you can use on a ESP32. Example, you are using pin6, which is the FLASH SCK pin, at this point you should not use pin6.

Another example of ESP32 GPIO misuse is using pin 34. Pin 34 is on port1, port 1 is inputs only and better suited for A:D input because of the input impedance of the pins on port1.

Another example is where on your ESP32 is pin 52?

And do you have a motor directly connected to the pins of a ESP32?

This, #define SDCARD_CS_PIN 52, is as far as I got with your code, correct those errors, post your corrected code and next.

Find and install the ESP exception decoder into the Arduino IDE. GitHub - me-no-dev/EspExceptionDecoder: Exception Stack Trace Decoder for ESP8266 and ESP32