Skip to content

Writing Firmware to the ERF stick

Tim Mecklem edited this page Jan 15, 2017 · 14 revisions

Build the subg_rfspy ERF stick firmware

Set up cc-tool on a Linux machine (eg: Raspberry Pi)

Alternatively, use Windows with these TI tools. The V1 Flash Programmer is what is required.

Connecting to the TI CC-Debugger

The most fiddly part of the process is connecting the TI CC-Debugger to the ERF stick.

I've taken some photos showing connections from the CC-debugger cable through to the ERF stick. Unfortunately I've had to mix the colours a bit as I don't have connectors of matching colours - sorry!

If in doubt, go back to the diagrams referred to above.

CC-Debugger connection Into the breadboard Onto the ERF ERF firmware wiring The power (red for +ve and black for -ve) go onto the built-in-pins. However, the green, yellow, and blue connect to the pins of the SRF module that's been soldered onto the ERF stick at production time.

Note that the 'blue' connection (reset) isn't shown in the last picture as I had to hold it by hand and couldn't take a photo and hold it in place at the same time. Blue goes onto the first-pin along the bottom of the SRF module that's soldered onto the ERF stick. Like the green and yellow, it connects not onto the built-in pins, but

Writing the firwmare

Once everything above is connected, in the subg_rfcat directory run the following command:

    make -f Makefile.uart0_alt1 BOARD_TYPE=SRF_ERF install

This should then write the firmware to the board.

Checking the firmware is working

Connect the ERF's TX, RX, PWR and GND ports to a serial device and then run the following in the subg_rfspy directory:

    subg_rfspy$ RFSPY_RTSCTS=0 ./tools/get_rfspy_version.py /dev/ttyMFD1

You should get output something like this if everything's ok:

    Version: subg_rfspy 0.3
    Response: subg_rfspy 0.3