7.15 Error After Style Creation At Fett263 OS7 Style Library

I’m using ProffieOS 7.15. I uploaded a config and everything worked great. This was the config that came with the saber after I deleted some of the styles and changed the blade length. I then went to the Fett263 OS7 Style Library and made 1 style to see how this would work. After creating the new style, I added it to the same config that I previously uploaded successfully. I verified and came up with a bunch of errors. I then deleted the descriptors in that new style up until the " Style Ptr" portion, and ran verify again - still a bunch of errors. I verified that the font and track names were spelled accurately, including the proper capitalization. I am attaching links to my config and the error messages. The new style is the very first one - Rogue_Vader. Any thoughts on what is causing this error?

Your error isn’t from a style. It looks like an Arduino issue.

Do you have “},” (close bracket and comma) at the end of each of your resets ? Please “undelete” the descriptor, that is just a comment that will be ignored by the compiler and will not cause compile problems but might be able to tell us how to help you.

Your first preset is missing a closing brace }

Thank you for the response. When you say it’s an Arduino issue, what does that mean? I ran it the first time I uploaded, and then I had to run it again a second time for another upload. I had posted a question previously about uploading to this same saber and you indicated that I shouldn’t have to run Arduino more than once. Since it appears that this may be the issue, any idea what would be causing the problem with Arduino, and how to correct that issue? Or, just one of those cases where I will have to run Arduino every single time I want to upload a new style?

Thank you for catching that. This style was copied directly from the Fett263 library, so I’m wondering why that was missing?

CORRECTION - I meant Zadig, not Arduino

I just ran Zadig - it was not showing the STM32 Bootloader, even though the Bootloader shows in Arduino. I reflashed the board and am installing the WinUSB driver. Will try uploading config again (after adding in the missing}) and see what happens. Will post back tomorrow with the results. Still wondering why, though, I have to keep reflashing the board and running zadig every t time i want to upload?

You only have to install drivers once on your computer so it knows how to talk to the board so can upload.
Unless something else interferes with those drivers, it should be a one-time ordeal.
Uploading changes and new config files is just clicking upload in Arduino.

The styles you copy from the style library go inside a preset.
What you copy is only the style, it doesn’t include the beginning and ending of the actual preset ( from the opening brace { , font, track, style(s), name, and closing brace }.

Update: After running Zadig and then reflashing the board, I was able to successfully upload the config. I have reflashed this board 3-4 times and run zadig the same amount while uploading configs to this particular board. It appears that I have to run zadig and reflash the board every time I want to upload a new config. In a previous post, it turned out there was a driver that was causing issues and I deleted that driver. Is there anything else I can try, or just accept that something about my PC setup requires me to run zadig and reflash my board every time I want to upload a new config to this particular board? Thanks for your help and ideas!!

As the others pointed out and I missed, you had a syntax error in your config. That caused the error.

Zadig is outdated, I recommend using the DFU utility, see Step 2 on this page

Thank you for the link to the DFU Utility. I downloaded and installed it, but when I tried to then upload my config, it didn’t work. I then ran Zadig (again, for like the 6th time), then reflashed my board, and the config uploaded successfully, so apparently, there is some issue with my PC that requires me to run zadig and reflash my board every time I want to upload a config. Sucks, but I’ll live with it.

Here is my next issue. This is the first time I have used the Fett262 OS Library to build styles…prior to this, I used the Workbench to add/configure/remove styles on my other sabers. If I’m reading the instructions correctly, if you set the time at “0” for the blade in and out settings, it will use info from the font to time the blade properly going in and out. I have only done 2 styles so far, but the “out” timiing of the blades don’t match the font speed - not even close (the blades come out very slowly). The retraction for both match perfectly. For those 2 styles, I’m using a kyberphonic font (ANH Graflex V2) and KSith’s Rogue Vader font. Am I mis-reading the instructions for that, or is there something thaty needs to be done to get the style timing to mastch the font timing?

Yes, 0 will use WavLen function. This means out is timed by out.wav and in is timed by in.wav, if IgnitionTime and RetractionTime are set to 0.

Check the actual sound files in the respective fonts to see how long the files are. Sometimes the files have a long “tail off”, the WavLen uses length of the file.

Another possible factor is SD speed. If the animations appear laggy it could be a slow or corrupted SD. See the requirements and instructions for running ‘sd test’ in the NOTICE at the top of my library.

Just tested - My SD card - which is brand new, BTW, and says that it is a SanDisk Ultra card - did not meet either spec, so i will purchase a new one. Do you have any recommendations for what to get, or is the brand I have normally sufficient, and I just happened to get a dud?

Also, it appears now that I don’t have to necessarily run Zadig every time - the STM32 Bootloader showed up in Zadig without installing the USB driver - I did, however, have to reflash my card, which then allowed the upload to happen. Any idea why I would need to keep reflashing the board?

Really appreciate the help and guidance you are giving me!!!

It’s been a while since I’ve bought an SD. Not sure which are recommended nowadays. Probably best to ask in some of the saber groups or go to a trusted vendor for Saber parts.

The SD card performance issue - is this something related just to OS 7? Or is this also an issue with OS 6.*?

ProffieOS has always needed 1200kbps and 12 simulatenous audio streams. Poor performing SD cards started showing up in the marketplace shortly after the pandemic as manufacturers cut corners to restock. So there’s just a glut of subpar cards out there unfortunately, even among the once recommended name brands.

Ahh - I was wondering about that. I ran across the same issue when I was trying to buy a new SSD for my PC around that time, and several local vendors said the same thing about manufacturing issues and cost-cutting/subpar materials with memory devices. OK, thank you for the input…will post back with the results after i get a new micro SD card and try it out. Thank you!

I purchased a new SanDisk 64GB MicroSD card. I formatted it on my PC, copied all of the contents from the old card to the new card, and placed it in the card slot on the board. “Font Directory Not Found” and “SD Card Not Found” immediately played. I then uploaded the config - got a message that it loaded. Same messages after uploading config, and when I run the SDTEST in Arduino, it does not detect the card. Since the card and everything on it is detectable by my PC, I’m wondering - Is there some special formatting or pairing of the SD card with the board that has to be done to get Propffie to “see” my SD card?

There’s been some discussions on cards over 32GB, I haven’t used any that large myself. You can see here and ask how/if people get them to work.