Hello, I am completely new to customizing a proffie board,
could somebody help me tell me what is wrong with my config?
Thank you for your kindly support in advance!
Error on arduino: Compilation error: too many initializers for ‘Preset’
#ifdef CONFIG_TOP#include “proffieboard_config.h”#define NUM_BLADES 1#defi - Pastebin.com
Your NUM_BLADES
is set to 1
, but you have two blades configured in your blades array and two bladestyles in each preset.
Depending on your desired result, you’ll want to either remove the extra blade and bladestyles or increase NUM_BLADES
to 2 to reflect how your saber is currently setup.
Increasing NUM_BLADES
should be pretty straightforward, and is pretty easy.
If you’re trying to remove the extra blade you have to remove the WS281XPtr<...>()
from the Blade array at the bottom and each extra/second StylePtr<...>()
from each preset.
These POD pages should help:
You should also consider upgrading to the new WS281XPtr
interface instead of the old WS2811
interface:
Let me know if you have any questions on that, and pay close attention to your ,
and }
!
Also worth mentioning, in order to avoid such mismatches in the future, you might be interested in ProffieConfig, which handles all that formatting as well as the upload process with an easy to use interface.
1 Like
Change NUM_BLADES from 1 to 2
#define NUM_BLADES 2
Your BladeConfig has 2 blades in it and your presets each have 2 styles, so NUM_BLADES needs to match.
BladeConfig blades[] = {
{ 0,WS2811BladePtr<130, WS2811_ACTUALLY_800kHz | WS2811_GRB, bladePin, PowerPINS<bladePowerPin2, bladePowerPin3>>(),
WS2811BladePtr<5, WS2811_ACTUALLY_800kHz | WS2811_GRB, blade3Pin, PowerPINS<bladePowerPin6>>(),
CONFIGARRAY(presets) },
};
#endif
Thank you for your support!
I have changed the “NUM_BLADES” to 2 and has the error as below.
Compilation error: cannot convert ‘const char*’ to ‘StyleFactory*’ in initialization
I have seen this error before and it is the reason I changed “NUM_BLADES” from 2 to 1 to solve it.
What seems to be the problem at this point?
Your Skoll preset only has one StylePtr<>()
, so the name of the preset, in your case "0"
is trying to be converted to a style, obviously unsucessfully.
(A “const char*” is a “string,” basically just text)
You need to add another style to that preset.
I got the point!
I have a single blade lightsaber but my configs are for a 2 blades,
the config for the fonts require 2 StylePty<>().
I am sorry to mention I have added configs for “Skoll” to the original config.
I have added the StylePty<>() but has another error.
Compilation error: expected ‘}’ before string constant
#ifdef CONFIG_TOP#include “proffieboard_config.h”#define NUM_BLADES 2#defi - Pastebin.com
Is there something wrong with the place of }?
I am sorry for the mess.
You’re missing a comma between the end of the style and the “name” argument at the end of the Skoll preset
00,5000>>() "0"},
1 Like
By everyone’s support, I managed to successfully verify the config on arduino!
Thank you all!
I have connected the board on my computer, and tried to upload it, the error message of below came out.
Failed uploading: uploading error: exit status 1
Is this a situation where I have to use “Zadig”?
I am sorry that I don’t have any knowledge about it.
The purpose of the Zadig tool is to install the drivers necessary to connect to the proffieboard for upload. Without those drivers you will not be able to upload to the board.
However, using Zadig is more complicated and outdated, there is now proffie-dfu-setup which automatically installs the drivers you need.
Scroll down to “OS Specific Setup” and underneath Windows you’ll find the download link for that tool. Simply run it and it will do the driver installation, then you should be able to upload assuming you have the port correctly selected in the Arduino Tools menu.
Thanks for the reply, am I doing it right?
I have run "installer_x64"inside C:\Program Files (x86)\proffie-dfu-setup\usb_driver
uploaded the config but keeps sending the error message
Failed uploading: uploading error: exit status 1
I know I’m just one step to completing it 
You should be running the executable itself… not anything inside of it.
Also, Giving the very last part of the error isn’t useful. “Exit Status 1” means, quite literally: “It failed” and nothing more. In the future, could you please provide the full error message? (Use the copy error messages button in Arduino) 
I am sorry, I will post the whole part of the error.
Do I have to install the installer on the proffie board?
I feel dumb that I have saved it in my computer 
Sorry for the bad understanding…
c:/users/yamato takeuchi/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:C:\Users\Yamato Takeuchi\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\variants\STM32L433CC-ProffieboardV2/linker_scripts/STM32L433CC_FLASH.ld:224: warning: memory region SRAM2' not declared c:/users/yamato takeuchi/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 8 bytes c:/users/yamato takeuchi/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 8 bytes c:/users/yamato takeuchi/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 8 bytes c:/users/yamato takeuchi/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 8 bytes c:/users/yamato takeuchi/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 8 bytes Sketch uses 191704 bytes (73%) of program storage space. Maximum is 262144 bytes. 'C:\Users\Yamato' �́A�����R�}���h�܂��͊O���R�}���h�A ����\�ȃv���O�����܂��̓o�b�
�t�@�C���Ƃ��ĔF������Ă��܂���B
Failed uploading: uploading error: exit status 1
No, you’re right it should be run on your computer. That doesn’t seem to be the problem though.
All the warning:
s can be ignored, they’re just warnings and are normal.
I’m not sure if something happened when you pasted this here or if something is just having a stroke, but this to me looks like the beginning of the “is not recognized as an internal or external command, operable program or batch file.” error, and it seems to be because your username has a space in it, which will cause issues with Arduino.
To get around this you should create a new user account without any spaces in the name.
Fwiw ProffieConfig will work just fine with spaces in the username, it’s just Arduino that won’t.
Thank you guys! My username was the last problem 
I owe you too much for helping me out!
I will be customizing my saber all day tomorrow…
May the force be with you all!
1 Like