-
Notifications
You must be signed in to change notification settings - Fork 69
Description
I cannot quite pinpoint it to either one, but when a string is either initilized, written, or read from a XIAO's flash memory, the next time it is power cycled, there is essentially no communication to the PC it connects to. Not only this, but there is not even an attempt (no Windows 'device connected' sound effect that one normally gets.). The XIAO is bricked to the point to where jumping the reset pins does not even trigger a reset, so that makes me think the processor itself is bricked and can't even initilize/boot anymore.
I used a byte for FlashStorage as well, but I followed plenty of public examples to ensure I did the right steps to utilize it.
Initialization code used (along with some other variables used):
String deviceName = "DAP - 16 Knob Controller";
FlashStorage(d_name, String);
FlashStorage(writeflag, byte);
Reading Code Used:
inline void FetchDeviceName()
{
char charBoi[32];
byte nb = writeflag.read();
if (nb != 69)
return;
deviceName = d_name.read();
}
Writing Code Used:
inline void WriteDeviceName(String newName)
{
if (newName == "")
return;
d_name.write(newName);
}
Normally, I would do process of elimination and test each of the three functions seperately, but I do not want to risk keep bricking XIAO's.