Close

Remoticon: Basics of RF Emissions Debugging

Back to overview

RF is black magic and we're going to learn about it here!

Discussions

Shirley Márquez Dúlcey wrote 11/07/2020 at 09:51 point

I have a TinyFPGA Bx purchased from Arrow. I can't get the toolchain to work. Atom won't program the board.

The error:
Activate bootloader by pressing the reset button
Error: board TinyFPGA-BX not connected

  Are you sure? yes | no

Simon Merrett wrote 11/07/2020 at 16:32 point

@Shirley Márquez Dúlcey I had the same issue. I don't have a fix for atom but navigating to the relevant folder in a command line terminal (I'm Win 10) and using the `tinyprog -p hardware.bin` command managed to upload the blink example (which I had to press Build in Atom so that an actual `hardware.bin` was generated). It seems like it's doing nothing for 5 - 10 minutes on my machine and then suddenly it is programmed. I don't know if that's going to make the workshop difficult, due to the delay in programming but it's a start.

  Are you sure? yes | no

Anton Gerasimov wrote 11/07/2020 at 16:39 point

Hi Shirley,

just had a problem similar to yours, and could get it disappear by updating the bootloader on the TinyFPGA:


tinyprog --update-bootloader

  Are you sure? yes | no

Shirley Márquez Dúlcey wrote 11/07/2020 at 16:57 point

I eventually got things to work by using a different USB port on my computer.

Still haven't gotten my RTL dongle to work in DragonOS in the VirtualBox VM, though. I'm going to try it out with a Live USB boot and see if that works.

  Are you sure? yes | no

Simon Merrett wrote 11/07/2020 at 19:02 point

Did you manage to find the dongle with lsusb in dragonOS? I hadn't used a vm before so I had issues too. I added the RTL sdr in the USB filters and also the "on the fly" method mentioned here https://forums.virtualbox.org/viewtopic.php?f=35&t=82639#p390399

  Are you sure? yes | no

Simon Merrett wrote 11/07/2020 at 18:57 point

@Shirley Márquez Dúlcey  , UPDATE: I thought I had been through the bootloader update process but it appears I hadn't. Doing so fixed the apio issue and after restarting my PC, the speed of programming is now only a few seconds, rather than 10 minutes. To find your bootloader version in the command line (assuming you can see the tinyfpga as a COM port in device manager) having installed tinyprog, type `tinyprog -m` and you should see something like (after maybe several patient minutes of waiting): {“boardmeta”: {“name”: “TinyFPGA BX”,“fpga”: “ice40lp8k-cm81”,“hver”: “1.0.0”,“uuid”: “75e4e04a-1666-4789-b276-8309fa2d09ed”},“bootmeta”: {“bootloader”: “TinyFPGA USB Bootloader”,“bver”: “1.0.1”,“update”: “https://tinyfpga.com/update/tinyfpga-bx 4”,“addrmap”: {“bootloader”: “0x000a0-0x28000”,“userimage”: “0x28000-0x50000”,“userdata”: “0x50000-0x100000”}},“port”: “COM4”

bver is the version - it needs to be 1.0.1 to work with apio. To initiate an update, type `tinyprog --update-bootloader`

More info here: https://discourse.tinyfpga.com/t/error-board-tinyfpga-bx-not-connected-solved/383/44

  Are you sure? yes | no

alexwhittemore wrote 11/04/2020 at 17:56 point

Ahh my apologies I didn't see this in a more timely fashion! The TinyFPGA is necessary for the sake of loading a demo firmware that spins up PLLs to crank out loud interference frequencies in the >25MHz range where we can measure them with the SDR. If you have a xilinx board and know how to use it, all you need to do to follow along with us is to synthesize a PLL block and wire a high-frequency clock straight to an output pin. My demo firmware runs 50MHz into the onboard LED since that's the kind of thing you might somehow accidentally do, and it's a huge noisemaker. 

That said, it is plenty educational to wave the magic RF wand over any old board and see what/if they're radiating. An FPGA board is a good bet since it'll have a potentially-fast-enough oscillator on board. I need to try a few different off the shelf dev boards to see if I can find any obvious test signals to direct people to, but they're a bit harder. For instance, the Arduino Uno has a 16MHz oscillator, which you can definitely measure with our techniques but NOT with the specified RTL-SDR. You'd need something like a HackRF that goes down to 1MHz, or you'd need an upconverter and to know how to use it.

Long story short: if you can't find a TinyFPGA anymore, bring whatever boards you have and can easily power up, and I'm sure we can find something fun on them!

  Are you sure? yes | no

toybuilder wrote 10/29/2020 at 16:52 point

@opprud PCBway has a "gift shop" (similar to FF mile gift shops) that you can redeem with points or dollars.  As of this writing, they still have the BX in stock if you decide you really want one.

  Are you sure? yes | no

opprud wrote 10/27/2020 at 20:02 point

The TinyFPGA was sold out. Can you post a bit about what's supposed to be build in the FPGA, then it could be coded / synthesised for one of the Xilinx boards a have available, perhaps...

  Are you sure? yes | no