# Errors when adding a Greyscale font

**URL:** <https://crucible.hubbe.net/t/errors-when-adding-a-greyscale-font/5803>\
**Category:** ProffieOS\
**Created:** [September 7, 2024, 4:49pm UTC](https://crucible.hubbe.net/t/errors-when-adding-a-greyscale-font/5803 "2024-09-07T16:49:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![SlothJohnson](https://crucible.hubbe.net/letter_avatar_proxy/v4/letter/s/7ab992/32.png) [@SlothJohnson](https://crucible.hubbe.net/u/SlothJohnson)\
**Post date:** [September 7, 2024, 4:49pm UTC](https://crucible.hubbe.net/t/errors-when-adding-a-greyscale-font/5803/1 "2024-09-07T16:49:42Z")

</div>

Here is my config: [Proffie Config - Pastebin.com](https://pastebin.com/646psgiE)

Here is my error,

In file included from F:\extra\ProffieOS\ProffieOS.ino:571:  
F:\extra\ProffieOS\config\s3config.h:626:10: error: cannot convert ‘const char\*’ to ‘StyleFactory\*’ in initialization  
626 | \>\>(), “null”}  
| ^ ~~~~~  
| |  
| const char\*

exit status 1

Compilation error: cannot convert ‘const char\*’ to ‘StyleFactory\*’ in initialization

---

<div class="post-metadata">

**Author:** ![Fett263](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/fett263/32/214_2.png) [@Fett263](https://crucible.hubbe.net/u/Fett263)\
**Post date:** [September 7, 2024, 4:59pm UTC](https://crucible.hubbe.net/t/errors-when-adding-a-greyscale-font/5803/2 "2024-09-07T16:59:26Z")

</div>

You have 2 blades, so you need 2 styles in each preset. At least one preset is missing the 2nd style.

---

<div class="post-metadata">

**Author:** ![SlothJohnson](https://crucible.hubbe.net/letter_avatar_proxy/v4/letter/s/7ab992/32.png) [@SlothJohnson](https://crucible.hubbe.net/u/SlothJohnson)\
**Post date:** [September 7, 2024, 7:45pm UTC](https://crucible.hubbe.net/t/errors-when-adding-a-greyscale-font/5803/3 "2024-09-07T19:45:51Z")

</div>

I fixed that part and it compiled correct, now im getting an issue while uploading to the saber. NOTE: this whole file is structured how it was before I added the greyscale font.

Here is the error: c:/users/joey/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/…/lib/gcc/arm-none-eabi/9.3.1/…/…/…/…/arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 16 bytes  
c:/users/joey/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/…/lib/gcc/arm-none-eabi/9.3.1/…/…/…/…/arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 16 bytes  
c:/users/joey/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/…/lib/gcc/arm-none-eabi/9.3.1/…/…/…/…/arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 16 bytes  
c:/users/joey/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/…/lib/gcc/arm-none-eabi/9.3.1/…/…/…/…/arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 16 bytes  
c:/users/joey/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/…/lib/gcc/arm-none-eabi/9.3.1/…/…/…/…/arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 16 bytes  
Sketch uses 211176 bytes (85%) of program storage space. Maximum is 245760 bytes.  
The current directory is invalid.  
Failed uploading: uploading error: exit status 255

Here is the updated config: [Proffie Config - Pastebin.com](https://pastebin.com/646psgiE)

---

<div class="post-metadata">

**Author:** ![ryryog25](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/ryryog25/32/1812_2.png) [@ryryog25](https://crucible.hubbe.net/u/ryryog25)\
**Post date:** [September 7, 2024, 7:46pm UTC](https://crucible.hubbe.net/t/errors-when-adding-a-greyscale-font/5803/4 "2024-09-07T19:46:51Z")

</div>

> The current directory is invalid.

This isn’t a config file issue. Your ProffieOS folder is somewhere it can’t be.  
Examples might be on an SD card, still inside a `.zip` that wasn’t extracted, etc.

---

<div class="post-metadata">

**Author:** ![SlothJohnson](https://crucible.hubbe.net/letter_avatar_proxy/v4/letter/s/7ab992/32.png) [@SlothJohnson](https://crucible.hubbe.net/u/SlothJohnson)\
**Post date:** [September 7, 2024, 7:49pm UTC](https://crucible.hubbe.net/t/errors-when-adding-a-greyscale-font/5803/5 "2024-09-07T19:49:04Z")

</div>

Nothing has changed structure wise from the previous upload that worked, I just added a font. I looked and nothing is zipped. Is there a way someone who knows this better can take a look?

---

<div class="post-metadata">

**Author:** ![ryryog25](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/ryryog25/32/1812_2.png) [@ryryog25](https://crucible.hubbe.net/u/ryryog25)\
**Post date:** [September 7, 2024, 7:50pm UTC](https://crucible.hubbe.net/t/errors-when-adding-a-greyscale-font/5803/6 "2024-09-07T19:50:14Z")

</div>

> [@SlothJohnson](#):
>
> F:\extra\ProffieOS.…

Try moving the ProffieOS folder off the SD card and onto your computer’s main drive. Close Arduino before you do that, and reopen it via opening the ProffieOS.ino file in the new location.

---

<div class="post-metadata">

**Author:** ![SlothJohnson](https://crucible.hubbe.net/letter_avatar_proxy/v4/letter/s/7ab992/32.png) [@SlothJohnson](https://crucible.hubbe.net/u/SlothJohnson)\
**Post date:** [September 7, 2024, 7:56pm UTC](https://crucible.hubbe.net/t/errors-when-adding-a-greyscale-font/5803/7 "2024-09-07T19:56:50Z")

</div>

Ok uploading the new config from the same folder now located on the desktop seems to have did the trick, that was weird.

---

<div class="post-metadata">

**Author:** ![A\_Rogue\_Child](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/a_rogue_child/32/4449_2.png) [@A\_Rogue\_Child](https://crucible.hubbe.net/u/A_Rogue_Child)\
**Post date:** [September 8, 2024, 1:12am UTC](https://crucible.hubbe.net/t/errors-when-adding-a-greyscale-font/5803/8 "2024-09-08T01:12:58Z")

</div>

If you are leaving the SD Card mounted in the board while attempting a flash and your OS is based out of said card you loose the connection when the card disconnects during the flash. Unless you have the SD Card out of the board and connected separately this will happen. Best-Practice is to always have your OS based off of your main device. \*That and always keep a working backup config copy.

---

<div class="post-metadata">

**Author:** ![profezzorn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/profezzorn/32/8_2.png) [@profezzorn](https://crucible.hubbe.net/u/profezzorn)\
**Post date:** [September 8, 2024, 2:50am UTC](https://crucible.hubbe.net/t/errors-when-adding-a-greyscale-font/5803/9 "2024-09-08T02:50:19Z")

</div>

ProffieOS 8 will improve upon this by making SD card access something that can be enabled/disabled at runtime using the serial monitor, the workbench or the settings menu on the hilt itself.
