Ignition and retraction issues with proffie saber

I have a 89 sabers Anakin Ep 3 neopixel lightsaber with a proffie board (with 2 buttons, a power (ignition/retraction) button and an aux button). I recently tried to add new fonts / blade styles to my saber. After I flashed the board with the new config file, I am experiencing 2 major issues:

  1. When I hit the aux button to change presets, the saber sometimes ignites automatically without me separately pressing the power/ignite button (i.e saber ignites automatically upon switching presets); and

  2. Sometimes, when I hit the power off/retraction button, the blade starts to power off but before its fully powered down, it will then automatically power back on (i.e. it won’t turn off). It takes me a few times pressing the power off button for the blade to retract

Has anyone else run into this issue and figured out the solution?

Its not a hardware issue as I had no ignition/retraction issues right before I changed the config, and its not a battery charging issue, as I fully charged the battery but the issues still occur.

Appreciate any help. Thanks in advance

Hook up to Serial Monitor to see whats triggering.
Arduino > Tools > Serial Monitor.
Post the results using copy and paste (no screenshots).

Thanks so much Fett263. Below is the serial monitor message:

c:/users/andre/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\andre\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/andre/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/andre/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/andre/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/andre/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/andre/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 236704 bytes (90%) of program storage space. Maximum is 262144 bytes.
1
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Opening DFU capable USB device...
ID 0483:df11
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 2048
DfuSe interface name: "Internal Flash  "
Downloading to address = 0x08000000, size = 236712

Download	[                         ]   0%            0 bytes
Download	[                         ]   1%         4096 bytes
Download	[                         ]   2%         6144 bytes
Download	[=                        ]   4%        10240 bytes
Download	[=                        ]   6%        14336 bytes
Download	[=                        ]   7%        18432 bytes
Download	[==                       ]   8%        20480 bytes
Download	[==                       ]   9%        22528 bytes
Download	[==                       ]  11%        26624 bytes
Download	[===                      ]  12%        28672 bytes
Download	[===                      ]  13%        32768 bytes
Download	[===                      ]  15%        36864 bytes
Download	[====                     ]  16%        38912 bytes
Download	[====                     ]  17%        40960 bytes
Download	[====                     ]  19%        45056 bytes
Download	[====                     ]  19%        47104 bytes
Download	[=====                    ]  20%        49152 bytes
Download	[=====                    ]  21%        51200 bytes
Download	[=====                    ]  23%        55296 bytes
Download	[======                   ]  24%        57344 bytes
Download	[======                   ]  25%        59392 bytes
Download	[======                   ]  26%        63488 bytes
Download	[=======                  ]  28%        67584 bytes
Download	[=======                  ]  29%        69632 bytes
Download	[=======                  ]  31%        73728 bytes
Download	[========                 ]  32%        75776 bytes
Download	[========                 ]  32%        77824 bytes
Download	[========                 ]  34%        81920 bytes
Download	[=========                ]  36%        86016 bytes
Download	[=========                ]  37%        88064 bytes
Download	[=========                ]  38%        92160 bytes
Download	[==========               ]  40%        96256 bytes
Download	[==========               ]  42%       100352 bytes
Download	[===========              ]  44%       104448 bytes
Download	[===========              ]  44%       106496 bytes
Download	[===========              ]  46%       110592 bytes
Download	[============             ]  48%       114688 bytes
Download	[============             ]  50%       118784 bytes
Download	[============             ]  51%       122880 bytes
Download	[=============            ]  52%       124928 bytes
Download	[=============            ]  53%       126976 bytes
Download	[=============            ]  54%       129024 bytes
Download	[==============           ]  56%       133120 bytes
Download	[==============           ]  57%       137216 bytes
Download	[==============           ]  59%       141312 bytes
Download	[===============          ]  60%       143360 bytes
Download	[===============          ]  61%       145408 bytes
Download	[===============          ]  62%       147456 bytes
Download	[================         ]  64%       151552 bytes
Download	[================         ]  65%       155648 bytes
Download	[================         ]  67%       159744 bytes
Download	[=================        ]  68%       161792 bytes
Download	[=================        ]  69%       163840 bytes
Download	[=================        ]  70%       165888 bytes
Download	[=================        ]  71%       169984 bytes
Download	[==================       ]  72%       172032 bytes
Download	[==================       ]  73%       174080 bytes
Download	[==================       ]  75%       178176 bytes
Download	[===================      ]  76%       180224 bytes
Download	[===================      ]  77%       182272 bytes
Download	[===================      ]  78%       186368 bytes
Download	[===================      ]  79%       188416 bytes
Download	[====================     ]  80%       190464 bytes
Download	[====================     ]  81%       192512 bytes
Download	[====================     ]  83%       196608 bytes
Download	[=====================    ]  84%       200704 bytes
Download	[=====================    ]  86%       204800 bytes
Download	[======================   ]  88%       208896 bytes
Download	[======================   ]  89%       210944 bytes
Download	[======================   ]  90%       215040 bytes
Download	[=======================  ]  92%       219136 bytes
Download	[=======================  ]  94%       223232 bytes
Download	[======================== ]  96%       227328 bytes
Download	[======================== ]  97%       231424 bytes
Download	[======================== ]  98%       233472 bytes
Download	[=========================] 100%       236712 bytes
Download done.
File downloaded successfully
Transitioning to dfuMANIFEST state

That’s not the Serial Monitor. That’s your upload.
Hook your saber to the computer. In Arduino choose Tools > Serial Monitor and repeat what is causing the problems. Then copy and paste what the Serial Monitor says is happening.

Unfortunately, based on where the micro-USB chord slot is located on my board chassis, I can’t insert into the saber and while the micro-USB chord is attached, and, without inserting the board chassis into the saber, it’s difficult to tell if the board / saber is malfunctioning. But I got the message below when I used the font that has been triggering an automatic ignition when I switch to that preset/font with the aux button (Kyberphonic ANH Training):

Booster off.
EVENT: Aux-Pressed#1 millis=50716
EVENT: Aux-Pressed millis=50716
EVENT: Aux-Released#1 millis=50850
EVENT: Aux-Released millis=50850
EVENT: Aux-Shortclick#1 millis=50850
EVENT: Aux-Shortclick millis=50850
Failed to open: presets.ini
Failed to open: presets.tmp
Style RAM = 828
Scanning sound font: ANHV2 done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16

We’d need to see the output when something wrong is happening, that just shows you pressing a button.

I have this exact same issue on a graflex 89saber. I’ve also lost the ability to adjust the volume. It almost never happens when the chassis/board is outside the hilt, and just like OP I can’t attach a microusb while it’s in the hilt due to the design of the hilt.

Any ideas?

Doesn’t sound like the same issue.
Start a new thread.

The only new symptom is the lack of volume control, but OP might have had the same issue without realizing it.

Aside from that I’m having the same random ignition while changing presets, and the issue of being unable to reliable retract blades.

My issue also started when I tried to flash a a new config to the board, and persisted after flashing the 89sabers default config, and even after trying older ProffieOS versions (6.7, 6.3) with the default config.

I can still start a new thread if that makes sense.

Well, now I don’t know. With this additional information, it does seem a lot more similar.

Do any of you have the original config and then the new one?

I tried putting the original config file back on, but there was no change in the behavior(aside from styles going back to stock). There are other variables at play(such as the version of ProffieOS and compiler output variations) that I can’t account for, as I didn’t take a binary dump of the saber’s flash before messing with it.

My factory config is 89BLUE.h from this source:
https://drive.google.com/drive/folders/1Nogu3TXfujp7XJhEE5uRcdgNhhxqZ3lK

My current personal config is this (was playing with CLASH_THRESHOLD to see if there was a difference, nope):

The “Vortex” from factory and “SMoon” from my personal config seem more prone to the issue ignite/retraction issues than the other styles, but I didn’t take exact counts per style.

Try removing the FETT263_STAB_ON and FETT263_THRUST_ON defines and see if it corrects. My guess is your speaker is triggering the Stab/Thrust detection due to loud in.wav sounds. That’s why it happens more on different fonts.
If you hook to Serial Monitor I expect you’ll see the same thing in the output.

2 Likes

I believe this has solved my issue. Also probably why I had trouble recreating it with the board outside the hilt, not enough soundwaves bouncing back at the board.

Thank you for your support, ya’ll are pretty epic.

I guess the next riddle is what was the actual config+proffieOS on the 89saber when OP and I got got ours. I’ll get in touch with CCSabers and see what they think of this, and update thread with findings for future visitors to this thread.

Following up, the volume control is working, but it’s different now. Instead of pressing buttons to increase or decrease volume, you twist the saber. So I think the root cause is that the saber shipped with a really old version of ProffieOS, and trying to use the factory config with any recent OS will not restore the saber to factory configuration.

So for anyone trying to update their new 89saber from CCSabers, update these defines when flashing ProffieOS 6.8:

#define CLASH_THRESHOLD_G 3.5
// #define FETT263_STAB_ON_NO_BM                                              
// #define FETT263_STAB_ON          
// #define FETT263_THRUST_ON
// #define FETT263_THRUST_OFF

That’ll get you up and running minus those features, then tweak/tune from there.