V2 firmware upgrade questions on Cyton
Hi!
It started when we wanted to add an external trigger button to the system. We found out that it would be best to have firmware 2.0, so that we could send auxiliary data instead of acceleration data. After updating to 2.0 code with external trigger, the signals went haywire. In OpenBCI_GUI, all signals went to the roof and had some harmonic properties. Then we thought it might be something with the bluetooth dongle, so we started updating firmware to 2.0 on both device and host side. This was a bit tricky with the cabling and all, but we managed it at last, with some magic involved. When the firmware was updated on bluetooth dongle, the OpenBCI_GUI program stopped working. There were no signals at all when we started the data stream. So now we are out of options, what do we do?
Can it be that we tried to upload 2.0 code before updating dongle to 2.0? Could it be something else?
Please help us. We are having a project regarding OpenBCI, and would really like to move on with it.
Thanks in advance.
It started when we wanted to add an external trigger button to the system. We found out that it would be best to have firmware 2.0, so that we could send auxiliary data instead of acceleration data. After updating to 2.0 code with external trigger, the signals went haywire. In OpenBCI_GUI, all signals went to the roof and had some harmonic properties. Then we thought it might be something with the bluetooth dongle, so we started updating firmware to 2.0 on both device and host side. This was a bit tricky with the cabling and all, but we managed it at last, with some magic involved. When the firmware was updated on bluetooth dongle, the OpenBCI_GUI program stopped working. There were no signals at all when we started the data stream. So now we are out of options, what do we do?
Can it be that we tried to upload 2.0 code before updating dongle to 2.0? Could it be something else?
Please help us. We are having a project regarding OpenBCI, and would really like to move on with it.
Thanks in advance.
Comments
We upgraded all three microcontrollers.
What we did:
We re-tried all the steps now, and it seems like the new firmware on Radio is got uploaded like it should, on both device and host ends. But when we tried to upload the "DefaultBoard" to the PIC32, we did not find the target. Does this mean that device and host firmware update did not work? Or could it be anything else? Is there some other way to test if the RFduino is working?
Seems like we managed to upload the code at last. The channels were correct. We tried to flashNonVolatileMemory() on both Host and Device, and then it seemed to work. There is no description to run the flashing on Host side in guide, but I don't know if it was just pure luck or the fact that we needed to do that. We have uploaded "DefaultBoard" code now, and will try to get it to work. If not, we will come back to you :-)
It sounds like your channels were not correct if flashing the non-volatile fixed it... well I think this thread will help people so thanks for it! Also glad to hear you're up and running! Get those brainwaves!!!
@pushtheworld.
The setup function in question is well this one? :
void setup() {
// Declare the radio mode and channel number. Note this channel is only
// set the first time the board powers up OR after a flash of the non-
// volatile memory space with a call to `flashNonVolatileMemory`.
// MAKE SURE THIS CHANNEL NUMBER MATCHES THE HOST!
radio.begin(OPENBCI_MODE_DEVICE,20);
}
If yes, does this following blue line Important! As of firmware version 2, you must first flash the board with the line radio.flashNonVolatileMemory(); in the setup() function uncommented simply means : "add in the setup function the instruction radio.flashNonVolatileMemory(); and flash the board".
If yes, should we write it before or after the line radio.begin(OPENBCI_MODE_DEVICE,20) ; ? ( the order could be important... )
Sincerely,
y.j.
radio.flashNonVolatileMemory();
//radio.flashNonVolatileMemory();