unable to program onboard RFDuino
Hi All,
I have successfully installed all of the RFDuino libraries, as well as uploaded the passthrough program to the dongle. I switched the dongle toward GPIO6, connected wires (with a .1 uF capacitor between RST) between the dongle and the board, powered on the board, and attempted to upload a program. However, the Arduino software responded with
get
fail.......fail.......fail.......
presumably meaning it could not find the device. I should note that it took longer for it to display this message while in contact with the pins, than when unconnected. Any suggestions on how to get it to work?
Comments
expected 14, got 00
Expected 14, got 40
What does this mean??
https://twitter.com/SafeForRobots
https://twitter.com/russomanno15
https://twitter.com/OpenBCI
http://neurogadget.com/2015/03/12/braintech-2015-day-1-roundup
http://neurogadget.com/2015/03/16/braintech-2015-day-2-from-opportunity-to-startup/11084
I also had the error "expected 14, got 00". I moved my USB connector to the FTDI-chip (usb to serial converter) a bit, then I was able to upload my code to the RFDuino successfully without errors. So it was a faulty USB-connection, even though the FTDI chip was recognized along to /var/log/syslog.
Best regards,
moony
Hi
I got "expecting 52, got 53
fail.......fail.......fail......." when using RFduino USB Shield to upload RadioDevice32bit.ino
Also got "expecting 52, got 53
fail.......fail.......fail......." when plug Dongle into computer and upload RadioHost32bit.ino
I have double checked TX-RX and RX-TX, but error still exist.
Anyone could give me some suggestions?
Best Regards
I got "expecting 52, got 53
fail.......fail.......fail......." when plug Dongle into computer and upload RadioHost32bit.ino too. Have you solved this problem?
Hi,do you solve the problem now? I meet it too
I decided to create my own Dongle, and encountered an error expecting 52, got 53 when loading the code into the RFD22301. After that I downloaded the RFDLoader.exe file from the latest release v2.3.3 and replaced it C:\Program Files\Arduino\hardware\arduino\RFduino\RFDLoader.exe. After that I got the following error RFduino device required for RFduino hex file. Then I used a disassembler to disassemble the RFDLoader.exe. Found a piece of code
Using a hex editor, I made sure that this condition was not met by replacing 74 with 75
This allowed me to upload the code successfully
I uploaded the edited RFDLoader.exe to GitHub
Maybe this comment will help someone
I'm experiencing a similar issue with uploading the compiled hex to my RFDuino too.. and this is happening on MacOSx, and partially on Win8.1 as well (and I'll explain what I mean by the partial issue further below). Currently, I'm testing out the RFduinos standalone before I commit them to the Cyton & Dongle boards I got printed. I've followed all the instructions on installing the RFDuino board into Arduino, as well as the required libraries into the respective locations for both OSs. The arduino test code I used is from one of the RFduinoBLE examples.. the only modification I made was to add an LED to the RFduino's GPIO3, so that I can see if there's any response from the RFDuino on startup. Besides that, I paid caution to all the wire connections from the FTDI board to the corresponding RFduino's pins (FT-Tx to RF-Rx, FT-Rx to RF-Tx, FT-DTR to RF-RST through a 0.1uF cap) as described on the Cyton Radio Programming page, as well as other RFduino project pages scattered across the net. Despite all the detailed instructions and precautions, I still get this error on Mac, which is a bit surprising to me:
I'm sure it's not an issue with the wires being loose or incorrectly connected in any way, because surprise surprise! On Windows, I am able to upload the same code successfully to the RFduino from my PC. Much thanks to @Romankt315 for his windows solution above! Initially, I did face the very same fail error on Win as well.. but thanks to Roman's modified RFDLoader.exe which he has graciously provided, I replaced the original exe and when I attempted to upload the code to the RFduino via FTDI, I was able to do so (somewhat) successfully. Now, what I mean by my partial success here is this: any non-BLE section of the code works absolutely fine UNTIL the function RFduinoBLE.begin(); is called inside setup(). For e.g., during the RFDuino's initialization, I can get the LED on pin 3 to light up in setup() but only before RFduinoBLE.begin() is called. Once that line is executed, it's like the RFduino goes into a hang/loop and any successive operations are ignored or not executed, irrespective of whether they are non-BLE or not.
Btw, this can't be a problem with the device itself because when I first tested it out with the stock firmware it arrived with, the LED lit up successfully and blinked during its initial advertising on startup.. and I was able to detect the RFduino using a BLE device scanner on Android (you can do the same with NRF's Connect/Toolbox as well). But after I uploaded the test code to my RFduino, its radio operations have stopped working and I am unable to detect using any scanner now. I can only hope I havent bricked its radio section somehow.
Anyway, I'm curious to know if anyone here has experienced something similar to the issues I've described above?
Also.. I'd like to request if anyone here could provide me with a pre-compiled firmware hex (for RFduino) that I can try burning to my board using RFDLoader directly (i.e., via Command/Terminal), instead of doing it through Arduino's Compile/Upload process. If you can provide a Gdrive link or email me at: t3kn0mage @ gmail (dot) com, that would be most appreciated, thanks!
Tested flashing to RFDuino on Sierra MacOsx as well.. did a clean installation of Arduino v1.5.8 and copied the OpenBCI RFduino folder into the package contents as instructed on the Radios programming page. Still no joy, this time the error shows the following.
It's not an issue with the test code coz it compiles successfully. And this is what I've figured out after multiple attempts: the version of RFDLoader provided in OBCI's RFduino archive yields the fail error above.. whereas if I were to switch to a newer version of RFDloader as found through Pert's additional boards manager URL , then I get the earlier mentioned error 'RFduino device required for RFduino hex file' instead!
@biomurph and @wjcroft: Could either of you or anyone from your team please provide an actual working copy of RFDLoader that you guys use to flash RFduinos for your Cytons/Dongles successfully? Or at least compare the executables to find out if they are the very same version or not? There's definitely some discrepancy here.. the problem seems to be with RFDLoader itself and it looks like I'm not the only one facing this issue.
@Shirley, can you arrange to get the working official RFDLoader (binary executable) from the OpenBCI Mac machine, and make it available for customer download? As @teknomage mentions in his two January 25 2022 comments above, flashing the RFduino is working for Windows (with a modified proper RFDLoader binary), but failing for the currently posted Mac RFDLoader.
I want to point out to @teknomage, that any issues he is seeing with the very experimental / not-supported, alpha stage BLE code, cannot be easily resolved at this time. As the author A J Keller has moved on, and this code never left the alpha stage of testing. As you may be aware, using the radios in BLE mode vastly decreases the effective throughput. Which is why the production RFduino's use the Gazelle protocol. RF Digital provided special custom libraries to enable the Gazelle feature.
https://openbci.com/community/cyton-ble-code-now-in-alpha/
William
@wjcroft, hi
Ioannis can provide the RFD loader, as he's been helping me optimize the Cyton/dongle programming process.
He is on the company slack.
-Shirley
@wjcroft: Thank you for addressing this, William. Yes, I am aware of Keller's experimental BLE alpha project but I wasnt playing around with that. When I mentioned the BLE code earlier, I was simply referring to a modification I made from one of the BLE examples provided within the RFduino library itself. I must point out that I was able to successfully compile my simple BLE code, as well as the RadioDevice32bit sketch from the OpenBCI_Radios library, but both failed when it came to finally uploading either of them. To be honest, at this point, I'd just be glad if I can get any of these sketches to be flashed to the RFduino successfully.
By the way, just FYI, I've identified that the version of the RFduino firmware provided by OBCI corresponds with their v2.0.3 package (as evidenced from their CHANGELOG), although the former was modified for OBCI with the optimized GZLL protocol, as you'd mentioned. Nevertheless, just for historical accuracy, the original v2.0.3 package seems to be available from RFduinio's archive here:
https://github.com/RFduino/RFduino/archive/v.2.0.3.tar.gz
@Shirley : Looking forward to the upload, but RFDLoader alone may not be sufficient. It would be great if you or Ioannis could provide a full copy of the entire RFduino package as you have it on your production Mac. Better yet, if you could provide us with a full copy of the production Arduino.app itself, that would be great! (if that's not asking for too much?)
I'm curious to know but could you also verify the exact version# of Arduino being used on that Mac? It's just my suspicion but I do think you might have multiple packages on the Mac, the combination of which is possibly allowing successful flashing of the compiled hex to RFduino on your production system.
for v1.5.8 as stated in the docs, the RFduino package is supposed to be within:
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino
But if it's v1.6.x or higher, then I suspect the actual RFduino package may be found in the usual Arduino15 location., i.e.,
~/Library/Arduino/packages
I think it's maybe worth looking into, just to see if the RFduino packages in these 2 locations are the same or not?
Could someone please help with this issue??