I am trying to compile and send code to a DFRobot ESP32-E V1.0 Firebeetle though I constantly get the exit status 255 error. It only occurs after I install Espressive 3.1.1 board drivers. It doesn't matter what code I try to upload from the examples - same result. Have done a clean IDE install - going crazy. Cant find any relevant info. Any help much appreciated!
Do you get a compile error or an upload error?
Which operating system are you using?
Which version of the IDE?
The easy solution would be to roll back the Espressif board package to the previous version that worked.
Note: it's not a driver; it's a board package.
Thanks for the suggestion - I tried going back to Espressive (board package) 2 and had the same problem. It is Windows 11 and IDE 2.3.4. It says Compile Error: exit status 255 - the error occurs quite quickly after pressing the compile (not upload) button. I can select the board and the port at the top of the screen and get the board ID.
I did a complete re-install of the IDE including manually removing all the libraries and support folders. Nothing obviously has worked so far.
Please enable verbose output during compilation under file → preferences in the IDE and compile a problematic sketch (preferably blink).
Copy the complete output here; use code tags when doing so using the <CODE/> button.
OK - I will do - thanks. (tomorrow as its on my work computer)
This is the code below - just one of the example files.
/* LEDC Fade Arduino Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
// use 12 bit precision for LEDC timer
#define LEDC_TIMER_12_BIT 12
// use 5000 Hz as a LEDC base frequency
#define LEDC_BASE_FREQ 5000
// fade LED PIN (replace with LED_BUILTIN constant for built-in LED)
#define LED_PIN 4
// define starting duty, target duty and maximum fade time
#define LEDC_START_DUTY (0)
#define LEDC_TARGET_DUTY (4095)
#define LEDC_FADE_TIME (3000)
bool fade_ended = false; // status of LED fade
bool fade_in = true;
void ARDUINO_ISR_ATTR LED_FADE_ISR() {
fade_ended = true;
}
void setup() {
// Initialize serial communication at 115200 bits per second:
Serial.begin(115200);
// Setup timer with given frequency, resolution and attach it to a led pin with auto-selected channel
ledcAttach(LED_PIN, LEDC_BASE_FREQ, LEDC_TIMER_12_BIT);
// Setup and start fade on led (duty from 0 to 4095)
ledcFade(LED_PIN, LEDC_START_DUTY, LEDC_TARGET_DUTY, LEDC_FADE_TIME);
Serial.println("LED Fade on started.");
// Wait for fade to end
delay(LEDC_FADE_TIME);
// Setup and start fade off led and use ISR (duty from 4095 to 0)
ledcFadeWithInterrupt(LED_PIN, LEDC_TARGET_DUTY, LEDC_START_DUTY, LEDC_FADE_TIME, LED_FADE_ISR);
Serial.println("LED Fade off started.");
}
void loop() {
// Check if fade_ended flag was set to true in ISR
if (fade_ended) {
Serial.println("LED fade ended");
fade_ended = false;
// Check what fade should be started next
if (fade_in) {
ledcFadeWithInterrupt(LED_PIN, LEDC_START_DUTY, LEDC_TARGET_DUTY, LEDC_FADE_TIME, LED_FADE_ISR);
Serial.println("LED Fade in started.");
fade_in = false;
} else {
ledcFadeWithInterrupt(LED_PIN, LEDC_TARGET_DUTY, LEDC_START_DUTY, LEDC_FADE_TIME, LED_FADE_ISR);
Serial.println("LED Fade out started.");
fade_in = true;
}
}
}
This is the verbose compile error as below:
FQBN: esp32:esp32:dfrobot_firebeetle2_esp32e
Using board 'dfrobot_firebeetle2_esp32e' from platform in folder: C:\Users\jgibbs\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.1
Using core 'esp32' from platform in folder: C:\Users\jgibbs\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.1
cmd /c if exist "C:\\Users\\jgibbs\\AppData\\Local\\Temp\\.arduinoIDE-unsaved2025114-4628-g3oeuz.a7n5e\\LEDCFade\\partitions.csv" COPY /y "C:\\Users\\jgibbs\\AppData\\Local\\Temp\\.arduinoIDE-unsaved2025114-4628-g3oeuz.a7n5e\\LEDCFade\\partitions.csv" "C:\\Users\\jgibbs\\AppData\\Local\\arduino\\sketches\\20F3102E1E29D57EFC487F0602924E80\\partitions.csv"
The command prompt has been disabled by your administrator.
Press any key to continue . . .
exit status 255
Compilation error: exit status 255
I see the verbose error message is saying the command prompt has been disabled by the admin... I guess it is local security issue then?!
I don't know. Are you the local administrator or is the a corporate laptop?
You can search for that error message on the web; solutions are provided but if you're not the administrator I don't think that they will work and you will need to contact the administrator.
I've moved your topic to a more suitable location on the forum as it's not an upload problem.
Thanks so much! Getting the verbose output was the key. Shoulda though about that. I will contact admin. Gotta say however, the non-verbose error message is not helpful and there seems to be no reference for these error messages. Thanks again for your help.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.