I can't re-flash the Crazyradio PA firmware, I am using RFStorm tools

Discussions about all things Bitcraze
chdyejiewei
Beginner
Posts: 1
Joined: Sun Mar 26, 2017 10:30 am

I can't re-flash the Crazyradio PA firmware, I am using RFStorm tools

Post by chdyejiewei »

I can't re-flash the Crazyradio PA firmware, I am using RFStorm tools on my Mac
When I type make as the wiki saidhttps://github.com/BastilleResearch/nrf ... h-firmware, I got this:

➜ nrf-research-firmware git:(master) ✗ make
usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]]
[-e pattern] [-f file] [--binary-files=value] [--color=when]
[--context[=num]] [--directories=action] [--label] [--line-buffered]
[--null] [pattern] [file ...]
/bin/sh: line 0: test: -lt: unary operator expected
sdcc --model-large --std-c99 -c src/main.c -o bin/main.rel
sdcc --model-large --std-c99 -c src/usb.c -o bin/usb.rel
sdcc --model-large --std-c99 -c src/usb_desc.c -o bin/usb_desc.rel
sdcc --model-large --std-c99 -c src/radio.c -o bin/radio.rel
sdcc --xram-loc 0x8000 --xram-size 2048 --model-large bin/main.rel bin/usb.rel bin/usb_desc.rel bin/radio.rel -o bin/dongle.ihx
objcopy -I ihex bin/dongle.ihx -O binary bin/dongle.bin
make: objcopy: No such file or directory
make: *** [dongle.bin] Error 1
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: I can't re-flash the Crazyradio PA firmware, I am using RFStorm tools

Post by arnaud »

Hi,
What you copy-pasted does correspond to building the RFStorm firmware, this is not what you want to do if you just want to re-flash the crazyradio firmware.

A quick look in the repos shows that they have a tool to flash over usb: https://github.com/BastilleResearch/nrf ... b-flash.py. I guess you should be able to flash the stable crazyradio firmware with that. Be careful since if you flash something wrong you will need an SPI flasher to re-flash the crazyradio (the Bastille project seems to have that in there repos too).
proplane64
Beginner
Posts: 27
Joined: Sat May 21, 2016 8:37 pm

Re: I can't re-flash the Crazyradio PA firmware, I am using RFStorm tools

Post by proplane64 »

I bought the latest Teensy SPI to flash my Crazyradio PA firmware b/c I "bricked" it trying to learn the mousejack method. I cant find specific instructions on using Teensy to re flash the Cradio PA firmware. Any help appreciated! Thank you in advance.
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: I can't re-flash the Crazyradio PA firmware, I am using RFStorm tools

Post by arnaud »

The instruction seems to be there, in the Bastille's project: https://github.com/BastilleResearch/nrf ... g-a-teensy
proplane64
Beginner
Posts: 27
Joined: Sat May 21, 2016 8:37 pm

Re: I can't re-flash the Crazyradio PA firmware, I am using RFStorm tools

Post by proplane64 »

i ran the platformio command - the one from the github page
it completed successfully
i plugged the teensy 3.6 into breadboard
i connected pins from teensy <-> crazyradio PA
i ran 'sudo make spi_install'
it returned:
make: *** No rule to make target 'spi_install'. Stop.
proplane64
Beginner
Posts: 27
Joined: Sat May 21, 2016 8:37 pm

Re: I can't re-flash the Crazyradio PA firmware, I am using RFStorm tools

Post by proplane64 »

im using cinnamon mint linux in virtualbox -- any ideas?
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: I can't re-flash the Crazyradio PA firmware, I am using RFStorm tools

Post by arnaud »

I have never used it myself so I cannot help, maybe someone passing by. Anyway, maybe you should try to ask the project directly, using git issues, if the readme instruction are not working they might be interested in fixing it.
proplane64
Beginner
Posts: 27
Joined: Sat May 21, 2016 8:37 pm

Re: I can't re-flash the Crazyradio PA firmware, I am using RFStorm tools

Post by proplane64 »

If it can be unbricked per multiple forums across the web, would anyone be interested in exchanging my "bricked" Crazyradio PA for a working version? I'm clearly lacking the technical expertise to unbrick it - and missing all my fun with my Crazyflie 2.0. =(
proplane64
Beginner
Posts: 27
Joined: Sat May 21, 2016 8:37 pm

Re: I can't re-flash the Crazyradio PA firmware, I am using RFStorm tools

Post by proplane64 »

Id gladly offer a replacement fee!
proplane64
Beginner
Posts: 27
Joined: Sat May 21, 2016 8:37 pm

Re: I can't re-flash the Crazyradio PA firmware, I am using RFStorm tools

Post by proplane64 »

arnaud wrote: Mon Dec 18, 2017 12:31 pm I have never used it myself so I cannot help, maybe someone passing by. Anyway, maybe you should try to ask the project directly, using git issues, if the readme instruction are not working they might be interested in fixing it.
Thank you, arnaud - I'll give it a try!
Post Reply