Config File doesn't upload to the board

I assume that you also have “Fallen”, “Roninv1” and “Darksaber” directories on your SD card.

Btw, it’s kind of weird to have both ENABLE_DEVELOPER_COMMANDS and DISABLE_DIAGNOSTIC_COMMANDS in your config file. The first one enables commands that mostly I use, and the second one disables commands that can be handy to figure out issues such as this one. I suggest removing both those defines, then you can use “pwd”, “dir” and “effects” in the serial monitor to figure out what’s going on.

Nope, still doesn’t work

Did you even read the last post?

Yeah so I have the dirs and I removed the commands

And did you try using the commands I suggested in the serial monitor?
If so, what did they say?

Pwd: “ani-mation” (which is one of the default fonts that it came with and that I removed)
Dir: “System Volume Information 0
common 0
Darksaber 0
FallenV1 0
ProffieOS 0
Ronin 0
Done listing files.”
Effects: “Unmounting SD Card.
Done listing effects.”

Since you don’t have KEEP_SAVEFILES_WHEN_PROGRAMMING in your config file, one of the following has to be true:

  1. The config file you showed us isn’t the one that is getting uploaded.
  2. You’re doing something wrong, and it’s not actually uploading at all.

To check (1), put “#error YES” in your config file and try to upload. If it works, it’s not actually using that file.

Here’s how to check (2)

Yeah, it works for some reason, how do I change it?

What works?
Change what?

The config uploads with the #error YES, how do I make it so that it would read the config that I want.

First thing is to make sure that the CONFIG_FILE define in ProffieOS.ino matches your config file name.

If you’re on windows, make sure that your config file isn’t called “something.h.h”. (Windows tends to hide the second .h, so normally, all you would see is “something” rather than “something.h”. Compare with other files in the same directory.

Then there is the possibility that the ProffieOS.ino you have open in your arduino isn’t the one you think it is. If you have multiple ProffieOS directories, make sure to go click on ProffieOS.ino in the directory you actually want to use.

Finally, make sure that CONFIG_FILE starts with “config/”, and that your config file is in the “config/” subdirectory of your ProffieOS folder.

It uploaded, and now it’s saying “error in font directory”

Try the effects command in the serial monitor to see why it’s says that.
It will also say that if it can’t find a voice pack in the common directory.

here is what it’s giving me:
“Found endmelt files: 1-1 using 2 digits in Darksaber
Found melt files: 1-1 using 2 digits in Darksaber
Found bgnmelt files: 1-1 using 2 digits in Darksaber
Found enddrag files: 1-1 using 2 digits in Darksaber
Found drag files: 1-1 using 2 digits in Darksaber
Found bgndrag files: 1-1 using 2 digits in Darksaber
Found swingh files: 1-4 using 2 digits in subdirs in Darksaber
Found swingl files: 1-4 using 2 digits in subdirs in Darksaber
Found swng files: 1-20 using 2 digits in subdirs in Darksaber
Found lock files: 1-1 using 2 digits in Darksaber
Found out files: 1-4 using 2 digits in subdirs in Darksaber
Found in files: 1-2 using 2 digits in subdirs in Darksaber
Found clsh files: 1-15 using 2 digits in subdirs SOME FILES ARE MISSING! 15 != 16 in Darksaber
Found blst files: 1-6 using 2 digits in subdirs in Darksaber
Found endlock files: 1-2 using 2 digits in Darksaber
Found bgnlock files: 1-1 using 2 digits in Darksaber
Found font files: 1-1 using 2 digits in Darksaber
Found stab files: 1-4 using 2 digits in subdirs in Darksaber
Found force files: 1-8 using 2 digits in subdirs in Darksaber
Found hum files: 1-1 using 2 digits in Darksaber
Done listing effects.”
And now it’s again saying “font directory not found”

This is your answer to why it’s saying “error in font directory”.
Lists the clash files, there seems to be something wrong with them.

For which directory.
What does pwd and dir say?

  1. Yeah there was a clash file that was wrong
  2. pwd says “Darksaber
    common”
    dir says “System Volume Information 0
    global.tmp 52
    global.ini 52
    Darksaber 0
    FallenV1 0
    ProffieOS 0
    Ronin 0”

I uploaded again and it just says “font directory not found”

You have no"common" directory, that’s why it’s saying “font directory not found”.

Thank you so much! I managed to fix the issue. I have been working on this for a month, it made me so happy to hear my saber say “I can bring you in warm, or I can bring you in cold” I can’t thank you guys enough!

2 Likes

That was a ride!