Current Directory is Invalid: Exit Status 255

This could possibly be a dumb question, but I don’t know who else to ask.

I got a Sabertrio on eBay, and before you roll your eyes, it does actually work. Unfortunately, any attempt I’ve made at customizing the code in the config file has led me to an error message that I can’t say I’ve ever seen. Here it is:

C:/Users/ajbur/AppData/Local/Arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/14-2-rel1-xpack/bin/../lib/gcc/arm-none-eabi/14.2.1/../../../../arm-none-eabi/bin/ld.exe:C:\Users\ajbur\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\4.6\variants\STM32L433CC-ProffieboardV2/linker_scripts/STM32L433CC_FLASH.ld:224: warning: memory region `SRAM2' not declared
lto-wrapper.exe: warning: using serial compilation of 6 LTRANS jobs
lto-wrapper.exe: note: see the '-flto' option documentation for more information
C:/Users/ajbur/AppData/Local/Arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/14-2-rel1-xpack/bin/../lib/gcc/arm-none-eabi/14.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: start of section .bss changed by 24
Sketch uses 216368 bytes (82%) of program storage space. Maximum is 262144 bytes.
The current directory is invalid.
Failed uploading: uploading error: exit status 255

I tried updating the firmware, but that hasn’t change the result. In the end I just put the original saber files back on the the SD card and gave up. I REALLY enjoy customizing my sabers, so it would be a downer if I couldn’t do that with this one.

Does anyone know what’s wrong here?

Where is your ProffieOS folder located?
I suggest your Desktop if it’s not there.

I guess I’m confused. I’ve done this so many times before, but for some reason I can’t figure this out.

I have a folder simply called LIGHTSABER FILES. In there I have the ProffieOS-v7.14 folder as well as the SD card file folder for the Sabertrio I just got (called Ben Solo). I open Ben Solo, the “extra” folder, ProffieOS folder, and open ProffieOS.ino in Arduino. So the config file is defined in Arduino as “s3config.h”.

s3config.h is located in “extra/config” in the Ben Solo folder

I’m having some kind of brain fart here because it’s been a little while since I worked with Arduino. What did I do wrong?

That’s really hard to follow to be honest.
Where is LIGHTSABER FILES? Not on your SD card, right?
Inside the ProffieOS folder is a config folder. That’s where you copy your s3config.h file to. Once in there, that’s the file that you make edits to,and save it. That’s where it will upload from because when you open ProffieOS.ino in Arduino, you set that file to be used with
#define CONFIG_FILE "config/s3config.h"

THANK YOU! I’m honestly not sure what I originally did wrong, LOL, but that fixed it. Sorry for being so unclear, I know that was confusing.

Much appreciated :smiley:

1 Like