I know I know. But…it’s a difference since OS5.x
Not sure if you’re joking or serious, there’s a TON of changes between OS5 and OS6 why would you think reading CLASH_THRESHOLD_G as a variable would cause SD card issues?
I retract…I’m not even in the right thread. I was referring to the increased sensitivity. TOO much multitasking. sorry. ZERO to do with SD card.
OK, although not sure how that would apply to sensitivity either, the DYNAMIC_CLASH_THRESHOLD literally just let’s you use a variable for CLASH_THRESHOLD_G from your global.ini file, that’s it.
My problem is the same with both OS6 and OS5. I am using 5.9 at the moment on Arduino 1.8.19 with arduino-proffieboard 2.2, Windows 10 Pro 21H2. All my boards are from electronics123 and using this SD: https://www.amazon.com/gp/product/B013P27MDW
In my case, I do not think this is a software issue. This board fails to upload on Arduino without a SD card. It fails to boot about 4 out 5 times. About 1 out 10 times it fails to detect the the SD card. Those are all rough numbers, not exact. Once it boots correctly, everything works without issues. This board is in my 6 year old daughter’s saber, so until I am able assemble a replacement, I am not going to further diagnose the issue. She power cycles it, via the push button kill switch, until it boots correctly. It is configure to say “ready” on boot.
I have two other boards with nearly identical configurations which work fine every time. The only difference is the order of the first two presets is swapped. Loading different or even simpler presets on the flaky board does not seem to help.
At the moment, I can live with the issues, but I hope this help you.
I realized that I was not clear about what I mean by fails to boot: When it fails nothing works. The PC does not detected it when plug in the USB port. On battery, it act dead, nothing works. I check that the board receives power from the battery, and 3.3V looks good.
Count me in, same issue happening on a brand new proffieboard. Purchased in a KR scavenger kit in march. Not a software issue, same symptoms as seen in this thread, intermittent font directory/sd card not found. Saber works normally aside from this.
I’m having the same issue too on 2 new KR Sabers boards . I’ve tried several different SD cards, OS6.7 plus older version of os6 and os5.9 uploaded from windows and Mac, different configs that are running smoothly on other Sabers.
For what it’s worth, I’ve got a KR sabers proffie, purchased in late 2021, and I’ve used all kinds of different configs, mass storage, etc. using up to OS 6.5 so far.
I’ve used fett’s prop with all the edit mode defines and all that nonsense, as well as sa22c’s config with a prop that had 5.9 defines only and new defines from 6 (so flashed with only old defines and flashed with new defines as well)
Pretty much all kinds of things as far as the config goes.
Mine doesn’t have a recharge port, and only using 2 mosfets for the neopixel blade (though I am using a third for an illuminated switch) it’s also got an OLED… that’s pretty much it that’s “special”
I have not once experienced this issue, and I screw around with my saber pretty regularly.
So it definitely seems like it’s a hardware issue that’s being exacerbated by software, as fett suggested… at least from the info so far.
I went back to a simple OS5.9 setup now. My proffie is working perfectly now. If I switch back to 6.7 the problem is back instantly.
5.9 Setup:
#ifdef CONFIG_TOP
#include "proffieboard_v2_config.h"
#define CONFIG_STARTUP_DELAY 500
#define NUM_BLADES 5
#define NUM_BUTTONS 2
#define VOLUME 1000
const unsigned int maxLedsPerStrip = 144;
#define CLASH_THRESHOLD_G 3.0
#define ENABLE_AUDIO
#define ENABLE_MOTION
#define ENABLE_WS2811
#define ENABLE_SD
#define ENABLE_SSD1306
#define SHARED_POWER_PINS
#define FETT263_TWIST_OFF
//#define MOTION_TIMEOUT 60 * 15 * 1000
#define COLOR_CHANGE_DIRECT
//#define DISABLE_DIAGNOSTIC_COMMANDS
#define ENABLE_SERIAL
//#define IDLE_OFF_TIME 60 * 10 * 1000
#endif
#ifdef CONFIG_PROP
#include "../props/saber_fett263_buttons.h"
#endif
#ifdef CONFIG_PRESETS
Preset presets[] = {
{ "hand", "hand/font/font.wav",
StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Rgb<95,0,210>>,RotateColorsX<Variation,Rgb<48,0,105>>>,LockupTrL<Layers<AlphaL<AudioFlickerL<White>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,AlphaL<White,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat<TrInstant,White,TrFade<400>>,TrConcat<TrInstant,White,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL<Strobe<White,AudioFlicker<White,Blue>,50,1>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,ResponsiveStabL<Red,TrWipeIn<600>,TrWipe<600>>,ResponsiveBlastL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>,Int<400>>,ResponsiveClashL<White,TrInstant,TrFade<400>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>,LockupTrL<AlphaL<BrownNoiseFlickerL<White,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Mix<TwistAngle<>,Red,Orange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipe<300>,TrWipeIn<500>,Black>>>(),
StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Rgb<180,130,0>>,RotateColorsX<Variation,Rgb<90,65,0>>> ,BlastL<White>,InOutTrL<TrInstant,TrFade<300>,Pulsing<RotateColorsX<Variation,Rgb<180,130,0>>,RotateColorsX<Variation,Rgb<7,5,0>>,3000>>>>(),
StyleStrobePtr<Blue, Black, 15, 300, 800>(),
StyleNormalPtr<Pulsing<Red, Rgb<0,0,0>, 6000>, Red, 300, 800, Black>(),
StylePtr<Blue>(),
"emporers girl"},
{ "light", "light/tracks/The_Force.wav",
StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Rgb<95,0,210>>,RotateColorsX<Variation,Rgb<48,0,105>>>,LockupTrL<Layers<AlphaL<AudioFlickerL<White>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,AlphaL<White,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat<TrInstant,White,TrFade<400>>,TrConcat<TrInstant,White,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL<Strobe<White,AudioFlicker<White,Blue>,50,1>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,ResponsiveStabL<Red,TrWipeIn<600>,TrWipe<600>>,ResponsiveBlastL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>,Int<400>>,ResponsiveClashL<White,TrInstant,TrFade<400>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>,LockupTrL<AlphaL<BrownNoiseFlickerL<White,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Mix<TwistAngle<>,Red,Orange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipe<300>,TrWipeIn<500>,Black>>>(),
StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Rgb<180,130,0>>,RotateColorsX<Variation,Rgb<90,65,0>>> ,BlastL<White>,InOutTrL<TrInstant,TrFade<300>,Pulsing<RotateColorsX<Variation,Rgb<180,130,0>>,RotateColorsX<Variation,Rgb<7,5,0>>,3000>>>>(),
StyleStrobePtr<Blue, Black, 15, 300, 800>(),
StyleNormalPtr<Pulsing<Red, Rgb<0,0,0>, 6000>, Red, 300, 800, Black>(),
StylePtr<Blue>(),
"mara jade"},
{ "dark", "dark/tracks/The_Force.wav",
StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Red>,RotateColorsX<Variation,Rgb<128,0,0>>>,LockupTrL<Layers<AlphaL<AudioFlickerL<White>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,AlphaL<White,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat<TrInstant,White,TrFade<400>>,TrConcat<TrInstant,White,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL<Strobe<White,AudioFlicker<White,Blue>,50,1>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,ResponsiveStabL<Orange,TrWipeIn<600>,TrWipe<600>>,ResponsiveBlastL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>,Int<400>>,ResponsiveClashL<White,TrInstant,TrFade<400>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>,LockupTrL<AlphaL<BrownNoiseFlickerL<White,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Mix<TwistAngle<>,Rgb<255,200,0>,DarkOrange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipe<300>,TrWipeIn<500>,Black>>>(),
StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Red>,RotateColorsX<Variation,Rgb<128,0,0>>> ,BlastL<White>,InOutTrL<TrInstant,TrFade<300>,Pulsing<RotateColorsX<Variation,Red>,RotateColorsX<Variation,Rgb<10,0,0>>,3000>>>>(),
StyleStrobePtr<Blue, Black, 15, 300, 800>(),
StyleNormalPtr<Pulsing<Red, Rgb<0,0,0>, 6000>, Red, 300, 800, Black>(),
StylePtr<Blue>(),
"hand"}
};
BladeConfig blades[] = {
{ 0, WS281XBladePtr<144, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
WS281XBladePtr<1, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin4> >(), //Kristall
// WS281XBladePtr<2, blade3Pin, Color8::GRB, PowerPINS<bladePowerPin5> >(), //funktion
SubBlade(0, 0, WS281XBladePtr<2, blade3Pin, Color8::GRB, PowerPINS<bladePowerPin5> >()),
SubBlade(1, 1, NULL),
SimpleBladePtr<CH3LED, NoLED, NoLED, NoLED, bladePowerPin6, -1, -1, -1>(), //Bluetooth
CONFIGARRAY(presets) },
};
#endif
#ifdef CONFIG_BUTTONS
Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
Button AuxButton(BUTTON_AUX, auxPin, "aux");
#endif
I use exactly the same “main config” without any specials or OS6 specials. Only chnage in my point of view are the newer styles. I changed nothing else…
The matching 6.7 setup: ```#ifdef CONFIG_TOP#include "proffieboard_v2_config.h"#define CONFIG_STAR - Pastebin.com
So the OS5 config above has no issue but this exact OS6 config does? What exactly happens when you upload that config just to be sure it’s the same issue.
Just FYI you’re missing the common folder in your OS6 config, I doubt that’s the cause but it is required for my prop in OS6 per the top of the .h and set up instructions here:
#ifdef CONFIG_TOP
#include "proffieboard_v2_config.h"
#define NUM_BLADES 3
#define NUM_BUTTONS 2
#define VOLUME 1700
const unsigned int maxLedsPerStrip = 146;
#define CLASH_THRESHOLD_G 1.5
#define ENABLE_AUDIO
#define ENABLE_MOTION
#define ENABLE_WS2811
#define ENABLE_SD
#define NO_REPEAT_RANDOM
#define FETT263_TWIST_ON
#define FETT263_TWIST_OFF
#define SAVE STATE
#define IDLE_OFF_TIME 60 * 5 * 1000
#define DISABLE_DIAGNOSTIC_COMMANDS
#define NO_REPEAT_RANDOM
#endif
#ifdef CONFIG_PROP
#include "../props/saber_fett263_buttons.h"
#endif
This is OS5 config top that works, correct?
If so, try adding just these defines and upload the OS5 config. Leave the styles and everything else the same from OS5.
#define FETT263_EDIT_MODE_MENU
#define ENABLE_ALL_EDIT_OPTIONS
Does the “SD Not Found” occur with an OS5 config with these defines added?
In addition to above, can you remove this define from the OS5 config and test. If no errors, can you then run ‘sdtest’ in Arduino > Tools > Serial Monitor and post results, want to see if SD speed is a contributing factor.
Remove or comment out and try ‘sdtest’
#define DISABLE_DIAGNOSTIC_COMMANDS
I’d be curious what you get using the 5.9 default_proffieboard_config.h for both OS versions.
Also, what are the Arduino settings for USB Type in the last test you did above?
Trying to rule out whether the config has anything to do with it. (Like ENABLE_SERIAL is active…do you have Bluetooth installed?)
I used Arduino 1.8.19 with serial+mass storage+ WebUSB. BT909 installed. I start testing with the configs…
If I use the “excat” 5.x config I posted, and compile this with 6.7 - I get to an “art directory” not found, and it looks like the board goes to a boot loop - USB gets unstable… (No way to add /common folder on card) so I now have to go back first…
Mass storage + computer has been reported as less than optimal experience with the PC looking for the SD, pop-up window, goes away then repeat.
I would turn off Mass Storage if you don’t need it. Although it might end up being a part of all this diagnosing…
Yeah I’ve had several boards from KR Sabers and haven’t experienced this problem on any of them. Plus one was exactly the same install with the same config file on os6.7 and that one is running fine
So I have just uploaded the same config file to my test rig board on os6.7 and it’s running fine. Then I reuploaded it again to the other board and used the sd card out of my test rig and still have this issue so my conclusion is it’s not OS related but hardware issue on the board itself
Plus it makes no difference if I use os5.9 I am still getting this issue